Skip to content

Commit c700e82

Browse files
committed
Problem: zproto with docker image hard to use
Solution: Add a run script as entry point that takes gsl parameters
1 parent 3fd88f2 commit c700e82

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Dockerfile

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
FROM zeromqorg/gsl
22

3-
RUN apt-get install -y build-essential libtool autoconf automake
3+
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y -q
4+
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q --force-yes build-essential autoconf automake libtool pkg-config
5+
6+
COPY packaging/docker/run_zproto.sh /usr/local/bin/run_zproto.sh
47

58
COPY . /tmp/zproto
69
WORKDIR /tmp/zproto
710
RUN ( ./autogen.sh; ./configure; make check; make install )
11+
RUN rm -rf /tmp/zproto
12+
ENTRYPOINT ["run_zproto.sh"]

packaging/docker/run_zproto.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
# $BUILD_DIR points to directory holding sources
4+
BUILD_DIR=${BUILD_DIR-.}
5+
cd "$BUILD_DIR" || exit 1
6+
gsl "$@"

0 commit comments

Comments
 (0)