Skip to content

Commit 55a87d0

Browse files
committed
Parameterise on version.
1 parent fcbc3f0 commit 55a87d0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

repl/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ FROM debian:11
22

33
WORKDIR /
44

5+
ARG VERSION=nightly
6+
57
ENV PORT=8080
68
RUN apt update && apt install -y libtinfo-dev libgmp-dev zlib1g-dev python pip wget
79
RUN python3 -m pip install --upgrade pip
810
RUN python3 -m pip install --no-cache-dir waitress
9-
RUN wget https://futhark-lang.org/releases/futhark-nightly-linux-x86_64.tar.xz
10-
RUN tar xvf futhark-nightly-linux-x86_64.tar.xz
11-
RUN cd futhark-nightly-linux-x86_64 && make install
11+
RUN wget https://futhark-lang.org/releases/futhark-$VERSION-linux-x86_64.tar.xz
12+
RUN tar xvf futhark-$VERSION-linux-x86_64.tar.xz
13+
RUN cd futhark-$VERSION-linux-x86_64 && make install
1214
COPY . .
1315
RUN python3 -m pip install --no-cache-dir -r requirements.txt
1416
EXPOSE ${PORT}

run.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
DEFAULTPORT=8080
22
PORT=$1
3+
VERSION=0.25.1
34
if [ -z "$PORT" ]; then
45
PORT=$DEFAULTPORT
56
fi
67

78
echo "PORT: $PORT"
8-
sudo docker build -t online-futhark-repl repl
9+
sudo docker build --build-arg VERSION=${VERSION} -t online-futhark-repl repl
910
sudo docker run -p $PORT:$PORT online-futhark-repl --host=0.0.0.0 --port=${PORT} --url-scheme=https --threads=4 views:app

0 commit comments

Comments
 (0)