Skip to content

Commit

Permalink
Add CSCI 4550 (#16)
Browse files Browse the repository at this point in the history
* Add CSCI 4550

* Change group
  • Loading branch information
cjreed121 authored Jan 31, 2024
1 parent 275b983 commit a53c557
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dockerfiles/csci4550/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"pushLatest": false
}
43 changes: 43 additions & 0 deletions dockerfiles/csci4550/ubuntu22.04/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
FROM ubuntu:22.04
# Install "software-properties-common" (for the "add-apt-repository")
RUN apt-get update && apt-get install -y \
software-properties-common
# Add the "JAVA" ppa
RUN add-apt-repository -y \
ppa:openjdk-r/ppa

# Install OpenJDK-8
RUN apt-get update && \
apt-get install -y openjdk-8-jdk && \
apt-get install -y ant && \
apt-get clean;

# Fix certificate issues
RUN apt-get update && \
apt-get install ca-certificates-java && \
apt-get clean && \
update-ca-certificates -f \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk8-installer

# Setup JAVA_HOME -- useful for docker commandline
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
RUN export JAVA_HOME

ENV SUBMITTY_INSTALL_DIR /usr/local/submitty

RUN apt-get update \
&& apt-get install -y --no-install-recommends curl \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p ${SUBMITTY_INSTALL_DIR}/java_tools/soot \
&& cd ${SUBMITTY_INSTALL_DIR}/java_tools/soot \
&& curl http://www.cs.rpi.edu/~milanova/csci4450/soot-develop.jar > soot-develop.jar \
&& curl http://www.cs.rpi.edu/~milanova/csci4450/rt.jar > rt.jar \
&& curl https://soot-build.cs.uni-paderborn.de/public/origin/develop/soot/soot-develop/build/sootclasses-trunk.jar > sootclasses-trunk.jar \
&& curl https://soot-build.cs.uni-paderborn.de/public/origin/develop/soot/soot-develop/build/sootclasses-trunk-jar-with-dependencies.jar > sootclasses-trunk-jar-with-dependencies.jar \
&& cd / \
&& chown -R root:root ${SUBMITTY_INSTALL_DIR}/java_tools \
&& chmod -R 755 ${SUBMITTY_INSTALL_DIR}/java_tools \
&& apt-get purge -y --auto-remove curl

CMD ["/bin/bash"]

0 comments on commit a53c557

Please sign in to comment.