Skip to content

Commit cd18303

Browse files
committed
Add Dockerfile and runner script
1 parent b7a39a1 commit cd18303

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

Dockerfile

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
FROM ubuntu:16.04
2+
3+
MAINTAINER Tamas Koczka <[email protected]>
4+
5+
RUN apt-get update
6+
RUN apt-get install -qqy python
7+
RUN apt-get install -qqy ruby
8+
RUN apt-get install -qqy php
9+
RUN apt-get install -qqy perl
10+
RUN apt-get install -qqy default-jdk
11+
RUN apt-get install -qqy maven
12+
RUN apt-get install -qqy mono-mcs
13+
RUN apt-get install -qqy golang-go
14+
RUN apt-get install -qqy nano
15+
RUN apt-get install -qqy clang libicu-dev
16+
RUN apt-get install -qqy wget
17+
18+
RUN wget https://swift.org/builds/swift-4.0-release/ubuntu1604/swift-4.0-RELEASE/swift-4.0-RELEASE-ubuntu16.04.tar.gz
19+
RUN tar xzf swift-4.0-RELEASE-ubuntu16.04.tar.gz -C /
20+
ENV PATH="/swift-4.0-RELEASE-ubuntu16.04/usr/bin:${PATH}"
21+
RUN rm swift-4.0-RELEASE-ubuntu16.04.tar.gz
22+
23+
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
24+
RUN apt-get install -qqy apt-transport-https && \
25+
wget -O - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.gpg && \
26+
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list' && \
27+
apt-get update && \
28+
apt-get install -qqy dotnet-sdk-2.1.3
29+
30+
RUN wget -O - https://deb.nodesource.com/setup_8.x | bash - && \
31+
apt-get install -qqy nodejs
32+
33+
RUN mkdir /one
34+
WORKDIR /one
35+
COPY compile.sh compiler_backend.py package.json package-lock.json ./
36+
COPY InMemoryCompilers ./InMemoryCompilers
37+
38+
RUN ./compile.sh
39+
40+
EXPOSE 11111
41+
42+
CMD ["./compiler_backend.py"]

docker_run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
touch .secret_token && docker run -a stdin -a stdout -p 127.0.0.1:11111:11111/tcp -i -v $(pwd)/.secret_token:/one/.secret_token --restart unless-stopped -t onelang_compiler_backend

0 commit comments

Comments
 (0)