Add a bunch more java images, syntax changes
This commit is contained in:
parent
52878fb967
commit
92750f6065
18 changed files with 401 additions and 8 deletions
92
.github/workflows/docker-publish.yml
vendored
92
.github/workflows/docker-publish.yml
vendored
|
@ -21,13 +21,34 @@ jobs:
|
|||
- name: Registry Authentication
|
||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
|
||||
|
||||
- name: Build Alpine Image
|
||||
- name: Build alpine Image
|
||||
run: docker build ./alpine --tag alpine
|
||||
|
||||
- name: Build Java8 Image
|
||||
- name: Build java7 Image
|
||||
run: docker build ./java7 --tag java7
|
||||
|
||||
- name: Build java8 Image
|
||||
run: docker build ./java8 --tag java8
|
||||
|
||||
- name: Push Alpine Image
|
||||
- name: Build java9 Image
|
||||
run: docker build ./java9 --tag java9
|
||||
|
||||
- name: Build java10 Image
|
||||
run: docker build ./java10 --tag java10
|
||||
|
||||
- name: Build java11 Image
|
||||
run: docker build ./java11 --tag java11
|
||||
|
||||
- name: Build java12 Image
|
||||
run: docker build ./java12 --tag java12
|
||||
|
||||
- name: Build java13 Image
|
||||
run: docker build ./java13 --tag java13
|
||||
|
||||
- name: Build java14 Image
|
||||
run: docker build ./java14 --tag java14
|
||||
|
||||
- name: Push alpine Image
|
||||
run: |
|
||||
IMAGE_NAME=alpine
|
||||
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
|
||||
|
@ -36,7 +57,16 @@ jobs:
|
|||
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
|
||||
docker push $IMAGE_ID:$VERSION
|
||||
|
||||
- name: Push Java8 Image
|
||||
- name: Push java7 Image
|
||||
run: |
|
||||
IMAGE_NAME=java7
|
||||
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
|
||||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
|
||||
|
||||
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
|
||||
docker push $IMAGE_ID:$VERSION
|
||||
|
||||
- name: Push java8 Image
|
||||
run: |
|
||||
IMAGE_NAME=java8
|
||||
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
|
||||
|
@ -44,3 +74,57 @@ jobs:
|
|||
|
||||
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
|
||||
docker push $IMAGE_ID:$VERSION
|
||||
|
||||
- name: Push java9 Image
|
||||
run: |
|
||||
IMAGE_NAME=java9
|
||||
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
|
||||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
|
||||
|
||||
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
|
||||
docker push $IMAGE_ID:$VERSION
|
||||
|
||||
- name: Push java10 Image
|
||||
run: |
|
||||
IMAGE_NAME=java10
|
||||
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
|
||||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
|
||||
|
||||
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
|
||||
docker push $IMAGE_ID:$VERSION
|
||||
|
||||
- name: Push java11 Image
|
||||
run: |
|
||||
IMAGE_NAME=java11
|
||||
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
|
||||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
|
||||
|
||||
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
|
||||
docker push $IMAGE_ID:$VERSION
|
||||
|
||||
- name: Push java12 Image
|
||||
run: |
|
||||
IMAGE_NAME=java12
|
||||
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
|
||||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
|
||||
|
||||
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
|
||||
docker push $IMAGE_ID:$VERSION
|
||||
|
||||
- name: Push java13 Image
|
||||
run: |
|
||||
IMAGE_NAME=java13
|
||||
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
|
||||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
|
||||
|
||||
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
|
||||
docker push $IMAGE_ID:$VERSION
|
||||
|
||||
- name: Push java14 Image
|
||||
run: |
|
||||
IMAGE_NAME=java14
|
||||
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
|
||||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
|
||||
|
||||
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
|
||||
docker push $IMAGE_ID:$VERSION
|
||||
|
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.DS_Store
|
|
@ -10,8 +10,8 @@ FROM alpine:latest
|
|||
LABEL author="Matthew Penner" maintainer="me@matthewp.io"
|
||||
|
||||
RUN apk add --update --no-cache ca-certificates tzdata \
|
||||
&& adduser -D -h /home/container container \
|
||||
&& ln -s /etc/localtime /etc/timezone
|
||||
&& adduser -D -h /home/container container \
|
||||
&& ln -s /etc/localtime /etc/timezone
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
|
|
21
java10/Dockerfile
Normal file
21
java10/Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
#
|
||||
# Copyright (c) 2020 Matthew Penner
|
||||
#
|
||||
# This repository is licensed under the MIT License.
|
||||
# https://github.com/matthewpi/images/blob/master/LICENSE.md
|
||||
#
|
||||
|
||||
FROM adoptopenjdk/openjdk10-openj9:alpine
|
||||
|
||||
LABEL author="Matthew Penner" maintainer="me@matthewp.io"
|
||||
|
||||
RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \
|
||||
&& adduser -D -h /home/container container \
|
||||
&& ln -s /etc/localtime /etc/timezone
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
CMD [ "/bin/ash", "/entrypoint.sh" ]
|
23
java10/entrypoint.sh
Normal file
23
java10/entrypoint.sh
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/ash
|
||||
|
||||
#
|
||||
# Copyright (c) 2020 Matthew Penner
|
||||
#
|
||||
# This repository is licensed under the MIT License.
|
||||
# https://github.com/matthewpi/images/blob/master/LICENSE.md
|
||||
#
|
||||
|
||||
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 start command variables
|
||||
MODIFIED_START=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
||||
echo "[container@pterodactyl ~]$ ${MODIFIED_START}"
|
||||
|
||||
# Run the modified start command
|
||||
eval ${MODIFIED_START}
|
21
java11/Dockerfile
Normal file
21
java11/Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
#
|
||||
# Copyright (c) 2020 Matthew Penner
|
||||
#
|
||||
# This repository is licensed under the MIT License.
|
||||
# https://github.com/matthewpi/images/blob/master/LICENSE.md
|
||||
#
|
||||
|
||||
FROM adoptopenjdk/openjdk11-openj9:alpine
|
||||
|
||||
LABEL author="Matthew Penner" maintainer="me@matthewp.io"
|
||||
|
||||
RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \
|
||||
&& adduser -D -h /home/container container \
|
||||
&& ln -s /etc/localtime /etc/timezone
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
CMD [ "/bin/ash", "/entrypoint.sh" ]
|
23
java11/entrypoint.sh
Normal file
23
java11/entrypoint.sh
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/ash
|
||||
|
||||
#
|
||||
# Copyright (c) 2020 Matthew Penner
|
||||
#
|
||||
# This repository is licensed under the MIT License.
|
||||
# https://github.com/matthewpi/images/blob/master/LICENSE.md
|
||||
#
|
||||
|
||||
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 start command variables
|
||||
MODIFIED_START=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
||||
echo "[container@pterodactyl ~]$ ${MODIFIED_START}"
|
||||
|
||||
# Run the modified start command
|
||||
eval ${MODIFIED_START}
|
21
java12/Dockerfile
Normal file
21
java12/Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
#
|
||||
# Copyright (c) 2020 Matthew Penner
|
||||
#
|
||||
# This repository is licensed under the MIT License.
|
||||
# https://github.com/matthewpi/images/blob/master/LICENSE.md
|
||||
#
|
||||
|
||||
FROM adoptopenjdk/openjdk12-openj9:alpine
|
||||
|
||||
LABEL author="Matthew Penner" maintainer="me@matthewp.io"
|
||||
|
||||
RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \
|
||||
&& adduser -D -h /home/container container \
|
||||
&& ln -s /etc/localtime /etc/timezone
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
CMD [ "/bin/ash", "/entrypoint.sh" ]
|
23
java12/entrypoint.sh
Normal file
23
java12/entrypoint.sh
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/ash
|
||||
|
||||
#
|
||||
# Copyright (c) 2020 Matthew Penner
|
||||
#
|
||||
# This repository is licensed under the MIT License.
|
||||
# https://github.com/matthewpi/images/blob/master/LICENSE.md
|
||||
#
|
||||
|
||||
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 start command variables
|
||||
MODIFIED_START=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
||||
echo "[container@pterodactyl ~]$ ${MODIFIED_START}"
|
||||
|
||||
# Run the modified start command
|
||||
eval ${MODIFIED_START}
|
21
java13/Dockerfile
Normal file
21
java13/Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
#
|
||||
# Copyright (c) 2020 Matthew Penner
|
||||
#
|
||||
# This repository is licensed under the MIT License.
|
||||
# https://github.com/matthewpi/images/blob/master/LICENSE.md
|
||||
#
|
||||
|
||||
FROM adoptopenjdk/openjdk13-openj9:alpine
|
||||
|
||||
LABEL author="Matthew Penner" maintainer="me@matthewp.io"
|
||||
|
||||
RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \
|
||||
&& adduser -D -h /home/container container \
|
||||
&& ln -s /etc/localtime /etc/timezone
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
CMD [ "/bin/ash", "/entrypoint.sh" ]
|
23
java13/entrypoint.sh
Normal file
23
java13/entrypoint.sh
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/ash
|
||||
|
||||
#
|
||||
# Copyright (c) 2020 Matthew Penner
|
||||
#
|
||||
# This repository is licensed under the MIT License.
|
||||
# https://github.com/matthewpi/images/blob/master/LICENSE.md
|
||||
#
|
||||
|
||||
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 start command variables
|
||||
MODIFIED_START=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
||||
echo "[container@pterodactyl ~]$ ${MODIFIED_START}"
|
||||
|
||||
# Run the modified start command
|
||||
eval ${MODIFIED_START}
|
21
java14/Dockerfile
Normal file
21
java14/Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
#
|
||||
# Copyright (c) 2020 Matthew Penner
|
||||
#
|
||||
# This repository is licensed under the MIT License.
|
||||
# https://github.com/matthewpi/images/blob/master/LICENSE.md
|
||||
#
|
||||
|
||||
FROM adoptopenjdk/openjdk14-openj9:alpine
|
||||
|
||||
LABEL author="Matthew Penner" maintainer="me@matthewp.io"
|
||||
|
||||
RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \
|
||||
&& adduser -D -h /home/container container \
|
||||
&& ln -s /etc/localtime /etc/timezone
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
CMD [ "/bin/ash", "/entrypoint.sh" ]
|
23
java14/entrypoint.sh
Normal file
23
java14/entrypoint.sh
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/ash
|
||||
|
||||
#
|
||||
# Copyright (c) 2020 Matthew Penner
|
||||
#
|
||||
# This repository is licensed under the MIT License.
|
||||
# https://github.com/matthewpi/images/blob/master/LICENSE.md
|
||||
#
|
||||
|
||||
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 start command variables
|
||||
MODIFIED_START=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
||||
echo "[container@pterodactyl ~]$ ${MODIFIED_START}"
|
||||
|
||||
# Run the modified start command
|
||||
eval ${MODIFIED_START}
|
21
java7/Dockerfile
Normal file
21
java7/Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
#
|
||||
# Copyright (c) 2020 Matthew Penner
|
||||
#
|
||||
# This repository is licensed under the MIT License.
|
||||
# https://github.com/matthewpi/images/blob/master/LICENSE.md
|
||||
#
|
||||
|
||||
FROM openjdk:7-jre-alpine
|
||||
|
||||
LABEL author="Matthew Penner" maintainer="me@matthewp.io"
|
||||
|
||||
RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \
|
||||
&& adduser -D -h /home/container container \
|
||||
&& ln -s /etc/localtime /etc/timezone
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
CMD [ "/bin/ash", "/entrypoint.sh" ]
|
23
java7/entrypoint.sh
Normal file
23
java7/entrypoint.sh
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/ash
|
||||
|
||||
#
|
||||
# Copyright (c) 2020 Matthew Penner
|
||||
#
|
||||
# This repository is licensed under the MIT License.
|
||||
# https://github.com/matthewpi/images/blob/master/LICENSE.md
|
||||
#
|
||||
|
||||
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 start command variables
|
||||
MODIFIED_START=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
||||
echo "[container@pterodactyl ~]$ ${MODIFIED_START}"
|
||||
|
||||
# Run the modified start command
|
||||
eval ${MODIFIED_START}
|
|
@ -10,8 +10,8 @@ FROM ibmjava:8-jre-alpine
|
|||
LABEL author="Matthew Penner" maintainer="me@matthewp.io"
|
||||
|
||||
RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \
|
||||
&& adduser -D -h /home/container container \
|
||||
&& ln -s /etc/localtime /etc/timezone
|
||||
&& adduser -D -h /home/container container \
|
||||
&& ln -s /etc/localtime /etc/timezone
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
|
|
21
java9/Dockerfile
Normal file
21
java9/Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
#
|
||||
# Copyright (c) 2020 Matthew Penner
|
||||
#
|
||||
# This repository is licensed under the MIT License.
|
||||
# https://github.com/matthewpi/images/blob/master/LICENSE.md
|
||||
#
|
||||
|
||||
FROM adoptopenjdk/openjdk9-openj9:alpine
|
||||
|
||||
LABEL author="Matthew Penner" maintainer="me@matthewp.io"
|
||||
|
||||
RUN apk add --update --no-cache curl ca-certificates openssl git tar bash sqlite fontconfig tzdata \
|
||||
&& adduser -D -h /home/container container \
|
||||
&& ln -s /etc/localtime /etc/timezone
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
CMD [ "/bin/ash", "/entrypoint.sh" ]
|
23
java9/entrypoint.sh
Normal file
23
java9/entrypoint.sh
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/ash
|
||||
|
||||
#
|
||||
# Copyright (c) 2020 Matthew Penner
|
||||
#
|
||||
# This repository is licensed under the MIT License.
|
||||
# https://github.com/matthewpi/images/blob/master/LICENSE.md
|
||||
#
|
||||
|
||||
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 start command variables
|
||||
MODIFIED_START=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
||||
echo "[container@pterodactyl ~]$ ${MODIFIED_START}"
|
||||
|
||||
# Run the modified start command
|
||||
eval ${MODIFIED_START}
|
Loading…
Reference in a new issue