Team City agent with java 8 and 11
10K+
Team City agent with java 8 and 11 including javafx support on both + docker-compose 1.23.2
Dockerfile
# Build image only
FROM adoptopenjdk/openjdk8:x86_64-ubuntu-jdk8u192-b12 as builder
WORKDIR /tmp/
RUN apt-get update && apt-get install wget unzip -y
# Download and extract jdk 11
RUN wget --quiet -c https://download.java.net/java/ga/jdk11/openjdk-11_linux-x64_bin.tar.gz
RUN mkdir -p /usr/lib/jvm && tar -xvf openjdk-11_linux-x64_bin.tar.gz -C /usr/lib/jvm/
RUN rm openjdk-11_linux-x64_bin.tar.gz
# Download and extract openjfx 11 binaries
RUN wget --quiet -c https://download2.gluonhq.com/openjfx/11.0.1/openjfx-11.0.1_linux-x64_bin-sdk.zip
RUN unzip -qq openjfx-11.0.1_linux-x64_bin-sdk.zip
RUN cp -rlf javafx-sdk-11.0.1/* /usr/lib/jvm/jdk-11/
RUN rm -rf javafx-sdk-11.0.1 openjfx-11.0.1_linux-x64_bin-sdk.zip
# Download and extract openjfx 11 jmods
RUN wget --quiet -c https://download2.gluonhq.com/openjfx/11.0.1/openjfx-11.0.1_linux-x64_bin-jmods.zip
RUN unzip -qq openjfx-11.0.1_linux-x64_bin-jmods.zip
RUN cp -rlf javafx-jmods-11.0.1/* /usr/lib/jvm/jdk-11/
RUN rm -rf javafx-jmods-11.0.1 openjfx-11.0.1_linux-x64_bin-sdk.zip
# Download newer docker-compose
RUN curl -s -L https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
# Build the real image now
FROM jetbrains/teamcity-agent:2018.2.1-linux
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
ENV JAVA_TOOL_OPTIONS -Xmx4g
# Install default opendjk + openjfx
RUN apt-get update && apt-get install openjdk-8-jdk openjfx -y
# Copy the jdk 11 from builder
COPY --from=builder /usr/lib/jvm/jdk-11/ /usr/lib/jvm/jdk-11/
# Copy the docker-compose from builder
COPY --from=builder //usr/local/bin/docker-compose /usr/local/bin/docker-compose
# Remove the provided jdk from /opt/java
RUN rm -rf /opt/java
# Download newer docker-compose
RUN chmod +x /usr/local/bin/docker-compose
Content type
Image
Digest
Size
813.4 MB
Last updated
over 7 years ago
docker pull unafraid/teamcity-agent