Accounting Management Application
export GIT_REPO_FOLDER='<path-to-athena-git-repo>'
export GH_TOKEN='<your-token>'
export IMAGE='ghcr.io/codbex/codbex-athena:dev'
export CONTAINER_NAME='athena'
# download packages
cd "$GIT_REPO_FOLDER/application"
echo "@codbex:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=$GH_TOKEN" > .npmrc
npm install
rm -rf .npmrc
# build image
cd "$GIT_REPO_FOLDER/application"
docker build . --tag "$IMAGE"
# optionally remove the existing container with that name
docker rm -f "$CONTAINER_NAME"
docker run --name "$CONTAINER_NAME" -p 80:80 "$IMAGE"
cd "$GIT_REPO_FOLDER"
# build images
docker build -t codbex-athena:test application/
docker build -t codbex-athena-data-sample:test application-data-sample/
# run tests with image tags as Maven system properties
mvn clean install -P integration-tests \
-DAPP_IMAGE=codbex-athena:test \
-DSAMPLE_DATA_IMAGE=codbex-athena-data-sample:test