Skip to content

Commit 90b5b06

Browse files
authored
[Feature:Autograding] update autograding-default to ubuntu22 (#62)
Co-authored-by: Barb Cutler <Barb Cutler>
1 parent 414c384 commit 90b5b06

File tree

2 files changed

+92
-1
lines changed

2 files changed

+92
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"pushLatest": true,
3-
"latestTag": "ubuntu-20.04"
3+
"latestTag": "ubuntu-22.04"
44
}
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# Note: This Dockerfile represents the original "Ubuntu" build image
2+
# that Submitty included inside the main repo. As such, it does
3+
# not have the same conventions as the other images and does not have
4+
# any metadata.json file or is made up of components parts. Have to edit
5+
# this file directly.
6+
7+
FROM ubuntu:22.04
8+
9+
RUN apt-get update
10+
RUN apt-get install -y python3
11+
RUN apt-get install -y libpython3.10
12+
RUN apt-get install -y python3-dev
13+
RUN apt-get install -y clang lld lldb
14+
RUN apt-get install -y gcc g++
15+
#RUN apt-get install -y gdb
16+
17+
RUN apt-get install -y autoconf automake autotools-dev
18+
RUN apt-get install -y diffstat
19+
RUN apt-get install -y finger sed
20+
RUN apt-get -y install locales
21+
22+
RUN apt-get install -y git
23+
RUN apt-get install -y git-man
24+
RUN apt-get install -y dpkg-dev
25+
RUN apt-get install -y p7zip-full
26+
RUN apt-get install -y patchutils
27+
RUN apt-get install -y libpq-dev
28+
RUN apt-get install -y unzip zip
29+
#RUN apt-get install -y valgrind
30+
RUN apt-get install -y libmagic-ocaml-dev
31+
RUN apt-get install -y javascript-common
32+
RUN apt-get install -y libfile-mmagic-perl libgnupg-interface-perl libbsd-resource-perl libarchive-zip-perl
33+
RUN apt-get install -y jq libseccomp-dev libseccomp2 seccomp
34+
#RUN apt-get install -y junit
35+
RUN apt-get install -y flex
36+
RUN apt-get install -y bison
37+
RUN apt-get install -y spim
38+
RUN apt-get install -y poppler-utils
39+
#RUN apt-get install -y imagemagick
40+
RUN apt-get install -y cloc
41+
42+
ENV LANG C.UTF-8
43+
ENV LC_ALL C.UTF-8
44+
ENV LANGUAGE en_US.UTF-8
45+
ENV LC_CTYPE=en_US.UTF-8
46+
47+
ENV DRMEMORY_TAG release_2.6.0
48+
ENV DRMEMORY_VERSION 2.6.0
49+
ENV AnalysisTools_Version v22.03.00
50+
ENV AnalysisToolsTS_Version v23.10.00
51+
ENV SUBMITTY_INSTALL_DIR /usr/local/submitty
52+
53+
54+
RUN apt-get update \
55+
&& apt-get install -y --no-install-recommends wget ca-certificates rsync \
56+
&& mkdir -p ${SUBMITTY_INSTALL_DIR}/drmemory \
57+
&& cd /tmp \
58+
&& wget https://github.com/DynamoRIO/drmemory/releases/download/${DRMEMORY_TAG}/DrMemory-Linux-${DRMEMORY_VERSION}.tar.gz \
59+
&& tar -xpzf DrMemory-Linux-${DRMEMORY_VERSION}.tar.gz \
60+
&& rsync --delete -a /tmp/DrMemory-Linux-${DRMEMORY_VERSION}/ ${SUBMITTY_INSTALL_DIR}/drmemory \
61+
&& rm -rf /tmp/DrMemory* \
62+
&& chown -R root:${COURSE_BUILDERS_GROUP} ${SUBMITTY_INSTALL_DIR}/drmemory \
63+
&& chmod -R 755 ${SUBMITTY_INSTALL_DIR}/drmemory \
64+
&& mkdir -p ${SUBMITTY_INSTALL_DIR}/SubmittyAnalysisTools \
65+
&& wget -nv "https://github.com/Submitty/AnalysisTools/releases/download/${AnalysisTools_Version}/count" -O ${SUBMITTY_INSTALL_DIR}/SubmittyAnalysisTools/count \
66+
&& wget -nv "https://github.com/Submitty/AnalysisTools/releases/download/${AnalysisTools_Version}/plagiarism" -O ${SUBMITTY_INSTALL_DIR}/SubmittyAnalysisTools/plagiarism \
67+
&& wget -nv "https://github.com/Submitty/AnalysisTools/releases/download/${AnalysisTools_Version}/diagnostics" -O ${SUBMITTY_INSTALL_DIR}/SubmittyAnalysisTools/diagnostics \
68+
&& mkdir -p ${SUBMITTY_INSTALL_DIR}/SubmittyAnalysisToolsTS/build \
69+
&& wget -nv "https://github.com/Submitty/AnalysisToolsTS/releases/download/${AnalysisToolsTS_Version}/submitty_count_ts" -O ${SUBMITTY_INSTALL_DIR}/SubmittyAnalysisToolsTS/build/submitty_count_ts \
70+
&& wget -nv "https://github.com/Submitty/AnalysisToolsTS/releases/download/${AnalysisToolsTS_Version}/submitty_diagnostics_ts" -O ${SUBMITTY_INSTALL_DIR}/SubmittyAnalysisToolsTS/build/submitty_diagnostics_ts \
71+
&& chmod -R 755 ${SUBMITTY_INSTALL_DIR}/SubmittyAnalysisToolsTS
72+
73+
74+
RUN mkdir -p ${SUBMITTY_INSTALL_DIR}/bin
75+
RUN wget -nv https://raw.githubusercontent.com/Submitty/Submitty/refs/heads/main/bin/comment_count.py -O ${SUBMITTY_INSTALL_DIR}/bin/comment_count.py
76+
RUN chmod -R 755 ${SUBMITTY_INSTALL_DIR}/bin/
77+
RUN chmod -R 755 ${SUBMITTY_INSTALL_DIR}/bin/comment_count.py
78+
79+
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
80+
81+
82+
RUN apt-get purge -y --auto-remove wget
83+
RUN rm -rf /var/lib/apt/lists/*
84+
85+
86+
87+
88+
#RUN locale-gen
89+
#RUN dpkg-reconfigure locales
90+
91+

0 commit comments

Comments
 (0)