-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Build libzmq locally to work on all host types (#2307)
* Externalize libzmq build * Update documentation * Use dedicated build directory for libzmq * improve: update make command to be more efficient * Update docker/Dockerfile.libzmq Co-authored-by: notapirate <[email protected]> * fix: Remove unneccesary MD linting rule * fix: Remove another markdown linter * Remove uncessary file * refactor: Rename docker.pulse.mpd.conf --------- Co-authored-by: notapirate <[email protected]>
- Loading branch information
1 parent
62ebd27
commit 27b23cb
Showing
10 changed files
with
183 additions
and
515 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,25 @@ | ||
FROM debian:bullseye-slim | ||
|
||
# Install necessary build dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential wget tar | ||
|
||
# Define environment variables for libzmq | ||
ENV ZMQ_VERSION 4.3.5 | ||
ENV ZMQ_PREFIX /opt/libzmq | ||
|
||
# Download, compile, and install libzmq | ||
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; \ | ||
make -j$(nproc) && make install | ||
|
||
# Cleanup unnecessary files | ||
RUN rm -rf /zeromq-${ZMQ_VERSION} libzmq.tar.gz | ||
|
||
# Create final image with only the libzmq build fragments | ||
FROM scratch | ||
ENV ZMQ_PREFIX /opt/libzmq | ||
COPY --from=0 ${ZMQ_PREFIX} ${ZMQ_PREFIX} |
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.