Skip to content

Commit

Permalink
Fix examples demo
Browse files Browse the repository at this point in the history
  • Loading branch information
costrouc committed Aug 3, 2022
1 parent 2fca851 commit f7607f4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/docker/assets/conda_store_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
c.CondaStore.upgrade_db = True
c.CondaStore.redis_url = "redis://:password@redis:6379/0"
c.CondaStore.default_uid = 1000
c.CondaStore.default_gid = 100
c.CondaStore.default_gid = 1000
c.CondaStore.default_permissions = "775"
c.CondaStore.conda_included_packages = [
"ipykernel"
Expand Down
11 changes: 11 additions & 0 deletions examples/docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,24 @@ services:
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"

initializer:
image: alpine
restart: "no"
# hack to set perimssions on volume
entrypoint: |
/bin/sh -c "chown -R 1000:1000 /opt/conda-store"
volumes:
- conda_store_data:/opt/conda-store/

conda-store-worker:
build: ../../conda-store-server
user: 1000:1000
volumes:
- conda_store_data:/opt/conda-store/
- ./assets/conda_store_config.py:/etc/conda-store/conda_store_config.py:ro
depends_on:
initializer:
condition: service_completed_successfully
conda-store-server:
condition: service_healthy
links:
Expand Down

0 comments on commit f7607f4

Please sign in to comment.