Initial commit

This commit is contained in:
Anry Das 2025-02-23 11:02:56 +02:00
commit 1889fb657d
7 changed files with 45 additions and 0 deletions

0
.gitignore vendored Normal file
View File

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM sapmachine:lts-jre-alpine
MAINTAINER -=:dAs:=-
RUN apk add --no-cache --upgrade bash
RUN mkdir /app
# If applications are need to be accomadated in the container directly - uncomment next 3 rows
#ADD ./data/app/launch.sh /app
#RUN chmod +x /app/launch.sh
#ADD ./apps/ /app
# otherwice applications are will be in mounted directory ./data/app:/app
WORKDIR /app
CMD [ "./launch.sh" ]

0
README.md Normal file
View File

0
apps/.gitkeep Normal file
View File

0
data/app/.gitkeep Normal file
View File

22
data/app/launch.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/bash
readarray -d '' START_FILES < <(find /app -name 'start.sh' -type f -print0)
#echo "[DEBUG] Files: ${START_FILES[*]}"
if [ ${#START_FILES[@]} -eq 0 ]; then
echo "[ERROR] Files not found"
exit 127
fi
for file in "${START_FILES[@]}"; do
if [ "$file" != "" ]; then
echo "[INFO] Launching ${file}"
bash "$file" &
else
echo "[ERROR] Files not found"
fi
done
while true; do
sleep 10
done

11
docker-compose.yaml Normal file
View File

@ -0,0 +1,11 @@
services:
java_applications:
build: .
container_name: "JavaApplications"
restart: "unless-stopped"
user: "1000"
ports:
- "53748:53748"
- "26937:26937"
volumes:
- ./data/app:/app