-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from fanout/jkarneges/update-version
update version
- Loading branch information
Showing
2 changed files
with
23 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,30 +5,36 @@ | |
# | ||
|
||
# Pull the base image | ||
FROM ubuntu:22.04 | ||
MAINTAINER Justin Karneges <[email protected]> | ||
FROM ubuntu:22.04 as build | ||
|
||
# Add private APT repository | ||
# Install deps | ||
RUN \ | ||
apt-get update && \ | ||
apt-get install -y apt-transport-https software-properties-common && \ | ||
echo deb https://fanout.jfrog.io/artifactory/debian fanout-jammy main \ | ||
| tee /etc/apt/sources.list.d/fanout.list && \ | ||
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys \ | ||
7D0343148157C3DF | ||
apt-get install -y git pkg-config make g++ rustc cargo libssl-dev qtbase5-dev libzmq3-dev libboost-dev | ||
|
||
WORKDIR /build | ||
|
||
ENV VERSION 1.38.0 | ||
|
||
ADD https://github.com/fastly/pushpin/releases/download/v${VERSION}/pushpin-${VERSION}.tar.bz2 . | ||
|
||
RUN tar xvf pushpin-${VERSION}.tar.bz2 && mv pushpin-${VERSION} pushpin | ||
|
||
ENV PUSHPIN_VERSION 1.37.0-1~jammy | ||
WORKDIR /build/pushpin | ||
|
||
RUN cargo fetch | ||
RUN make RELEASE=1 PREFIX=/usr CONFIGDIR=/etc | ||
RUN make RELEASE=1 PREFIX=/usr CONFIGDIR=/etc check | ||
RUN make RELEASE=1 PREFIX=/usr CONFIGDIR=/etc INSTALL_ROOT=/build/out install | ||
|
||
FROM ubuntu:22.04 | ||
MAINTAINER Justin Karneges <[email protected]> | ||
|
||
# Install Pushpin | ||
RUN \ | ||
apt-get update && \ | ||
apt-get install -y pushpin=$PUSHPIN_VERSION | ||
apt-get install -y libqt5core5a libqt5network5 libzmq5 | ||
|
||
# Cleanup | ||
RUN \ | ||
apt-get clean && \ | ||
rm -fr /var/lib/apt/lists/* && \ | ||
rm -fr /tmp/* | ||
COPY --from=build /build/out/ / | ||
|
||
# Add entrypoint script | ||
COPY docker-entrypoint.sh /usr/local/bin/ | ||
|
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