- Git working with your github credentials
- A working docker environement
Note
If you already have a token with read:packages
rights (like for npm), you can reuse it here instead of creating a new one.
- Create a classic token on Github. With the
read:packages
rights. - Run the query below in your terminal to gain access to our Package registry from docker.
export CR_PAT=YOUR_TOKEN
echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin
If you are using vscode, you can make use of the so called Dotfiles.
Go to your VS Code's User Settings in json and add your repository as follow:
{
...
"dotfiles.repository": "your-github-id/your-dotfiles-repo",
"dotfiles.targetPath": "~/dotfiles",
"dotfiles.installCommand": "install.sh"
}
This will the dotfiles to customize as you want your devcontainer environment.
Caution
Never EVER commit credentials in your repository!!
Stow will create symlink of all the files and directory to the destination. This comes handy when you want to replicate your dotfiles structure into your devcontainer.
Example of install.sh:
stow --target "$HOME" --dir home .
This will symlink in your $HOME
all the files in the home/
directory of your
repository.