File tree Expand file tree Collapse file tree 4 files changed +25
-18
lines changed
Expand file tree Collapse file tree 4 files changed +25
-18
lines changed Original file line number Diff line number Diff line change 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" ]
Original file line number Diff line number Diff line change 1+ services :
2+ worldlinkd :
3+ build : .
4+ ports :
5+ - " 20100:20100"
6+ - " 20101:20101"
7+ restart : always
8+ container_name : worldlinkd
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -e
4+ bash /app/wl/update.sh
5+ java -jar /app/wl/worldlinkd.jar
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -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
95INSTALL_DIR=" /app/wl"
106JAR_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-
268DOWNLOAD_URL=" https://github.com/MewoLab/worldlinkd/releases/latest/download/worldlinkd.jar"
279
2810echo " [INFO] Downloading JAR from: ${DOWNLOAD_URL} "
You can’t perform that action at this time.
0 commit comments