- Create a Google Cloud Bucket
- Go to bucket permissions, then add grant access
- Set new principals to allUsers
- Set role to Storage Object Viewer
- Save
- Go to API & Services > Cloud Storage
- Click on Create Credentials
- Create a Service Account Credential
- Fill in the details
- Set the role to Storage > Storage Object Admin
- Click on Create
- Click on the Service Account
- Go to Keys tab
- Click on Add Key
- Select JSON
- Click on Create
- Go to cloud shell
- Edit and paste this script:
printf '[{"origin": ["*"],"responseHeader": ["*"],"method":
["GET","POST","PUT","DELETE","HEAD"],"maxAgeSeconds": 86400}]' > cors.json
gsutil cors set cors.json gs://olearning-data
- Run the script
- Authorize the script
- Init admin by hit api
curl http://localhost:5000/api/v1/users/first-init-app
- Done
- Build images
docker build -t "olearning-be:v1" .
- Run app
docker-compose up -d