docker/java (sha256:6a344196232035de46852a89754079b897196936705ac0e8e2542011313a5268)

Published 2026-01-03 22:34:50 +00:00 by geusebio in Grey.ooo/docker

Installation

docker pull git.grey.ooo/grey.ooo/docker/java@sha256:6a344196232035de46852a89754079b897196936705ac0e8e2542011313a5268
sha256:6a344196232035de46852a89754079b897196936705ac0e8e2542011313a5268

About this package

Java JDK 7 base image

Image layers

ADD alpine-minirootfs-3.18.12-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
ENV ALPINE_VERSION=3.18
ARG BASE_PACKAGES= bash bash-completion pv bc btop less util-linux-misc util-linux-bash-completion bind-tools iputils-ping net-tools traceroute git openssh-client ca-certificates wget curl tar gzip xz bzip2 cronie flock nano vim figlet ncurses runuser runit dos2unix patch
LABEL org.opencontainers.image.vendor=Grey.ooo org.opencontainers.image.authors=Matt B <matt@grey.ooo> org.opencontainers.image.url=https://git.grey.ooo/Grey.ooo/docker org.opencontainers.image.source=https://git.grey.ooo/Grey.ooo/docker org.opencontainers.image.documentation=https://git.grey.ooo/Grey.ooo/docker/src/branch/main/README.md ooo.grey.version.alpine=3.18
ENV TERM=xterm-256color PATH=/app:/app/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LOG_PATHS= SVDIR=/etc/services.d SVWAIT=5 PAGER=/usr/bin/less EDITOR=/usr/bin/nano SYSTEM_USER=app
WORKDIR /app
RUN |1 BASE_PACKAGES= bash bash-completion pv bc btop less util-linux-misc util-linux-bash-completion bind-tools iputils-ping net-tools traceroute git openssh-client ca-certificates wget curl tar gzip xz bzip2 cronie flock nano vim figlet ncurses runuser runit dos2unix patch /bin/sh -c set -ue apk add --no-cache $BASE_PACKAGES # add our app user adduser -D -u 1000 $SYSTEM_USER -h /home -s /bin/bash chown -R $SYSTEM_USER:$SYSTEM_USER /app # We're about to add the root filesystem and I want to clean house of these runit-related directories before I do so. rm -Rf /etc/service /etc/services /etc/services.d \ /etc/periodic /etc/cron.d \ /etc/conf.d # buildkit
SHELL [/bin/bash -ce]
COPY ./fs/alpine/. / # buildkit
RUN |1 BASE_PACKAGES= bash bash-completion pv bc btop less util-linux-misc util-linux-bash-completion bind-tools iputils-ping net-tools traceroute git openssh-client ca-certificates wget curl tar gzip xz bzip2 cronie flock nano vim figlet ncurses runuser runit dos2unix patch /bin/bash -ce # Install lolcat from the edge/testing repo. # This is a workaround for the fact that lolcat is not available in the stable repo. # It lets us have nice colourful banners. apk add --no-cache lolcat --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing # buildkit
STOPSIGNAL SIGHUP
CMD ["/usr/local/bin/entrypoint"]
RUN |1 BASE_PACKAGES= bash bash-completion pv bc btop less util-linux-misc util-linux-bash-completion bind-tools iputils-ping net-tools traceroute git openssh-client ca-certificates wget curl tar gzip xz bzip2 cronie flock nano vim figlet ncurses runuser runit dos2unix patch /bin/bash -ce rm /root/.bashrc /root/.profile /home/.bashrc /home/.profile /etc/profile.d/00-bashrc.sh >/dev/null 2>&1 || true ln -s /etc/profile /root/.bashrc ln -s /etc/profile /root/.profile ln -s /etc/profile /home/.bashrc ln -s /etc/profile /home/.profile sed -i 's|/bin/ash|/bin/bash|' /etc/passwd sv-fix-perms /usr/local/bin/validate # buildkit
ARG JAVA_PACKAGES=openjdk7 openjdk7-jre-base
ARG JAVA_VERSION=1.7
ENV JAVA_HOME=/usr/lib/jvm/java-1.7-openjdk
LABEL ooo.grey.version.java=1.7
ENV PATH=/usr/lib/jvm/java-1.7-openjdk/bin:/app:/app/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin JAVA_VERSION=1.7 JAVA_OPTS=
COPY ./fs/java/. / # buildkit
RUN |3 BASE_PACKAGES= bash bash-completion pv bc btop less util-linux-misc util-linux-bash-completion bind-tools iputils-ping net-tools traceroute git openssh-client ca-certificates wget curl tar gzip xz bzip2 cronie flock nano vim figlet ncurses runuser runit dos2unix patch JAVA_PACKAGES=openjdk7 openjdk7-jre-base JAVA_VERSION=1.7 /bin/bash -ce sv-fix-perms # Install our packages apk add --no-cache $JAVA_PACKAGES /usr/local/bin/validate # buildkit
ARG TOMCAT_VERSION=8.5.83
LABEL ooo.grey.version.tomcat=8.5.83
ENV TOMCAT_VERSION=8.5.83 CATALINA_HOME=/opt/tomcat CATALINA_BASE=/opt/tomcat PATH=/opt/tomcat/bin:/usr/lib/jvm/java-1.7-openjdk/bin:/app:/app/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
COPY ./fs/java-tomcat / # buildkit
RUN |4 BASE_PACKAGES= bash bash-completion pv bc btop less util-linux-misc util-linux-bash-completion bind-tools iputils-ping net-tools traceroute git openssh-client ca-certificates wget curl tar gzip xz bzip2 cronie flock nano vim figlet ncurses runuser runit dos2unix patch JAVA_PACKAGES=openjdk7 openjdk7-jre-base JAVA_VERSION=1.7 TOMCAT_VERSION=8.5.83 /bin/bash -ce # Fix ownership & execution of service scripts sv-fix-perms # Download and install Apache Tomcat TOMCAT_MAJOR_VERSION=$(echo "$TOMCAT_VERSION" | cut -f1 -d'.') # if TOMCAT_MAJOR_VERSION is >= 9, use the dlcdn.apache.org CDN, otherwise use archive.apache.org if [ "$TOMCAT_MAJOR_VERSION" -ge 9 ]; then CDN="https://dlcdn.apache.org/" else CDN="https://archive.apache.org/dist/" fi wget -qO /tmp/apache-tomcat.tar.gz ${CDN}tomcat/tomcat-${TOMCAT_MAJOR_VERSION}/v${TOMCAT_VERSION}/bin/apache-tomcat-${TOMCAT_VERSION}.tar.gz mkdir -p $CATALINA_HOME tar -xzf /tmp/apache-tomcat.tar.gz --strip-components=1 -C $CATALINA_HOME rm -f /tmp/apache-tomcat.tar.gz mkdir -p $CATALINA_HOME/conf/Catalina/localhost chown -R app:app $CATALINA_HOME chmod +x $CATALINA_HOME/bin/*.sh /usr/local/bin/validate # buildkit

Labels

Key Value
ooo.grey.version.alpine 3.18
ooo.grey.version.java 1.7
ooo.grey.version.tomcat 8.5.83
org.opencontainers.image.authors Matt B <matt@grey.ooo>
org.opencontainers.image.description Java JDK 7 base image
org.opencontainers.image.documentation https://git.grey.ooo/Grey.ooo/docker/src/branch/main/README.md
org.opencontainers.image.source https://git.grey.ooo/Grey.ooo/docker
org.opencontainers.image.url https://git.grey.ooo/Grey.ooo/docker
org.opencontainers.image.vendor Grey.ooo
Details
Container
2026-01-03 22:34:50 +00:00
0
OCI / Docker
linux/arm64
Matt B <matt@grey.ooo>
112 MiB
Versions (42) View all