This is the repo for my personal website.
- Docker
- Docker's compose plugin
- Go 1.18 or newer
- node 16.13.x and yarn 1.22.x
- kubectl, helm, minikube
docker compose build
Once the binary is built, you can start the database and run the server in debug mode.
./bootstrap.sh
docker compose up
If you have the heroku cli, you can start the serer with haroku local web
.
go test -tags ci ./...
docker-compose -f docker-compose.test.yml build
docker-compose -f docker-compose.yml -f docker-compose.test.yml up -d db redis web
docker-compose -f docker-compose.test.yml run --rm tests scripts/functional-tests.sh
yarn test
docker context use harrybrwn # send docker commands to prod box
docker network rm ingress
docker network create --driver overlay --ingress --scope swarm --ipv6 harrybrwn-net
# make should all worker nodes are connected at this point
docker node ls
docker stack rm harrybrwn
# Build
env $(cat .env) docker buildx bake \
-f docker-compose.yml \
-f config/docker/buildx.yml \
--push
docker-compose \
-f docker-compose.yml \
-f config/docker/prod.yml config | \
docker stack deploy \
--resolve-image always \
--with-registry-auth \
--prune \
-c - \
harrybrwn
docker service ls
docker service logs -f harrybrwn_nginx