From c04ce0882a7f677843bc4ab2101977e4eb84dc73 Mon Sep 17 00:00:00 2001 From: Barb Cutler Date: Mon, 26 Feb 2024 21:33:47 -0800 Subject: [PATCH] [InstructorUI] Add docker image for CSCI 4210 (#19) * Add CSCI 4210 * Add java home --------- Co-authored-by: Chris Reed <55092742+cjreed121@users.noreply.github.com> --- dockerfiles/csci4210/metadata.json | 3 +++ dockerfiles/csci4210/ubuntu22.04/Dockerfile | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 dockerfiles/csci4210/metadata.json create mode 100644 dockerfiles/csci4210/ubuntu22.04/Dockerfile diff --git a/dockerfiles/csci4210/metadata.json b/dockerfiles/csci4210/metadata.json new file mode 100644 index 0000000..f653a30 --- /dev/null +++ b/dockerfiles/csci4210/metadata.json @@ -0,0 +1,3 @@ +{ + "pushLatest": false +} \ No newline at end of file diff --git a/dockerfiles/csci4210/ubuntu22.04/Dockerfile b/dockerfiles/csci4210/ubuntu22.04/Dockerfile new file mode 100644 index 0000000..1820528 --- /dev/null +++ b/dockerfiles/csci4210/ubuntu22.04/Dockerfile @@ -0,0 +1,21 @@ +FROM ubuntu:22.04 + +# Install python3 +RUN apt-get update \ + && apt-get -y --no-install-recommends install python3 \ + && rm -rf /var/lib/apt/lists/* + +# Install Java 21 +RUN apt-get update \ + && apt-get -y --no-install-recommends install openjdk-21-jdk \ + && rm -rf /var/lib/apt/lists/* + +# Setup JAVA_HOME -- useful for docker commandline +ENV JAVA_HOME /usr/lib/jvm/java-21-openjdk-amd64/ +RUN export JAVA_HOME + +# Install C/C++ +RUN apt-get update \ + && apt-get -y --no-install-recommends install gcc g++ \ + && rm -rf /var/lib/apt/lists/* +