Devpod base settings for future more customized versions.
Using mise, chezmoi, and devcontainers.
Docker and devpod cli installed.
Clone the repo onto your machine.
git clone [email protected]:davidjnevin/devpod-base.git .
cd devpod-baseEdit the devcontainer.json file to set your username.
This will define both the name of the user with sudo privileges and the folder structure.
NB: The remoteUser and the USERNAME in the devcontainer.json must match.
{
"build": {
"context": "..",
"dockerfile": "Dockerfile",
"args": {
"USERNAME": "david" <--- must match
}
},
"remoteUser": "david", <-- must match
"containerUser": "root",
"postCreateCommand": "scripts/setup"
}
Then run the following commands from within the devpod-base folder.
Caveat: This assumes you have a dotfiles repo set up for use with mise. See this repo for my early attempts at this.
Also, I use nvim in my devpods, so my IDE is set to none. Other options include openvscode or vscode.
The full documentation is available at [https://devpod.sh/docs/what-is-devpod].
devpod provider add docker
devpod up . --ide none --dotfiles [email protected]:<github_username>/<dotfiles-repo> (--recreate) # start/mount a devpod using the current directory, no IDE set and a specified dotfiles repo. (recreate rebuilds the container)
devpod ssh # gives a list of available containers to ssh intoThis is a work in progress and is subject to change without warning or reason.