diff options
author | rbehjati <razieh@google.com> | 2021-05-27 20:06:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 19:06:33 +0000 |
commit | ecb52b052a5b053ba91efc75a7fa6294c3caad79 (patch) | |
tree | 7ddb436c70085c17859208a9a97a66a0b797edef /projects/oak | |
parent | dc4297c38da6bfabd9e6eb92d81a8b58893a42ca (diff) |
Install libssl-dev for Oak (#5853)
Diffstat (limited to 'projects/oak')
-rw-r--r-- | projects/oak/Dockerfile | 13 | ||||
-rwxr-xr-x | projects/oak/build.sh | 6 |
2 files changed, 16 insertions, 3 deletions
diff --git a/projects/oak/Dockerfile b/projects/oak/Dockerfile index a32788ba..e7f349f1 100644 --- a/projects/oak/Dockerfile +++ b/projects/oak/Dockerfile @@ -16,6 +16,16 @@ FROM gcr.io/oss-fuzz-base/base-builder +RUN apt-get --yes update \ + && apt-get install --no-install-recommends --yes \ + libssl-dev \ + pkg-config \ + && apt-get clean \ + && rm --recursive --force /var/lib/apt/lists/* + +# Install WebAssembly target for Rust. +RUN rustup target add wasm32-unknown-unknown + # Install Protobuf compiler. ARG protobuf_version=3.13.0 ARG protobuf_sha256=4a3b26d1ebb9c1d23e933694a6669295f6a39ddc64c3db2adf671f0a6026f82e @@ -29,9 +39,6 @@ RUN curl --location https://github.com/protocolbuffers/protobuf/releases/downloa && chmod --recursive a+rwx ${protobuf_dir} \ && protoc --version -# Install WebAssembly target for Rust. -RUN rustup target add wasm32-unknown-unknown - RUN git clone --depth 1 https://github.com/project-oak/oak oak WORKDIR oak diff --git a/projects/oak/build.sh b/projects/oak/build.sh index 169a5492..8d7ca039 100755 --- a/projects/oak/build.sh +++ b/projects/oak/build.sh @@ -42,3 +42,9 @@ do cp $FUZZ_TARGET_OUTPUT_DIR/$FUZZ_TARGET_NAME $OUT/ done +# Check that the Wams file is in the correct location. +readonly FILE="$OUT/bin/fuzzable.wasm" +if [ ! -f "$FILE" ]; then + exit 1 +fi + |