DescartesResearch / TeaStore

A micro-service reference test application for model extraction, cloud management, energy efficiency, power prediction, single- and multi-tier auto-scaling
https://se.informatik.uni-wuerzburg.de
Apache License 2.0
122 stars 142 forks source link

Only deploy if flag $DEPLOY is set #256

Closed DaGeRe closed 12 months ago

DaGeRe commented 1 year ago

When trying to build the TeaStore images locally, by running

mvn clean package
cd tools/
./build_docker.sh

This results in errors like

ERROR: failed to solve: teastore-base:latest: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed mybuilder removed

for every image that depends on teastore-base.

To be able to build the TeaStore locally for testing purposes, I recommend introducing a flag $DEPLOY, and to only execute the push and the multi platform built if this flag is set.