-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
28 lines (22 loc) · 903 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM golang:1.21-bookworm
RUN mkdir -p bmmc-maelstrom/bin
RUN set -ex && \
apt update && \
apt install bzip2 && \
apt install openjdk-17-jdk --yes && \
apt install graphviz --yes && \
apt install gnuplot --yes
RUN set -ex && \
wget https://github.com/jepsen-io/maelstrom/releases/download/v0.2.3/maelstrom.tar.bz2 && \
tar -xf maelstrom.tar.bz2 && \
cp -r maelstrom/ bmmc-maelstrom/bin/
COPY go.mod bmmc-maelstrom/
COPY go.sum bmmc-maelstrom/
COPY *.go bmmc-maelstrom/
RUN set -ex && \
cd bmmc-maelstrom && \
sed -i 's/\tgithub\.com\/rstefan1\/bimodal-multicast\ v0\.0\.0$/\tgithub\.com\/rstefan1\/bimodal-multicast\ master/g' go.mod && \
cat go.mod && \
go mod tidy && \
go install .
ENTRYPOINT ./bmmc-maelstrom/bin/maelstrom/maelstrom test -w broadcast --bin $GOPATH/bin/bmmc-maelstrom --node-count 25 --time-limit 20 --rate 100 --latency 100