An open API service indexing awesome lists of open source software.

https://github.com/codbex/codbex-athena

Accounting Management Application
https://github.com/codbex/codbex-athena

application

Last synced: 5 days ago
JSON representation

Accounting Management Application

Awesome Lists containing this project

README

          

# codbex-athena

Accounting Management Application

## Run Athena Docker image locally

### Prerequisites

```shell
export GIT_REPO_FOLDER=''
export GH_TOKEN=''

export IMAGE='ghcr.io/codbex/codbex-athena:dev'
export CONTAINER_NAME='athena'
```

### Build Docker image

```shell
# 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"
```

### Run Docker image

```shell
# optionally remove the existing container with that name
docker rm -f "$CONTAINER_NAME"

docker run --name "$CONTAINER_NAME" -p 80:80 "$IMAGE"
```

### Manual Steps for Local Testing

```shell
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
```