Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3683 from ReillyProcentive/fix-issue-3342
Browse files Browse the repository at this point in the history
Add wrapper script to weave-npc
  • Loading branch information
bboreham authored Aug 28, 2019
2 parents 22b3393 + ef26b30 commit d3f6290
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prog/weave-npc/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ RUN apk add --update \
&& mknod /var/log/ulogd.pcap p
COPY ./weave-npc /usr/bin/weave-npc
COPY ./ulogd.conf /etc/ulogd.conf
ENTRYPOINT ["/usr/bin/weave-npc"]
COPY ./launch.sh /usr/bin/
ENTRYPOINT ["/usr/bin/launch.sh"]

# These labels will change for every build, and should therefore be the last layer of the image:
ARG revision
Expand Down
6 changes: 6 additions & 0 deletions prog/weave-npc/launch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

set -e

# Start weave-npc with any flags specified in $EXTRA_ARGS as well as any flags passed to this container (for backwards compatibility)
exec /usr/bin/weave-npc $EXTRA_ARGS $@

0 comments on commit d3f6290

Please sign in to comment.