Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save benosteen/8ca2da5444ac1442ef90456c926277c6 to your computer and use it in GitHub Desktop.
Save benosteen/8ca2da5444ac1442ef90456c926277c6 to your computer and use it in GitHub Desktop.
(fork arches repo and clone your fork locally)
$ cd arches
$ cp docker-compose.yml docker-compose-local.py
(edit it in the manner described at the bottom of https://github.com/archesproject/arches/blob/master/docker/Readme.md#arches-core-development)
$ docker-compose -f docker-compose-local.yml run --entrypoint /bin/bash arches
(It will pull images and build the arches image, and then put you into a bash shell on the arches container)
# cd ..
# source ENV/bin/activate
(ENV) # pip install arches --no-binary :all:
(pip install runs)
(ENV) # arches-project create -d /web_root/PROJECTNAME PROJECTNAME
(Some stuff, including a yarn install)
(ENV) # exit
(back on local)
(Edit settings_local.py:
update the Postgres host, project, username and password to reflect docker-compose settings (db, PROJECTNAME, postgres, postgres)
update elasticsearch hosts to be the host in docker-compose (elasticsearch)
STATIC_ROOT = "/static_root" # so that nginx can find the files in the shared volume, but this is what I am struggling with.
$ docker-compose -f docker-compose-local.yml up -d
(PROJECTNAME files are all accessible in ../PROJECTNAME and to run any commands in a shell, make sure the stack is running:)
$ docker exec -it arches
# source ../ENV/bin/activate
(ENV) # cd ../PROJECTNAME
(ENV) # python manage.py ....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment