We'll be using Docker to deploy Notely to Google Cloud Run. If you're not familiar with Docker, you should take our Learn Docker course here first.
Make sure you have Docker installed by running docker --version in your terminal. You should be on at least version 20.10.21.
./scripts/buildprod.sh
docker build -t DOCKERHUB_NAMESPACE/notely:latest .
DOCKERHUB_NAMESPACE should be replaced with your Docker Hub username.
docker run -e PORT=8080 -p 8080:8080 DOCKERHUB_NAMESPACE/notely:latest
Run and submit the CLI tests.
If you get an architecture or exec format error, that's probably because your machine is different than the intended Docker Container.
macOS
GOOS=linux GOARCH=arm64 go build -o notely .
docker build -t DOCKERHUB_NAMESPACE/notely:latest . --platform=linux/arm64
Use http, not https!
Creating a user on the Notely site is not expected to work yet, we haven't set up the database!