Skip to content

Commit

Permalink
work on local machine by defualt
Browse files Browse the repository at this point in the history
  • Loading branch information
nstoik committed Jan 9, 2024
1 parent 77f399f commit e3e520e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
@@ -1,5 +1,5 @@
{
// line below used when connecting to a remote docker host.
// https://code.visualstudio.com/docs/remote/containers-advanced#_developing-inside-a-container-on-a-remote-docker-host
"docker.host": "ssh://ubuntu@pi4-dev.home.stechsolutions.ca"
//"docker.host": "ssh://ubuntu@pi4-dev.home.stechsolutions.ca"
}
2 changes: 1 addition & 1 deletion 1wire/.devcontainer/devcontainer.json
Expand Up @@ -15,7 +15,7 @@
// workspace mount is used when connecting to a docker container on a remote host. Use absolute path.
// https://code.visualstudio.com/docs/remote/containers-advanced#_developing-inside-a-container-on-a-remote-docker-host
// Otherwise do not need workspaceMount
"workspaceMount": "source=/home/ubuntu/farm_device,target=/workspaces,type=bind,consistency=cached",
//"workspaceMount": "source=/home/ubuntu/farm_device,target=/workspaces,type=bind,consistency=cached",
"workspaceFolder": "/workspaces",
"shutdownAction": "none"
// "customizations": {
Expand Down
2 changes: 1 addition & 1 deletion device/.devcontainer/devcontainer.json
Expand Up @@ -15,7 +15,7 @@
// workspace mount is used when connecting to a docker container on a remote host. Use absolute path.
// https://code.visualstudio.com/docs/remote/containers-advanced#_developing-inside-a-container-on-a-remote-docker-host
// Otherwise do not need workspaceMount
"workspaceMount": "source=/home/ubuntu/farm_device,target=/workspaces,type=bind,consistency=cached",
// "workspaceMount": "source=/home/ubuntu/farm_device,target=/workspaces,type=bind,consistency=cached",
"workspaceFolder": "/workspaces",
"shutdownAction": "none",

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.devcontainer.yml
Expand Up @@ -8,9 +8,9 @@ services:
dockerfile: .devcontainer/devcontainer.Dockerfile
volumes:
# this is for vs code file editing inside the container from a local host
#- .:/workspaces:cached
- .:/workspaces:cached
# this is for vs code file editing inside the container on a remote host
- /home/ubuntu/farm_device:/workspaces:cached
#- /home/ubuntu/farm_device:/workspaces:cached
# this is for bash command history. https://code.visualstudio.com/docs/remote/containers-advanced#_persist-bash-history-between-runs
- bashhistory:/commandhistory
# Overrides default command so things don't shut down after the process ends.
Expand Down

0 comments on commit e3e520e

Please sign in to comment.