Skip to content

Commit f6515a8

Browse files
not ready
1 parent cea0838 commit f6515a8

3 files changed

Lines changed: 129 additions & 134 deletions

File tree

Dockerfile

Lines changed: 126 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -1,191 +1,186 @@
11
FROM ubuntu:22.04
22

3-
RUN DEBIAN_FRONTEND=noninteractive apt-get update --fix-missing
4-
RUN DEBIAN_FRONTEND=noninteractive apt-get upgrade -y
3+
ENV DEBIAN_FRONTEND=noninteractive
54

6-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
5+
RUN sed -i 's/main$/main contrib non-free non-free-firmware/' /etc/apt/sources.list && \
6+
apt-get update
7+
RUN apt-get install -y \
78
apt-utils \
89
curl \
910
git \
10-
firejail
11-
11+
make \
12+
cmake \
13+
# C/C++
14+
gcc-12 \
15+
gcc-12-base \
16+
g++-12 \
17+
libstdc++-12-dev \
18+
libstdc++-12-doc \
19+
# Python
20+
python2.7 \
21+
python3 \
22+
python3-pip \
23+
# MONO
24+
mono-complete \
25+
mono-mcs \
26+
# GO
27+
golang-go \
28+
# RUST
29+
rustc \
30+
# Haskell
31+
ghc \
32+
# .NET 6
33+
dotnet6 apt-transport-https \
34+
# Perl
35+
perl \
36+
# Ruby
37+
ruby-full \
38+
# Assembly
39+
nasm \
40+
# ADA
41+
gnat-12 \
42+
# Elixir
43+
erlang-dev elixir \
44+
# Latex
45+
texlive-latex-extra \
46+
# COBOL
47+
gnucobol \
48+
# Fortran
49+
gfortran \
50+
# Algol
51+
algol68g
52+
53+
RUN apt install -y --no-install-recommends firejail
1254
##################################################################################
1355
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y make
1456

15-
### C
16-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gcc-12 \
17-
gcc-12-base
18-
19-
### C++
20-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y g++-12 \
21-
libstdc++-12-dev \
22-
libstdc++-12-doc
23-
24-
### MONO
25-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y mono-complete mono-mcs
26-
27-
### GO
28-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y golang-go
29-
30-
### RUST
31-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y rustc
32-
3357
### JAVA
3458
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y default-jdk
35-
RUN curl -O https://download.oracle.com/java/23/latest/jdk-23_linux-x64_bin.deb \
36-
&& dpkg -i jdk-23_linux-x64_bin.deb \
37-
&& rm jdk-23_linux-x64_bin.deb
59+
#RUN curl -O https://download.oracle.com/java/23/latest/jdk-23_linux-x64_bin.deb \
60+
# && dpkg -i jdk-23_linux-x64_bin.deb \
61+
# && rm jdk-23_linux-x64_bin.deb
62+
3863

39-
### Haskell
40-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y ghc
4164

42-
### .NET 6
43-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y dotnet6 apt-transport-https
4465

4566
### R
46-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y r-base
47-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y r-cran-car
48-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y r-cran-mapdata
49-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y r-cran-reshape
67+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y r-base
68+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y r-cran-car
69+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y r-cran-mapdata
70+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y r-cran-reshape
5071

5172
### Julia
52-
RUN curl -fsSL https://install.julialang.org | sh -s -- -y
73+
#RUN curl -fsSL https://install.julialang.org | sh -s -- -y
5374

5475
### Zig
55-
RUN curl -fLO https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz \
56-
&& tar -xf zig-linux-x86_64-0.13.0.tar.xz \
57-
&& rm zig-linux-x86_64-0.13.0.tar.xz \
58-
&& mv zig-linux-x86_64-0.13.0/ /opt/ \
59-
&& ln -s /opt/zig-linux-x86_64-0.13.0/zig /usr/local/bin/zig
76+
#RUN curl -fLO https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz \
77+
# && tar -xf zig-linux-x86_64-0.13.0.tar.xz \
78+
# && rm zig-linux-x86_64-0.13.0.tar.xz \
79+
# && mv zig-linux-x86_64-0.13.0/ /opt/ \
80+
# && ln -s /opt/zig-linux-x86_64-0.13.0/zig /usr/local/bin/zig
6081

6182
### Nim
62-
RUN curl -O https://nim-lang.org/choosenim/init.sh -sSf \
63-
&& sh init.sh -y \
64-
&& ln -s /root/.nimble/bin/nim /usr/local/bin/nim
83+
#RUN curl -O https://nim-lang.org/choosenim/init.sh -sSf \
84+
# && sh init.sh -y \
85+
# && ln -s /root/.nimble/bin/nim /usr/local/bin/nim
6586

66-
### Nasm Assembly
67-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y nasm
6887

69-
### V-lang
70-
RUN git clone https://github.com/vlang/v
71-
RUN cd v &&\
72-
make && \
73-
./v symlink
7488

75-
### Python2
76-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python2.7
89+
### V-lang
90+
#RUN git clone https://github.com/vlang/v
91+
#RUN cd v &&\
92+
# make && \
93+
# ./v symlink
7794

7895
### Python3
79-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python3
80-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python3-pip
81-
RUN DEBIAN_FRONTEND=noninteractive pip3 install \
82-
matplotlib \
83-
numpy \
84-
opencv-python opencv-contrib-python \
85-
pyarrow \
86-
pandas \
87-
scipy \
88-
sympy \
89-
pyyaml
90-
91-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
92-
ffmpeg \
93-
libcairo2-dev \
94-
libpango1.0-dev
95-
RUN DEBIAN_FRONTEND=noninteractive pip3 install \
96-
pycairo \
97-
manim
98-
99-
### Perl
100-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y perl
101-
102-
### Ruby
103-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y ruby-full
104-
105-
### Clojure
106-
RUN curl -L -O https://github.com/clojure/brew-install/releases/latest/download/linux-install.sh \
107-
&& chmod +x linux-install.sh \
108-
&& ./linux-install.sh \
109-
&& rm linux-install.sh \
110-
&& clojure -e "(println \"First run clojure to install libs...\")"
111-
112-
### ADA
113-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gnat-12
96+
#RUN DEBIAN_FRONTEND=noninteractive pip3 install \
97+
# matplotlib \
98+
# numpy \
99+
# opencv-python opencv-contrib-python \
100+
# pyarrow \
101+
# pandas \
102+
# scipy \
103+
# sympy \
104+
# pyyaml
105+
106+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
107+
# ffmpeg \
108+
# libcairo2-dev \
109+
# libpango1.0-dev
110+
#RUN DEBIAN_FRONTEND=noninteractive pip3 install \
111+
# pycairo \
112+
# manim
114113

115-
### Elixir
116-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y erlang-dev elixir
117114

118-
### Latex
119-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y texlive-latex-extra
120115

121-
### COBOL
122-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gnucobol
116+
### Clojure
117+
#RUN curl -L -O https://github.com/clojure/brew-install/releases/latest/download/linux-install.sh \
118+
# && chmod +x linux-install.sh \
119+
# && ./linux-install.sh \
120+
# && rm linux-install.sh \
121+
# && clojure -e "(println \"First run clojure to install libs...\")"
123122

124-
### Fortran
125-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gfortran
126123

127-
### Algol
128-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y algol68g
129124

130125
### APL
131-
RUN curl -O https://www.dyalog.com/uploads/php/download.dyalog.com/download.php?file=19.0/linux_64_19.0.50027_unicode.x86_64.deb \
132-
&& dpkg -i linux_64_19.0.50027_unicode.x86_64.deb \
133-
&& rm linux_64_19.0.50027_unicode.x86_64.deb
126+
#RUN curl -O https://www.dyalog.com/uploads/php/download.dyalog.com/download.php?file=19.0/linux_64_19.0.50027_unicode.x86_64.deb \
127+
# && dpkg -i linux_64_19.0.50027_unicode.x86_64.deb \
128+
# && rm linux_64_19.0.50027_unicode.x86_64.deb
134129

135130
### Prolog
136-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y swi-prolog
131+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y swi-prolog
137132

138133
### Forth
139-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gforth
134+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gforth
140135

141136
### Pascal
142-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y fpc
137+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y fpc
143138

144139

145140
### OCaml
146-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y ocaml
141+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y ocaml
147142

148143
### Scheme
149-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y guile-3.0
144+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y guile-3.0
150145

151146
### Smalltalk
152-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gnu-smalltalk
147+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gnu-smalltalk
153148

154149
### Prolog
155-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y swi-prolog
150+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y swi-prolog
156151

157152
### Groovy
158-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y groovy
153+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y groovy
159154

160155
### Scala
161-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y scala
156+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y scala
162157

163158
### Racket
164-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y racket
159+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y racket
165160

166161
### Tcl
167-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tcl
162+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tcl
168163

169164
### IO
170165
# Install dependencies
171-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libffi-dev \
172-
cmake \
173-
libpcre3-dev \
174-
libxml2-dev \
175-
libssl-dev \
176-
zlib1g-dev \
177-
git
166+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libffi-dev \
167+
# cmake \
168+
# libpcre3-dev \
169+
# libxml2-dev \
170+
# libssl-dev \
171+
# zlib1g-dev \
172+
# git
178173

179174
# Clone the Io language repository with submodules
180-
RUN git clone --recurse-submodules https://github.com/IoLanguage/io.git && \
181-
cd io && \
182-
mkdir build && \
183-
cd build && \
184-
cmake .. && \
185-
make && \
186-
make install && \
187-
cd ../.. && \
188-
rm -rf io
175+
#RUN git clone --recurse-submodules https://github.com/IoLanguage/io.git && \
176+
# cd io && \
177+
# mkdir build && \
178+
# cd build && \
179+
# cmake .. && \
180+
# make && \
181+
# make install && \
182+
# cd ../.. && \
183+
# rm -rf io
189184

190185
### Kotlin
191186
# Install SDKMAN
@@ -208,16 +203,16 @@ RUN git clone --recurse-submodules https://github.com/IoLanguage/io.git && \
208203

209204

210205
### Lua
211-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y lua5.4
206+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y lua5.4
212207

213208
### D
214209
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gdc
215210

216211
### Verilog
217-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y iverilog
212+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y iverilog
218213

219214
### VHDL
220-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y ghdl
215+
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y ghdl
221216

222217
### Octave
223218
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y octave
@@ -246,6 +241,6 @@ RUN firejail || true
246241
RUN firejail || true
247242
RUN firejail || true
248243

249-
#EXPOSE 8000
244+
EXPOSE 4000
250245

251246
CMD python3 -m server --host 0.0.0.0 --port $PORT

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ window.CodeRunner = {
129129
}
130130
131131
//window.CodeRunner.init("wss://coderunner.informatik.tu-freiberg.de/")
132-
//window.CodeRunner.init("ws://127.0.0.1:4000/")
133-
window.CodeRunner.init("wss://ancient-hollows-41316.herokuapp.com/")
132+
window.CodeRunner.init("ws://127.0.0.1:4000/")
133+
//window.CodeRunner.init("wss://ancient-hollows-41316.herokuapp.com/")
134134
@end
135135
136136

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ services:
44
build: .
55
image: liascript/coderunner:latest
66
ports:
7-
- '4000:8000'
7+
- '4000:4000'
88
environment:
99
- CODERUNNER_HOST=0.0.0.0

0 commit comments

Comments
 (0)