Skip to content

Commit

Permalink
Add DEV_WORKSPACE environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
erichlf committed Jun 4, 2024
1 parent afbcad0 commit cfba0e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
"workspaceMount": "source=${localWorkspaceFolder},target=/home/my-app/.local/share/nvim/lazy/nvim-devcontainer-cli/,type=bind",
"workspaceFolder": "/home/my-app/.local/share/nvim/lazy/nvim-devcontainer-cli/",
"remoteUser": "my-app",
"mounts": [],
"containerEnv": {
"DEV_WORKSPACE": "${containerWorkspaceFolder}",
},
"mounts": [
"type=bind,source=${localEnv:HOME}/.ssh,target=/home/my-app/.ssh,readonly",
],
"features": {
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1": {
"packages": "neovim,stow,zsh,fzf"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ make assumptions about how you work.
-- installed: "https://github.com/erichlf/dotfiles"
-- This is an example for configuring other dotfiles inside the docker container
dotfiles_repository = "https://github.com/erichlf/dotfiles.git",
dotfiles_branch = "main", -- branch to clone from dotfiles_repository`
dotfiles_branch = "devcontainer-cli", -- branch to clone from dotfiles_repository`
dotfiles_targetPath = "~/dotfiles", -- location to install dotfiles
dotfiles_intallCommand = "install.sh", -- script to run after dotfiles are cloned
shell = "bash", -- shell to use when executing commands
Expand Down

0 comments on commit cfba0e5

Please sign in to comment.