Skip to content

Instantly share code, notes, and snippets.

@ronzalo
Created June 26, 2018 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronzalo/bb211854e0a40c426ede34517202add7 to your computer and use it in GitHub Desktop.
Save ronzalo/bb211854e0a40c426ede34517202add7 to your computer and use it in GitHub Desktop.
Python Dockerfile for Autolab autograding image
# Autolab - autograding docker image
FROM ubuntu:18.04
MAINTAINER Gonzalo Moreno <gonzalo.m@desafiolatam.com>
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