mirror of
https://github.com/darksaid98/pterodactyl-graalvm.git
synced 2026-12-01 15:38:47 +00:00
Tidy entrypoints 🧹
This commit is contained in:
1 parent
2070b0a1de
commit
69492eb373
11 files changed
+7
-60
No files matched your search
@@ -52,7 +52,8 @@ jobs:
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: ./${{ matrix.tag }}
|
||||
context: .
|
||||
file: ./${{ matrix.tag }}/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.meta_graalvm.outputs.tags }}
|
||||
|
||||
+1
-1
@@ -43,6 +43,6 @@ ENV USER=container HOME=/home/container
|
||||
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
COPY ./../entrypoint.sh /entrypoint.sh
|
||||
|
||||
CMD ["/bin/bash", "/entrypoint.sh"]
|
||||
@@ -1,12 +0,0 @@
|
||||
#!/bin/bash
|
||||
cd /home/container
|
||||
|
||||
# Output Current Java Version
|
||||
java -version ## only really needed to show what version is being used. Should be changed for different applications
|
||||
|
||||
# Replace Startup Variables
|
||||
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
||||
echo ":/home/container$ ${MODIFIED_STARTUP}"
|
||||
|
||||
# Run the Server
|
||||
${MODIFIED_STARTUP}
|
||||
+1
-1
@@ -43,6 +43,6 @@ ENV USER=container HOME=/home/container
|
||||
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
COPY ./../entrypoint.sh /entrypoint.sh
|
||||
|
||||
CMD ["/bin/bash", "/entrypoint.sh"]
|
||||
@@ -1,12 +0,0 @@
|
||||
#!/bin/bash
|
||||
cd /home/container
|
||||
|
||||
# Output Current Java Version
|
||||
java -version ## only really needed to show what version is being used. Should be changed for different applications
|
||||
|
||||
# Replace Startup Variables
|
||||
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
||||
echo ":/home/container$ ${MODIFIED_STARTUP}"
|
||||
|
||||
# Run the Server
|
||||
${MODIFIED_STARTUP}
|
||||
+1
-1
@@ -43,6 +43,6 @@ ENV USER=container HOME=/home/container
|
||||
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
COPY ./../entrypoint.sh /entrypoint.sh
|
||||
|
||||
CMD ["/bin/bash", "/entrypoint.sh"]
|
||||
+1
-1
@@ -43,6 +43,6 @@ ENV USER=container HOME=/home/container
|
||||
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
COPY ./../entrypoint.sh /entrypoint.sh
|
||||
|
||||
CMD ["/bin/bash", "/entrypoint.sh"]
|
||||
@@ -1,15 +0,0 @@
|
||||
#!/bin/bash
|
||||
cd /home/container
|
||||
|
||||
# Print Java version
|
||||
java -version
|
||||
|
||||
# Make internal Docker IP address available to processes.
|
||||
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
|
||||
|
||||
# Replace Startup Variables
|
||||
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
||||
echo ":/home/container$ ${MODIFIED_STARTUP}"
|
||||
|
||||
# Run the Server
|
||||
eval ${MODIFIED_STARTUP}
|
||||
+1
-1
@@ -43,6 +43,6 @@ ENV USER=container HOME=/home/container
|
||||
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
COPY ./../entrypoint.sh /entrypoint.sh
|
||||
|
||||
CMD ["/bin/bash", "/entrypoint.sh"]
|
||||
@@ -1,15 +0,0 @@
|
||||
#!/bin/bash
|
||||
cd /home/container
|
||||
|
||||
# Print Java version
|
||||
java -version
|
||||
|
||||
# Make internal Docker IP address available to processes.
|
||||
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
|
||||
|
||||
# Replace Startup Variables
|
||||
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
||||
echo ":/home/container$ ${MODIFIED_STARTUP}"
|
||||
|
||||
# Run the Server
|
||||
eval ${MODIFIED_STARTUP}
|
||||
File renamed without changes.
Reference in new issue
Block a user