Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Is it possible for WakaTime to "copy" the api key to remote container instead of reasking? #130

Closed
Ilyes512 opened this issue Apr 7, 2020 · 4 comments

Comments

@Ilyes512
Copy link

Ilyes512 commented Apr 7, 2020

I am using Vscode Remote: Containers and because WakaTime is a workspace extension kind it keeps asking me for the wakatime key everytime I rebuild. Is it possible to just copy this from the host instead?

@ghost
Copy link

ghost commented Jul 11, 2020

If you have access to change the container's build process then you can add a line to the Dockerfile to copy your config across. Something like this:
COPY --chown=${USER_UID}:${USER_GID} .wakatime.cfg /home/${USERNAME}/

@seawolf
Copy link

seawolf commented Feb 20, 2021

I wonder if the developers of the Wakatime extension could add getting the API key from the ENV.

This would allow users to add the API key as an ENV var in VSCode's dev-container settings, for the Wakatime extension could try to grab it from the container's environment on each rebuild.

@alanhamlett
Copy link
Member

alanhamlett commented Dec 26, 2021

Related to #44.

@alanhamlett
Copy link
Member

Let's move this into #244.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants