Add java15 image
This commit is contained in:
parent
1fc88bda5a
commit
93aa787a0e
3 changed files with 50 additions and 1 deletions
3
.github/workflows/docker-publish.yml
vendored
3
.github/workflows/docker-publish.yml
vendored
|
@ -19,6 +19,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
image:
|
image:
|
||||||
- "alpine"
|
- "alpine"
|
||||||
|
- "source"
|
||||||
- "java7"
|
- "java7"
|
||||||
- "java8"
|
- "java8"
|
||||||
- "java9"
|
- "java9"
|
||||||
|
@ -27,7 +28,7 @@ jobs:
|
||||||
- "java12"
|
- "java12"
|
||||||
- "java13"
|
- "java13"
|
||||||
- "java14"
|
- "java14"
|
||||||
- "source"
|
- "java15"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Code Checkout
|
- name: Code Checkout
|
||||||
|
|
20
java15/Dockerfile
Normal file
20
java15/Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
#
|
||||||
|
# Copyright (c) 2020 Matthew Penner
|
||||||
|
#
|
||||||
|
# This repository is licensed under the MIT License.
|
||||||
|
# https://github.com/matthewpi/images/blob/master/LICENSE.md
|
||||||
|
#
|
||||||
|
|
||||||
|
FROM adoptopenjdk/openjdk15-openj9:alpine
|
||||||
|
|
||||||
|
LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
|
||||||
|
|
||||||
|
RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \
|
||||||
|
&& adduser -D -h /home/container container
|
||||||
|
|
||||||
|
USER container
|
||||||
|
ENV USER=container HOME=/home/container
|
||||||
|
WORKDIR /home/container
|
||||||
|
|
||||||
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
|
CMD [ "/bin/ash", "/entrypoint.sh" ]
|
28
java15/entrypoint.sh
Normal file
28
java15/entrypoint.sh
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
#!/bin/ash
|
||||||
|
|
||||||
|
#
|
||||||
|
# Copyright (c) 2020 Matthew Penner
|
||||||
|
#
|
||||||
|
# This repository is licensed under the MIT License.
|
||||||
|
# https://github.com/matthewpi/images/blob/master/LICENSE.md
|
||||||
|
#
|
||||||
|
|
||||||
|
# Default the TZ environment variable to UTC.
|
||||||
|
TZ=${TZ:-UTC}
|
||||||
|
export TZ
|
||||||
|
|
||||||
|
# Switch to the container's working directory
|
||||||
|
cd /home/container
|
||||||
|
|
||||||
|
# Set environment variable that holds the Internal Docker IP
|
||||||
|
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
|
||||||
|
|
||||||
|
# Print Java version
|
||||||
|
java -version
|
||||||
|
|
||||||
|
# Replace variables in the startup command
|
||||||
|
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
||||||
|
echo "[container@pterodactyl ~]$ ${MODIFIED_STARTUP}"
|
||||||
|
|
||||||
|
# Run the startup command
|
||||||
|
eval ${MODIFIED_STARTUP}
|
Loading…
Reference in a new issue