From b42943fe8de72d29e4e615550790857d307ff097 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Mon, 3 Apr 2023 13:53:43 +0000 Subject: [PATCH] chore: Rename Docker image 'spark-dev' -> 'sparkd-dev' This is a more accurate and appropriate name than 'spark-dev' because the image is designed to build/run Sparkd and the Spark Api Server (both of which are daemons, hence the appropriateness of the 'd' suffix). It isn't designed to build/run the front-end desktop application, Spark. --- docker/sparkd/dev/README.md | 10 +++++----- docker/sparkd/dev/build.sh | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docker/sparkd/dev/README.md b/docker/sparkd/dev/README.md index d392b81d7..b6972d4c2 100644 --- a/docker/sparkd/dev/README.md +++ b/docker/sparkd/dev/README.md @@ -1,10 +1,10 @@ -# Spark Dev Container -## How to create a Spark VS Code Devcontainer +# Sparkd Dev Container +## How to create a Sparkd VS Code Devcontainer 1. Make sure the "Dev Containers" extension is installed in VS Code 1. Make sure your Docker image is up to date ``` - docker pull johncolvin/bluetradingsystems:spark-dev + docker pull johncolvin/bluetradingsystems:sparkd-dev ``` 1. Copy **devcontainer.json** from this folder to **$workspaceFolder/.devcontainer/**. @@ -29,7 +29,7 @@ 1. After modifying the Dockerfile, (re)build the image ``` - ./build.sh --image johncolvin/bluetradingsystems:spark-dev + ./build.sh --image johncolvin/bluetradingsystems:sparkd-dev ``` > - ***NOTE:** The convention in Docker repos is to format image tags > `/:` (hence the 'johncolvin' in the tag)*
@@ -42,7 +42,7 @@ 1. Push the new image to Docker Hub ``` - docker push johncolvin/bluetradingsystems:spark-dev + docker push johncolvin/bluetradingsystems:sparkd-dev ``` ***Note:** The image doesn't have to be on Docker Hub, we can simply build it from scratch on our local machines (with the Dockerfile). However, this diff --git a/docker/sparkd/dev/build.sh b/docker/sparkd/dev/build.sh index 32a53aa72..0ab254782 100755 --- a/docker/sparkd/dev/build.sh +++ b/docker/sparkd/dev/build.sh @@ -8,7 +8,7 @@ Usage: build.sh [OPTIONS] Options: -u,--user USER or USER:UID The user to add to the image (defaults to 'bts') -p,--pass The password for USER in the image (defaults to USER) - -i,--image The name to give the image (defaults to "USER:spark-dev") + -i,--image The name to give the image (defaults to "USER:sparkd-dev") -h,--help Print this help message and exit EOF @@ -90,7 +90,7 @@ case ${#docker_user_args[@]} in esac if [[ -z "$image_name" ]]; then - image_name="${docker_user}:spark-dev" + image_name="${docker_user}:sparkd-dev" fi echo "Building image