Skip to content

Commit 6460f17

Browse files
committed
[+] Lame dockerfile
1 parent 939079d commit 6460f17

File tree

4 files changed

+25
-18
lines changed

4 files changed

+25
-18
lines changed

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM eclipse-temurin:21-jre-alpine
2+
3+
# Install bash, curl
4+
RUN apk add --no-cache bash curl
5+
6+
# Create user worldlinkd
7+
RUN addgroup -S worldlinkd && adduser -S worldlinkd -G worldlinkd
8+
9+
WORKDIR /app/wl
10+
COPY docs/* .
11+
12+
CMD ["/bin/bash", "/app/wl/docker_entry.sh"]

docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
services:
2+
worldlinkd:
3+
build: .
4+
ports:
5+
- "20100:20100"
6+
- "20101:20101"
7+
restart: always
8+
container_name: worldlinkd

docs/docker_entry.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
bash /app/wl/update.sh
5+
java -jar /app/wl/worldlinkd.jar

docs/update.sh

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,10 @@
11
#!/usr/bin/env bash
22
set -e
33

4-
# Change these to match your GitHub account/repo
5-
GITHUB_OWNER="MewoLab"
6-
GITHUB_REPO="worldlinkd"
7-
84
# Directory and jar name
95
INSTALL_DIR="/app/wl"
106
JAR_NAME="worldlinkd.jar"
117

12-
# echo "[INFO] Fetching the latest release data from GitHub..."
13-
# LATEST_RELEASE_JSON=$(curl -s https://api.github.com/repos/${GITHUB_OWNER}/${GITHUB_REPO}/releases/latest)
14-
#
15-
# # Parse the .jar download URL from the release assets
16-
# DOWNLOAD_URL=$(echo "${LATEST_RELEASE_JSON}" \
17-
# | grep "browser_download_url" \
18-
# | grep ".jar" \
19-
# | cut -d '"' -f 4)
20-
#
21-
# if [ -z "${DOWNLOAD_URL}" ]; then
22-
# echo "[ERROR] Unable to find a .jar download URL in the latest release."
23-
# exit 1
24-
# fi
25-
268
DOWNLOAD_URL="https://github.com/MewoLab/worldlinkd/releases/latest/download/worldlinkd.jar"
279

2810
echo "[INFO] Downloading JAR from: ${DOWNLOAD_URL}"

0 commit comments

Comments
 (0)