Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.04 KB

README.md

File metadata and controls

40 lines (28 loc) · 1.04 KB

Docker

Building and running Docker Images

Prerequisites

  • CI/CD repository is checked out locally
  • Environment variable CICD_SCRIPTS_DIR is set
  • Docker and Docker Compose installed and running

Build all images

# Start in the source folder
cd source

# Build all applications
mvn clean package -Pdeploy -DskipTest

# Go to Docker directory
cd ../docker

# Set the CI/CD scripts directory (if not set)
export CICD_SCRIPTS_DIR=/example/folder/cicd-scripts

# Execute the prepare and build script
${CICD_SCRIPTS_DIR}/docker/images_v1.0.sh

Run individual containers

# Run the desired container using docker run
docker run -d -p <host-port>:<container-port> --restart unless-stopped <image-name>

# For example, to run the api on port 8085:
docker run -d -p 8085:8080 --restart unless-stopped api:latest

# Or ClickHouse on the default HTTP port for both JDBC and the Play UI (empty smm database; no tables):
docker run -d -p 8123:8123 --restart unless-stopped database:latest