Skip to content

Commit 7444f0f

Browse files
committed
Add hera to buildpacks.
1 parent 4a478f0 commit 7444f0f

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed

scripts/docker/buildpack-deps/Dockerfile.ubuntu1604.clang.ossfuzz

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,18 @@ RUN set -ex; \
9696
ninja install/strip; \
9797
rm -rf /usr/src/evmone
9898

99+
# HERA
100+
RUN set -ex; \
101+
cd /usr/src; \
102+
git clone --branch="v0.3.0" --recurse-submodules https://github.com/ewasm/hera.git; \
103+
cd hera; \
104+
mkdir build; \
105+
cd build; \
106+
cmake -G Ninja -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX="/usr" ..; \
107+
ninja; \
108+
ninja install/strip; \
109+
rm -rf /usr/src/hera
110+
99111
FROM base
100112
COPY --from=libraries /usr/lib /usr/lib
101113
COPY --from=libraries /usr/bin /usr/bin

scripts/docker/buildpack-deps/Dockerfile.ubuntu1804

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,18 @@ RUN set -ex; \
8888
tar xzpf $TGZFILE -C /usr; \
8989
rm -f $TGZFILE;
9090

91+
# HERA
92+
RUN set -ex; \
93+
cd /usr/src; \
94+
git clone --branch="v0.3.0" --recurse-submodules https://github.com/ewasm/hera.git; \
95+
cd hera; \
96+
mkdir build; \
97+
cd build; \
98+
cmake -G Ninja -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX="/usr" ..; \
99+
ninja; \
100+
ninja install/strip; \
101+
rm -rf /usr/src/hera
102+
91103
FROM base
92104
COPY --from=libraries /usr/lib /usr/lib
93105
COPY --from=libraries /usr/bin /usr/bin

scripts/docker/buildpack-deps/Dockerfile.ubuntu2004

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,18 @@ RUN set -ex; \
5757
ninja install/strip; \
5858
rm -rf /usr/src/evmone
5959

60+
# HERA
61+
RUN set -ex; \
62+
cd /usr/src; \
63+
git clone --branch="v0.3.0" --recurse-submodules https://github.com/ewasm/hera.git; \
64+
cd hera; \
65+
mkdir build; \
66+
cd build; \
67+
cmake -G Ninja -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX="/usr" ..; \
68+
ninja; \
69+
ninja install/strip; \
70+
rm -rf /usr/src/hera
71+
6072
FROM base
6173
COPY --from=libraries /usr/lib /usr/lib
6274
COPY --from=libraries /usr/bin /usr/bin

scripts/docker/buildpack-deps/Dockerfile.ubuntu2004.clang

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ RUN set -ex; \
5959
ninja install/strip; \
6060
rm -rf /usr/src/evmone
6161

62+
# HERA
63+
RUN set -ex; \
64+
cd /usr/src; \
65+
git clone --branch="v0.3.0" --recurse-submodules https://github.com/ewasm/hera.git; \
66+
cd hera; \
67+
mkdir build; \
68+
cd build; \
69+
cmake -G Ninja -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX="/usr" ..; \
70+
ninja; \
71+
ninja install/strip; \
72+
rm -rf /usr/src/hera
73+
6274
FROM base
6375
COPY --from=libraries /usr/lib /usr/lib
6476
COPY --from=libraries /usr/bin /usr/bin

0 commit comments

Comments
 (0)