Initial commit
This commit is contained in:
commit
1889fb657d
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
12
Dockerfile
Normal file
12
Dockerfile
Normal 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
apps/.gitkeep
Normal file
0
apps/.gitkeep
Normal file
0
data/app/.gitkeep
Normal file
0
data/app/.gitkeep
Normal file
22
data/app/launch.sh
Executable file
22
data/app/launch.sh
Executable 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
11
docker-compose.yaml
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user