Generating secret for jwt tokens:
openssl rand -hex 32
- Don't forget to start docker:
sudo systemctl start docker
- run
build-and-get-size
from makefile (or just runmake
)
And to run it:
docker run --name go-api-container --publish 8080:8080 --volume ./data:/myapp/data myapp
Default address is 0.0.0.0 not localhost because docker.
When I, inevitably, would want to stop docker container and run the app straight:
docker container stop go-api
Will stop the server
docker system prune -a --volumes
Will delete all build artefacts from disk.
And, just in case, list containers:
docker container list --all
- Update locally installed go version
- Update dependencies in go.mod
- Update github action versions
- Update alpine/go versions in Dockerfile
- Update vendored htmx version