docker: Rename repo 'bluetradingsystems/sparkd-dev'

The previous name, 'johncolvin/bluetradingsystems', was chosen in a
misguided effort to adhere to a naming convention recommended by Docker
Hub (https://docs.docker.com/docker-hub/repos/create/). In hindsight,
this convention isn't well suited to our use case. Our images are shared
by multiple users (e.g., sparkd dev users all use the same sparkd-dev
image), so it doesn't make sense to name the repository after an
arbitrary user.
This commit is contained in:
John Colvin committed 2023-04-08 12:18:39 -05:00
1 parent 36f0a544e9
commit 696195aefd
3 files changed
+9 -11

No files matched your search

+6 -8
View File
@@ -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
> `<user>/<repo>:<image_name>` (hence the 'johncolvin' in the tag)*<br>
> - ***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
+1 -1
View File
@@ -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",
+2 -2
View File
@@ -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)"