Skip to content

codbex/codbex-atlas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atlas by codbex

Build Status Eclipse License Maven Central

Atlas Edition contains all the available standard components.

It is good for exploration about the different features and their applicability in particular scenarios.

Run steps

Prerequisites:

  • Export the following variables before executing the steps
    export GIT_REPO_FOLDER='<path-to-the-git-repo>'
    export IMAGE='ghcr.io/codbex/codbex-atlas:latest'
    export CONTAINER_NAME='atlas'

Start using Docker and released image

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

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

Start using Docker and local sources

Build the project jar

cd $GIT_REPO_FOLDER
mvn -T 1C clean install -P quick-build

Build and run docker image locally

Prerequisites: Build the project jar

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"

Java standalone application

Prerequisites: Build the project jar

Start the application

cd "$GIT_REPO_FOLDER"

java \
    --add-opens=java.base/java.lang=ALL-UNNAMED \
    --add-opens=java.base/java.lang.reflect=ALL-UNNAMED \
    --add-opens=java.base/java.nio=ALL-UNNAMED \
    -jar application/target/codbex-atlas-*.jar

Start the application in debug with debug port 8000

cd "$GIT_REPO_FOLDER"

export PHOEBE_AIRFLOW_WORK_DIR="$AIRFLOW_WORK_DIR"
java \
    -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 \
    --add-opens=java.base/java.lang=ALL-UNNAMED \
    --add-opens=java.base/java.lang.reflect=ALL-UNNAMED \
    --add-opens=java.base/java.nio=ALL-UNNAMED \
    -jar application/target/codbex-atlas-*.jar

Run unit tests

cd "$GIT_REPO_FOLDER"
mvn clean install -P unit-tests

Run integration tests

cd "$GIT_REPO_FOLDER"
mvn clean install -P integration-tests

Run all tests

cd "$GIT_REPO_FOLDER"
mvn clean install -P tests

Format the code

cd "$GIT_REPO_FOLDER"
mvn verify -P format

Access the application

  • Open URL http://localhost:80
  • Login with the default credentials username admin and password admin

REST API

http://localhost/swagger-ui/index.html