Skip to content

Commit

Permalink
Bugfix: mkdir & rm
Browse files Browse the repository at this point in the history
  • Loading branch information
tnasu committed Apr 28, 2022
1 parent 861ccb1 commit c56dffb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
uses: docker/setup-buildx-action@v1
if: "env.GIT_DIFF != ''"

- name: Create cache directory
run: mkdir -p /tmp/.buildx-cache

- name: Cache Docker layers
uses: actions/cache@v3
with:
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN wget -O rocksdb-v6.20.3.tar.gz https://github.com/facebook/rocksdb/archive/v
RUN tar -zxvf rocksdb-v6.20.3.tar.gz
RUN cd rocksdb-6.20.3 && make -j2 shared_lib && make install-shared
RUN cp /usr/local/lib/librocksdb.so* /usr/lib
RUN cd .. && rm -rf rocksdb-v6.20.3.tar.gz rocksdb-6.20.3

# Set up build directory /src/ostracon
ENV OSTRACON_BUILD_OPTIONS badgerdb,boltdb,cleveldb,rocksdb
Expand All @@ -30,6 +31,7 @@ RUN go mod download
COPY . .
# Buuild/Install libsodium separately (for layer caching)
RUN make libsodium
RUN rm -rf crypto/vrf/internal/vrf/libsodium
# Build Ostracon and install into /usr/bin/ostracon
RUN make build && cp build/ostracon /usr/bin/ostracon
COPY test/e2e/docker/entrypoint* /usr/bin/
Expand Down

0 comments on commit c56dffb

Please sign in to comment.