Skip to content

Commit bde1264

Browse files
committed
Updated docker img ref envs & added extra vol config for deployment consistency.
1 parent 2e4e7f0 commit bde1264

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

docker/docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
cogstack-jupyter-hub:
3-
image: cogstacksystems/jupyter-hub:2.0.2-${CPU_ARCHITECTURE:-amd64}
3+
image: cogstacksystems/jupyter-hub:${JUPYTER_HUB_IMAGE_RELEASE_VERSION:-latest}-${CPU_ARCHITECTURE:-amd64}
44
container_name: cogstack-jupyter-hub
55
restart: always
66
environment:
@@ -46,8 +46,10 @@ services:
4646

4747
volumes:
4848
jupyter-hub-vol:
49+
name: "${VOLUME_PREFIX:-deploy_}jupyter-hub-vol"
4950
driver: local
5051
jupyter-hub-shared-scratch:
52+
name: "${VOLUME_PREFIX:-deploy_}jupyter-hub-shared-scratch"
5153
driver: local
5254

5355
#---------------------------------------------------------------------------#

env/general.env

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,12 @@
55
# remove if this causes issues on any other platform
66
# possible values: amd64, arm64
77
CPU_ARCHITECTURE=amd64
8-
DOCKER_DEFAULT_PLATFORM=linux/${CPU_ARCHITECTURE:-amd64}
8+
DOCKER_DEFAULT_PLATFORM=linux/${CPU_ARCHITECTURE:-amd64}
9+
COMPOSE_BAKE=True
10+
11+
# This variable is used only in the cogstack-nifi repository since it is
12+
# the main repository used for deplyments, located here for consistency and reference
13+
# We need to maintain the prefix for the volumes as if
14+
# they were deployed from the cogstack-nifi repository /deploy folder
15+
#
16+
# VOLUME_PREFIX=deploy_

env/jupyter.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
# jupyter-singleuser-gpu AMD64: ogstacksystems/jupyter-singleuser-gput:latest-amd64
1010
# last stable release build (AMD64 only): "cogstacksystems/jupyter-singleuser:1.2.7"
1111
# The CogStack images are huge and will take a bit to download
12-
DOCKER_NOTEBOOK_IMAGE="cogstacksystems/jupyter-singleuser:2.0.2-${CPU_ARCHITECTURE:-amd64}"
12+
JUPYTER_HUB_IMAGE_RELEASE_VERSION=2.0.2
13+
DOCKER_NOTEBOOK_IMAGE="cogstacksystems/jupyter-singleuser:${JUPYTER_HUB_IMAGE_RELEASE_VERSION:-latest}-${CPU_ARCHITECTURE:-amd64}"
1314

1415
# This needs to be set to true if you intend to use the GPU image
1516
# possible values: "true", "false"

0 commit comments

Comments
 (0)