Created
June 26, 2018 18:53
-
-
Save ronzalo/bb211854e0a40c426ede34517202add7 to your computer and use it in GitHub Desktop.
Python Dockerfile for Autolab autograding image
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
# Autolab - autograding docker image | |
FROM ubuntu:18.04 | |
MAINTAINER Gonzalo Moreno <[email protected]> | |
RUN apt-get update --fix-missing | |
RUN apt-get install -y gcc | |
RUN apt-get install -y make | |
RUN apt-get install -y build-essential | |
RUN apt-get install -y python | |
# 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 apt-get install -y git | |
RUN git clone 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 | |
# Clean up | |
WORKDIR /home | |
RUN apt-get remove -y git | |
RUN apt-get -y autoremove | |
RUN rm -rf Tango/ | |
# Check installation | |
RUN ls -l /home | |
RUN which autodriver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment