Skip to content

Commit

Permalink
Use dedicated build directory for libzmq
Browse files Browse the repository at this point in the history
  • Loading branch information
pabera committed Mar 25, 2024
1 parent 514118f commit 4ac722f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile.jukebox
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN pip install --no-cache-dir -r ${INSTALLATION_PATH}/requirements.txt

# Install pyzmq Python dependency separately
ENV ZMQ_PREFIX ${VIRTUAL_ENV}
ENV ZMQ_PREFIX /opt/libzmq
ENV ZMQ_DRAFT_API 1
COPY --from=libzmq /usr/local ${ZMQ_PREFIX}
COPY --from=libzmq ${ZMQ_PREFIX} ${ZMQ_PREFIX}
RUN pip install -v pyzmq --no-binary pyzmq

EXPOSE 5555 5556
Expand Down
5 changes: 3 additions & 2 deletions docker/Dockerfile.libzmq
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ RUN apt-get update && apt-get install -y \

# Define environment variables for libzmq
ENV ZMQ_VERSION 4.3.5
ENV ZMQ_PREFIX /usr/local
ENV ZMQ_PREFIX /opt/libzmq

# Download, compile, and install libzmq
RUN wget https://github.com/zeromq/libzmq/releases/download/v${ZMQ_VERSION}/zeromq-${ZMQ_VERSION}.tar.gz -O libzmq.tar.gz; \
RUN mkdir -p ${ZMQ_PREFIX}; \
wget https://github.com/zeromq/libzmq/releases/download/v${ZMQ_VERSION}/zeromq-${ZMQ_VERSION}.tar.gz -O libzmq.tar.gz; \
tar -xzf libzmq.tar.gz; \
cd zeromq-${ZMQ_VERSION}; \
./configure --prefix=${ZMQ_PREFIX} --enable-drafts; \
Expand Down

0 comments on commit 4ac722f

Please sign in to comment.