Getting started
Openfish can be built from the docker images to run locally on your computer or to deploy to the cloud.
Prerequisites
You will need installed:
- Docker v24.0.5 or later
- gcloud CLI
- Linux (Windows is currently untested but may work)
Deployment instructions
Steps:
Setup google cloud credentials so your application can access the datastore:
bashgcloud auth login gcloud config set project openfish-dev gcloud auth application-default login
if the environment variable
$GOOGLE_APPLICATION_CREDENTIALS
is not set:bashGOOGLE_APPLICATION_CREDENTIALS=~/.config/gcloud/application_default_credentials.json
Build docker images:
bashdocker build . -t openfish-webapp -f ./docker/webapp docker build . -t openfish-api -f ./docker/api
Run both containers:
bashdocker run -p 80:80 openfish-webapp docker run -p 8080:8080 -e GOOGLE_APPLICATION_CREDENTIALS=/tmp/gcloud.json -v $GOOGLE_APPLICATION_CREDENTIALS:/tmp/gcloud.json:z openfish-api
Open the browser and visit http://localhost.