-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
65 lines (57 loc) · 2.66 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
ARG K_COMMIT
FROM runtimeverificationinc/kframework-k:ubuntu-focal-${K_COMMIT}
RUN apt-get update \
&& apt-get upgrade --yes \
&& apt-get install --yes \
autoconf \
cmake \
curl \
jq \
libcrypto++-dev \
libev-dev \
libhidapi-dev \
libprocps-dev \
libsecp256k1-dev \
libsodium-dev \
libssl-dev \
npm \
opam \
pandoc \
pcregrep \
pkg-config \
python3 \
python3-pip \
python3-recommonmark \
python-pygments \
sphinx-common \
zlib1g-dev
RUN git clone 'https://github.com/z3prover/z3' --branch=z3-4.8.15 \
&& cd z3 \
&& python scripts/mk_make.py \
&& cd build \
&& make -j8 \
&& make install \
&& cd ../.. \
&& rm -rf z3
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get update \
&& apt-get upgrade --yes \
&& apt-get install --yes nodejs
RUN pip3 install click graphviz pytezos==3.2.11
ARG USER_ID=1000
ARG GROUP_ID=1000
RUN groupadd -g $GROUP_ID user && useradd -m -u $USER_ID -s /bin/sh -g user user
USER user:user
WORKDIR /home/user
# setup rust with correct version
RUN curl -sL https://sh.rustup.rs/rustup-init.sh | bash -s -- --profile minimal --default-toolchain 1.52.1 -y
ENV PATH="/home/user/.cargo/bin/:${PATH}"
RUN git config --global user.email '[email protected]' \
&& git config --global user.name 'RV Jenkins' \
&& mkdir -p ~/.ssh \
&& echo 'host github.com' > ~/.ssh/config \
&& echo ' hostname github.com' >> ~/.ssh/config \
&& echo ' user git' >> ~/.ssh/config \
&& echo ' identityagent SSH_AUTH_SOCK' >> ~/.ssh/config \
&& echo ' stricthostkeychecking accept-new' >> ~/.ssh/config \
&& chmod go-rwx -R ~/.ssh