Repository for the main UC Davis Datalab website, running Wordpress with the UC Davis Library theme.
https://www.figma.com/file/chC7MLHfapKSRsTXFWNLRs/DataLab?type=design&node-id=371-502&mode=design
To get the site up and running on your machine:
cd deploy
GC_READER_KEY_SECRET
. This ensures that you can download necessary third-party plugins and site content.DEV_REPOS
. These are only needed while doing local development../cmds/init-local-dev.sh
./cmds/build-local-dev.sh
./cmds/generate-deployment-files.sh
./cmds/get-env-file.sh dev
to download the env file.datalab-main-site-local-dev
.Enter it, and run docker compose up -d
If you are using the init/backup utilities, you will need make sure that you have access to the service account secrets. gc-reader-key.json
and gc-writer-key.json
should have content for the init and backup containers, respectively. Keys are fetced in init-local-dev
, but they also have their own dedicated scripts.
All plugins are version-controlled, hosted in a Google Cloud Bucket, and downloaded into the image during the build process. To add a plugin:
GC_BUCKET_PLUGINS
.config.sh
build.sh
Dockerfile
gcloud
and wordpress
builds in Dockerfilegsutil cp
command in gcloud
buildwordpress
build