Created
April 3, 2014 16:30
-
-
Save steinwaywhw/9957831 to your computer and use it in GitHub Desktop.
A docker image for ATS development.
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
FROM stackbrew/ubuntu:13.10 | |
RUN apt-get update | |
RUN apt-get install -y libgmp3-dev | |
RUN apt-get install -y make | |
RUN apt-get install -y gcc | |
RUN apt-get install -y build-essential | |
RUN apt-get install -y wget | |
RUN apt-get install -y bash | |
WORKDIR /root | |
RUN wget -O ats.tgz http://sourceforge.net/projects/ats2-lang/files/latest/download?source=files | |
RUN tar -xvf ats.tgz | |
RUN mv ATS2* ats2 | |
RUN rm ats.tgz | |
WORKDIR /root/ats2 | |
RUN ./configure | |
RUN make | |
WORKDIR /root | |
RUN echo "export PATSHOME=/root/ats2" > env.sh | |
RUN echo "export PATH=$PATH:/root/ats2/bin" >> env.sh | |
ENV PATSHOME /root/ats2 | |
ENV PATH $PATH:/root/ats2/bin |
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
build: | |
docker build -t atsimg . | |
run: | |
docker run -t -i -v $(shell pwd):/root/workspace -w /root/workspace atsimg bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment