Skip to content
Snippets Groups Projects
Commit a0c3017e authored by Lauri Koivunen's avatar Lauri Koivunen :tools:
Browse files

Add autograder image

parent 80e84d68
No related branches found
No related tags found
No related merge requests found
Pipeline #35595 failed
......@@ -12,3 +12,15 @@ docker-build-master:
- docker push "$CI_REGISTRY_IMAGE"
only:
- master
docker-build-autograder:
# Official docker image.
image: docker:latest
stage: build
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE:autograder" Dockerfile_autograder
- docker push "$CI_REGISTRY_IMAGE:autograder"
FROM ubuntu:20.04
MAINTAINER Autolab Team <autolab-dev@andrew.cmu.edu>
RUN apt-get update && apt-get install -y \
build-essential \
gcc \
git \
make \
freeglut3-dev \
gtkwave \
texinfo \
libncurses-dev \
elfutils \
swig \
python3-pip \
ctags \
libelf1 \
libelf-dev \
libglib2.0-dev \
gcc-avr \
gdb-avr \
avr-libc \
sudo \
&& rm -rf /var/lib/apt/lists/*
# Install autodriver
WORKDIR /home
RUN useradd autolab
RUN useradd autograde
RUN mkdir autolab autograde output
RUN chown autolab:autolab autolab
RUN chown autolab:autolab output
RUN chown autograde:autograde autograde
RUN git clone --depth 1 https://github.com/autolab/Tango.git
WORKDIR Tango/autodriver
RUN make clean && make
RUN cp autodriver /usr/bin/autodriver
RUN chmod +s /usr/bin/autodriver
# Get us Simavr
WORKDIR /tmp/
RUN git clone https://github.com/buserror/simavr.git --single-branch --depth 1
WORKDIR /tmp/simavr
RUN make
RUN make install
#RUN make install RELEASE=1
RUN pip3 install pysimavr
# Clean up
WORKDIR /home
RUN apt-get remove -y git && apt-get -y autoremove && rm -rf Tango/
# Check installation
RUN ls -l /home
RUN which autodriver
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment