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. The project starter includes a prebuilt Dockerfile just for this project.
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
Set the --platform flag to linux/arm64 in the Dockerfile or when running the docker build command.
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!