Add cassandra images
This commit is contained in:
16
software/cassandra/cassandra_java11_python3/Dockerfile
Normal file
16
software/cassandra/cassandra_java11_python3/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
FROM --platform=$BUILDPLATFORM adoptopenjdk/openjdk11:alpine-jre
|
||||||
|
|
||||||
|
LABEL author="Pascal Zarrad" maintainer="p.zarrad@outlook.de"
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks"
|
||||||
|
LABEL org.opencontainers.image.licenses=MIT
|
||||||
|
|
||||||
|
RUN apk add --update --no-cache python3 ca-certificates curl fontconfig git openssl sqlite tar 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" ]
|
16
software/cassandra/cassandra_java8_python2/Dockerfile
Normal file
16
software/cassandra/cassandra_java8_python2/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
FROM --platform=$BUILDPLATFORM adoptopenjdk/openjdk8:alpine-jre
|
||||||
|
|
||||||
|
LABEL author="Pascal Zarrad" maintainer="p.zarrad@outlook.de"
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks"
|
||||||
|
LABEL org.opencontainers.image.licenses=MIT
|
||||||
|
|
||||||
|
RUN apk add --update --no-cache python2 ca-certificates curl fontconfig git openssl sqlite tar 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" ]
|
31
software/cassandra/entrypoint.sh
Normal file
31
software/cassandra/entrypoint.sh
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
#!/bin/ash
|
||||||
|
|
||||||
|
# Default the TZ environment variable to UTC.
|
||||||
|
TZ=${TZ:-UTC}
|
||||||
|
export TZ
|
||||||
|
|
||||||
|
# Set environment variable that holds the Internal Docker IP
|
||||||
|
INTERNAL_IP=$(ip route get 1 | awk '{print $NF;exit}')
|
||||||
|
export INTERNAL_IP
|
||||||
|
|
||||||
|
# Switch to the container's working directory
|
||||||
|
cd /home/container || exit 1
|
||||||
|
|
||||||
|
# Print Java version
|
||||||
|
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mjava -version\n"
|
||||||
|
java -version
|
||||||
|
|
||||||
|
# Print Python version
|
||||||
|
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mpython --version\n"
|
||||||
|
python --version
|
||||||
|
|
||||||
|
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
|
||||||
|
# variable format of "${VARIABLE}" before evaluating the string and automatically
|
||||||
|
# replacing the values.
|
||||||
|
PARSED=$(echo "${STARTUP}" | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)")
|
||||||
|
|
||||||
|
# Display the command we're running in the output, and then execute it with the env
|
||||||
|
# from the container itself.
|
||||||
|
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0m%s\n" "$PARSED"
|
||||||
|
# shellcheck disable=SC2086
|
||||||
|
exec env ${PARSED}
|
Reference in New Issue
Block a user