Skip to content

Commit

Permalink
Updated git repo structure (docker).
Browse files Browse the repository at this point in the history
  • Loading branch information
vladd-bit committed Jan 20, 2025
1 parent 8132541 commit a44ce99
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 18 deletions.
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.DS_Store
.idea
__pycache__
venv
venv-test
# skip the custom envs
#envs
# skip the models directory
models
20 changes: 10 additions & 10 deletions docker-compose-dev.yml → docker/docker-compose-dev.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
cogstack-jupyter-hub:
build: ./Dockerfile_hub
cogstack-jupyter-hub-dev:
build: ../Dockerfile_hub
container_name: cogstack-jupyter-hub-dev
restart: always
environment:
Expand All @@ -11,19 +11,19 @@ services:
- JUPYTERHUB_INTERNAL_PROXY_API_PORT=${JUPYTERHUB_INTERNAL_PROXY_API_PORT:-8887}
- JUPYTERHUB_SSL_PORT=${JUPYTERHUB_SSL_PORT:-443}
env_file:
- ./env/general.env
- ./env/jupyter.env
- ../env/general.env
- ../env/jupyter.env
volumes:
- jupyter-hub-shared-scratch:/home/jovyan/scratch
- jupyter-hub-vol:/srv/jupyterhub
# Security configs
- ./${DEFAULT_SECURITY_DIR:-./security/}root-ca.key:/srv/jupyterhub/root-ca.key:ro
- ./${DEFAULT_SECURITY_DIR:-./security/}root-ca.pem:/srv/jupyterhub/root-ca.pem:ro
- ./config/jupyterhub_cookie_secret:/srv/jupyterhub/jupyterhub_cookie_secret:ro
- ../${DEFAULT_SECURITY_DIR:-./security/}root-ca.key:/srv/jupyterhub/root-ca.key:ro
- ../${DEFAULT_SECURITY_DIR:-./security/}root-ca.pem:/srv/jupyterhub/root-ca.pem:ro
- ../config/jupyterhub_cookie_secret:/srv/jupyterhub/jupyterhub_cookie_secret:ro
# User list and jupyter config
- ./config/jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py:ro
- ./config/userlist:/srv/jupyterhub/userlist:ro
- ./config/teamlist:/srv/jupyterhub/teamlist:ro
- ../config/jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py:ro
- ../config/userlist:/srv/jupyterhub/userlist:ro
- ../config/teamlist:/srv/jupyterhub/teamlist:ro
# Give access to Docker socket
- /var/run/docker.sock:/var/run/docker.sock
ulimits:
Expand Down
16 changes: 8 additions & 8 deletions docker-compose.yml → docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ services:
- JUPYTERHUB_INTERNAL_PROXY_API_PORT=${JUPYTERHUB_INTERNAL_PROXY_API_PORT:-8887}
- JUPYTERHUB_SSL_PORT=${JUPYTERHUB_SSL_PORT:-443}
env_file:
- ./env/general.env
- ./env/jupyter.env
- ../env/general.env
- ../env/jupyter.env
volumes:
- jupyter-hub-shared-scratch:/home/jovyan/scratch
- jupyter-hub-vol:/srv/jupyterhub
# Security configs
- ./${DEFAULT_SECURITY_DIR:-./security/}root-ca.key:/srv/jupyterhub/root-ca.key:ro
- ./${DEFAULT_SECURITY_DIR:-./security/}root-ca.pem:/srv/jupyterhub/root-ca.pem:ro
- ./config/jupyterhub_cookie_secret:/srv/jupyterhub/jupyterhub_cookie_secret:ro
- ../${DEFAULT_SECURITY_DIR:-./security/}root-ca.key:/srv/jupyterhub/root-ca.key:ro
- ../${DEFAULT_SECURITY_DIR:-./security/}root-ca.pem:/srv/jupyterhub/root-ca.pem:ro
- ../config/jupyterhub_cookie_secret:/srv/jupyterhub/jupyterhub_cookie_secret:ro
# User list and jupyter config
- ./config/jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py:ro
- ./config/userlist:/srv/jupyterhub/userlist:ro
- ./config/teamlist:/srv/jupyterhub/teamlist:ro
- ../config/jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py:ro
- ../config/userlist:/srv/jupyterhub/userlist:ro
- ../config/teamlist:/srv/jupyterhub/teamlist:ro
# Give access to Docker socket
- /var/run/docker.sock:/var/run/docker.sock
ulimits:
Expand Down

0 comments on commit a44ce99

Please sign in to comment.