Das JRE Starter
Java JRE to launch java applications in Docker
📌 Using
- Put applications into
./data/appfolder to use Docker's mounted applications to be launched - or Put applications into
./appsfolder to use launched applications directly in the container4 in the case uncomment rows in./Dockerfile - Do not forget to make or correct
start.shfile in each of subdirectories in application's dir as in example. - Launch a Docker
docker compose up -d
start.sh file example
#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$SCRIPT_DIR" || exit 127
JAVA_D_PARAMS="
-Dspring.profiles.active=prod
-Dlogging.file.name=logs/ServiceName.log
"
java -jar ${JAVA_D_PARAMS} ServiceName.jar &
exit 0
Made by -=:dAs:=-
Description
Languages
Shell
52.5%
Dockerfile
47.5%