Skip to content

Commit

Permalink
Merge pull request zeromq#1242 from sappo/master
Browse files Browse the repository at this point in the history
Problem: Dockerfile has no proper entrypoint
  • Loading branch information
bluca authored Mar 13, 2020
2 parents c4b704b + 16db0f9 commit 96c2103
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ MAINTAINER ZeroMQ community
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y -q
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q --force-yes build-essential autoconf automake libtool pkg-config

COPY packaging/docker/run_zproject.sh /usr/local/bin/run_zproject.sh

COPY . /tmp/zproject
RUN mkdir -p /tmp/myproject && cd /tmp/zproject && ( ./autogen.sh; ./configure; make; make install; ldconfig ) && \
rm -rf /tmp/myproject && rm -rf /tmp/zproject
RUN cd /tmp/zproject && ( ./autogen.sh; ./configure; make; make install; ldconfig ) && rm -rf /tmp/zproject
ENTRYPOINT ["run_zproject.sh"]
6 changes: 6 additions & 0 deletions packaging/docker/run_zproject.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# $BUILD_DIR points to directory holding sources
BUILD_DIR=${BUILD_DIR-.}
cd "$BUILD_DIR" || exit 1
gsl project.xml

0 comments on commit 96c2103

Please sign in to comment.