The source code is originally from the official UTA github repo. #################################
- Define the version that you'd like to build. The pgdump file for this version must already exist at dl.biocommons.org.
UTA_VERSION=uta_20180821
- Build docker image
docker build -f uta.dockerfile --build-arg uta_version=$UTA_VERSION --rm=true -t biocommons/uta:$UTA_VERSION .
- Try to build a running container with the image
docker run -v /tmp:/tmp -v uta_vol:/var/lib/postgresql/data --name $UTA_VERSION --network=host biocommons/uta:$UTA_VERSION
(-v /tmp:/tmp
ensures that you'll reuse prior data downloads, if available)
- If successful, tag and push
docker tag biocommons/uta:$UTA_VERSION biocommons/uta
docker push biocommons/uta:$UTA_VERSION
docker push biocommons/uta:latest
- Reset! To start over on the above:
docker kill $UTA_VERSION
docker rm $UTA_VERSION
docker volume rm uta_data