-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): add docker image builds per PR
- Loading branch information
Showing
2 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM debian:stable-slim as prod | ||
|
||
ARG MAKE_TARGET=wakunode2 | ||
|
||
LABEL maintainer="vaclav@status.im" | ||
LABEL source="https://github.com/waku-org/nwaku" | ||
LABEL description="Wakunode: Waku and Whisper client" | ||
LABEL commit="unknown" | ||
|
||
# DevP2P, LibP2P, and JSON RPC ports | ||
EXPOSE 30303 60000 8545 | ||
|
||
# Referenced in the binary | ||
RUN apt-get update &&\ | ||
apt-get install -y libpcre3 libpq-dev &&\ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# Fix for 'Error loading shared library libpcre.so.3: No such file or directory' | ||
RUN ln -s /usr/lib/libpcre.so /usr/lib/libpcre.so.3 | ||
|
||
# Copy to separate location to accomodate different MAKE_TARGET values | ||
ADD ./build/$MAKE_TARGET /usr/local/bin/ | ||
|
||
# Copy migration scripts for DB upgrades | ||
ADD ./migrations/ /app/migrations/ | ||
|
||
# Symlink the correct wakunode binary | ||
RUN ln -sv /usr/local/bin/$MAKE_TARGET /usr/bin/wakunode | ||
|
||
ENTRYPOINT ["/usr/bin/wakunode"] | ||
|
||
# By default just show help if called without arguments | ||
CMD ["--help"] |