Last active
July 17, 2018 12:50
-
-
Save schnapster/4bc4ca523ce8a215f239b685b305e66a to your computer and use it in GitHub Desktop.
Teamcity agent docker image with Java 10 and docker-compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM jetbrains/teamcity-agent | |
RUN apt update && apt install wget && \ | |
wget --no-check-certificate -c --header "Cookie: oraclelicense=accept-securebackup-cookie" \ | |
http://download.oracle.com/otn-pub/java/jdk/10.0.1+10/fb4372174a714e6b8c52526dc134031e/jdk-10.0.1_linux-x64_bin.tar.gz && \ | |
tar -xvf jdk-10.0.1_linux-x64_bin.tar.gz && \ | |
rm jdk-10.0.1_linux-x64_bin.tar.gz && \ | |
mkdir -p /usr/lib/jvm/jdk-10 && \ | |
mv jdk-10*/* /usr/lib/jvm/jdk-10/ && \ | |
update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-10/bin/java" 1020 && \ | |
update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk-10/bin/javac" 1020 && \ | |
update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk-10/bin/javaws" 1020 && \ | |
curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose && \ | |
chmod +x /usr/local/bin/docker-compose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment