Skip to content

Commit 9996303

Browse files
authored
Build updates - fix releases (#419)
* README: updated dependencies for llvm backend * Makefile: proper target dependency for install * Makefile: add uninstall target * README: openjdk-{8 => 11}-jdk * Makefile: only run erc20 test on test-interactive-firefly * Dockerfile: update openjdk-{8 => 11}-jdk * README: adoptopenjdk{8 => 12} * Dockerfile: use rv bionic image
1 parent f17933e commit 9996303

File tree

3 files changed

+22
-29
lines changed

3 files changed

+22
-29
lines changed

Dockerfile

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
1-
FROM ubuntu:bionic
2-
3-
ENV TZ=America/Chicago
4-
RUN ln --symbolic --no-dereference --force /usr/share/zoneinfo/$TZ /etc/localtime \
5-
&& echo $TZ > /etc/timezone
6-
7-
RUN apt-get update \
8-
&& apt-get upgrade --yes \
9-
&& apt-get install --yes \
10-
autoconf bison clang-8 cmake curl flex gcc libboost-test-dev \
11-
libcrypto++-dev libffi-dev libjemalloc-dev libmpfr-dev libprocps-dev \
12-
libsecp256k1-dev libssl-dev libtool libyaml-dev lld-8 llvm-8-tools \
13-
make maven opam openjdk-8-jdk pandoc pkg-config python3 python-pygments \
14-
python-recommonmark python-sphinx time zlib1g-dev protobuf-compiler \
15-
libprotobuf-dev
16-
17-
RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
1+
FROM runtimeverificationinc/ubuntu:bionic
2+
3+
RUN apt-get update \
4+
&& apt-get upgrade --yes \
5+
&& apt-get install --yes \
6+
autoconf bison clang-8 cmake curl flex gcc libboost-test-dev \
7+
libcrypto++-dev libffi-dev libjemalloc-dev libmpfr-dev libprocps-dev \
8+
libprotobuf-dev libsecp256k1-dev libssl-dev libtool libyaml-dev lld-8 \
9+
llvm-8-tools make maven opam openjdk-11-jdk pandoc pkg-config \
10+
protobuf-compiler python3 python-pygments python-recommonmark \
11+
python-sphinx time zlib1g-dev
1812

1913
ADD deps/k/haskell-backend/src/main/native/haskell-backend/scripts/install-stack.sh /.install-stack/
2014
RUN /.install-stack/install-stack.sh
@@ -28,12 +22,7 @@ RUN git clone 'https://github.com/z3prover/z3' --branch=z3-4.6.0 \
2822
&& cd ../.. \
2923
&& rm -rf z3
3024

31-
ARG USER_ID=1000
32-
ARG GROUP_ID=1000
33-
RUN groupadd --gid $GROUP_ID user \
34-
&& useradd --create-home --uid $USER_ID --shell /bin/sh --gid user user
35-
36-
USER $USER_ID:$GROUP_ID
25+
USER user:user
3726

3827
ADD --chown=user:user deps/k/llvm-backend/src/main/native/llvm-backend/install-rust deps/k/llvm-backend/src/main/native/llvm-backend/rust-checksum /home/user/.install-rust/
3928
RUN cd /home/user/.install-rust \

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ LUA_PATH:=$(PANDOC_TANGLE_SUBMODULE)/?.lua;;
3434
export TANGLER
3535
export LUA_PATH
3636

37-
.PHONY: all clean clean-submodules distclean install \
37+
.PHONY: all clean clean-submodules distclean install uninstall \
3838
deps all-deps llvm-deps haskell-deps repo-deps system-deps k-deps ocaml-deps plugin-deps libsecp256k1 libff \
3939
build build-ocaml build-java build-node build-kore split-tests \
4040
defn java-defn ocaml-defn node-defn haskell-defn llvm-defn \
@@ -331,10 +331,14 @@ $(llvm_kompiled): $(llvm_files) $(libff_out)
331331

332332
KEVM_RELEASE_TAG?=
333333

334-
install: $(node_kompiled)
334+
install: $(INSTALL_DIR)/$(notdir $(node_kompiled))
335+
$(INSTALL_DIR)/$(notdir $(node_kompiled)): $(node_kompiled)
335336
mkdir -p $(INSTALL_DIR)
336337
cp $(node_kompiled) $(INSTALL_DIR)/
337338

339+
uninstall:
340+
rm $(INSTALL_DIR)/$(notdir $(node_kompiled))
341+
338342
release.md: INSTALL.md
339343
echo "KEVM Release $(KEVM_RELEASE_TAG)" > $@
340344
echo >> $@
@@ -484,7 +488,7 @@ test-interactive-firefly:
484488
&& git checkout b8c8308 \
485489
&& { npx kevm-ganache-cli --gasLimit 0xfffffffffff --port 8545 --account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501200,1000000000000000000000000 --account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501201,1000000000000000000000000 --account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501202,1000000000000000000000000 --account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501203,1000000000000000000000000 --account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501204,1000000000000000000000000 --account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501205,1000000000000000000000000 --account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501206,1000000000000000000000000 --account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501207,1000000000000000000000000 --account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501208,1000000000000000000000000 --account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501209,1000000000000000000000000 & } \
486490
&& npm install \
487-
&& npx truffle test
491+
&& npx truffle test test/token/ERC20/ERC20.test.js
488492

489493
# Media
490494
# -----

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ On Ubuntu >= 18.04 (for example):
5656
```sh
5757
sudo apt install \
5858
autoconf bison flex gcc git libmpfr-dev libsecp256k1-dev \
59-
libtool libz3-dev make maven opam openjdk-8-jdk pandoc \
59+
libtool libz3-dev make maven opam openjdk-11-jdk pandoc \
6060
pkg-config z3 zlib1g-dev
6161
```
6262

@@ -79,7 +79,7 @@ On OSX, using [Homebrew](https://brew.sh/), after installing the command line to
7979

8080
```sh
8181
brew tap caskroom/cask
82-
brew cask install adoptopenjdk8
82+
brew cask install adoptopenjdk12
8383
brew install automake libtool gmp mpfr pkg-config pandoc maven opam z3 libffi
8484
make libsecp256k1
8585
```
@@ -138,7 +138,7 @@ export PATH=$HOME/.local/bin:$PATH
138138
The LLVM backend has additional dependencies:
139139

140140
```k
141-
sudo apt install cmake clang-8 clang++-8 llvm-8 lld-8 libboost-test-dev libgmp-dev libyaml-cpp-dev libjemalloc-dev curl protobuf-compiler libprotobuf-dev
141+
sudo apt install cmake clang-8 clang++-8 llvm-8 llvm-8-tools lld-8 libboost-test-dev libgmp-dev libprocps-dev libyaml-dev libjemalloc-dev curl protobuf-compiler libprotobuf-dev
142142
```
143143

144144
On Arch, you'll also need `crypto++` package.

0 commit comments

Comments
 (0)