diff --git a/docker/sparkd/dev/README.md b/docker/sparkd/dev/README.md index 5db3663a5..e89ceef6c 100644 --- a/docker/sparkd/dev/README.md +++ b/docker/sparkd/dev/README.md @@ -1,12 +1,13 @@ [dev containers]: https://code.visualstudio.com/docs/devcontainers/containers [dev containers ext]: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers +[docker repo sparkd-dev]: https://hub.docker.com/repository/docker/bluetradingsystems/sparkd-dev/general # Sparkd Dev Container ## How to create a VS Code [Dev Container][dev containers] 1. Make sure the **[Dev Containers][dev containers ext]** extension is installed 1. Make sure your Docker image is up to date ``` - docker pull johncolvin/bluetradingsystems:sparkd-dev + docker pull bluetradingsystems/sparkd-dev:latest ``` 1. Copy **devcontainer.json** from this folder to **$workspaceFolder/.devcontainer/**. @@ -17,7 +18,7 @@ 1. Make sure your Docker image is up to date ``` - docker pull johncolvin/bluetradingsystems:sparkd-dev + docker pull bluetradingsystems/sparkd-dev:latest ``` 2. Start the container ``` @@ -44,13 +45,10 @@ then select your container in the dropdown 1. After modifying the Dockerfile, (re)build the image ``` # Run in this dir - docker build -t johncolvin/bluetradingsystems:sparkd-dev . + docker build -t bluetradingsystems/sparkd-dev:latest . ``` - > - ***NOTE:** The convention in Docker repos is to format image tags - > `/:` (hence the 'johncolvin' in the tag)*
- > - ***TODO (maybe):** Push images with a common username, like 'bts'. For - > now, we'll just use 'johncolvin' because I happened to push the first - > image, and did so with a conventional tag.* + ***Note:** Your docker login must have write permissions to push to the + [sparkd-dev][docker repo sparkd-dev] repository* 2. Commit the changes to Dockerfile in git diff --git a/docker/sparkd/dev/devcontainer.json b/docker/sparkd/dev/devcontainer.json index b413c0d03..6b85d54e4 100644 --- a/docker/sparkd/dev/devcontainer.json +++ b/docker/sparkd/dev/devcontainer.json @@ -1,5 +1,5 @@ { - "image": "johncolvin/bluetradingsystems:sparkd-dev", + "image": "bluetradingsystems/sparkd-dev:latest", "initializeCommand": "${localWorkspaceFolder}/docker/sparkd/dev/devcontainer_initialize.sh", "postCreateCommand": "/home/bts/spark/docker/sparkd/dev/devcontainer_post_create.sh", "containerUser": "bts", diff --git a/docker/sparkd/dev/start_docker.sh b/docker/sparkd/dev/start_docker.sh index e9fdab9d2..d769f0464 100755 --- a/docker/sparkd/dev/start_docker.sh +++ b/docker/sparkd/dev/start_docker.sh @@ -21,7 +21,7 @@ Positionals: Options: -u,--user USER The user to add in the container (defaults to 'bts') -p,--pass PASS The password for USER in the container (defaults to USER) - -i,--image IMAGE The image to instantiate + -i,--image IMAGE The image to instantiate (defaults to 'bluetradingsystems/sparkd-dev:latest') -c,--container CONT The name for the container -m,--mount MOUNT The name for the folder (outside the container) to create/mount to the home directory in the container. Mount folders are added here: $mount_prefix @@ -129,7 +129,7 @@ done if [[ -z "$image_name" ]]; then - image_name="johncolvin/bluetradingsystems:sparkd-dev" + image_name="bluetradingsystems/sparkd-dev:latest" fi host_name="$(hostname)"