Liking cljdoc? Tell your friends :D

Deployment

Pre-deployment testing

Step 1: Build Docker Image

lein do clean, uberjar
docker build -t andrewslai .

Step 2 (optional): Manual testing

Against the cloud

docker run -v$HOME/.aws:/root/.aws:ro \
           --env-file=.env.docker.aws \
           -p 5000:5000 andrewslai 

(To start the container and )docker run -d --rm --env-file=.env.aws -p 5000:5000 andrewslai

Against local DB

docker run -d --rm --network host --env-file=.env.docker.local -p 5000:5000 andrewslai

Step 3: Upload artifact

./scripts/deployment/push-to-ecr
./scripts/deployment/deploy-image

Deployment

lein release
./scripts/deployment/deploy-image

Can you improve this documentation? These fine people already did:
Andrew Lai & ALai57
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close