forked from projectcalico/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ryan Zhang
authored
Feb 28, 2018
1 parent
f2a4524
commit aabe206
Showing
1 changed file
with
7 additions
and
4 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 |
---|---|---|
|
@@ -17,15 +17,18 @@ MAINTAINER Tom Denham <[email protected]> | |
# Set the minimum Docker API version required for libnetwork. | ||
ENV DOCKER_API_VERSION 1.21 | ||
|
||
# Set glibc version | ||
ENV GLIBC_VERSION 2.27-r0 | ||
|
||
# Download and install glibc for use by non-static binaries that require it. | ||
RUN apk --no-cache add wget ca-certificates libgcc && \ | ||
wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://raw.githubusercontent.com/sgerrand/alpine-pkg-glibc/master/sgerrand.rsa.pub && \ | ||
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.23-r3/glibc-2.23-r3.apk && \ | ||
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.23-r3/glibc-bin-2.23-r3.apk && \ | ||
apk add glibc-2.23-r3.apk glibc-bin-2.23-r3.apk && \ | ||
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$GLIBC_VERSION/glibc-$GLIBC_VERSION.apk && \ | ||
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$GLIBC_VERSION/glibc-bin-$GLIBC_VERSION.apk && \ | ||
apk add glibc-$GLIBC_VERSION.apk glibc-bin-$GLIBC_VERSION.apk && \ | ||
/usr/glibc-compat/sbin/ldconfig /lib /usr/glibc/usr/lib && \ | ||
apk del wget && \ | ||
rm -f glibc-2.23-r3.apk glibc-bin-2.23-r3.apk | ||
rm -f glibc-$GLIBC_VERSION.apk glibc-bin-$GLIBC_VERSION.apk | ||
|
||
# Install runit from the community repository, as its not yet available in global | ||
RUN apk add --no-cache --repository "http://alpine.gliderlabs.com/alpine/edge/community" runit | ||
|