Skip to content

Commit 4a32ac1

Browse files
committed
Update to gflags 2.2.2 in Alpine builds
1 parent 4a97ae2 commit 4a32ac1

File tree

5 files changed

+113
-72
lines changed

5 files changed

+113
-72
lines changed

alpine3_arm64v8/Dockerfile

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ LABEL org.opencontainers.image.authors="Evolved Binary Ltd <tech@evolvedbinary.c
55
LABEL name="Alpine 3 (arm64v8) RocksJava Build Environment" \
66
vendor="Evolved Binary Ltd"
77

8+
# make: Allow N jobs at once; infinite jobs with no arg
9+
ARG JOBS=1
10+
11+
# version of gflags to compile
12+
ARG GFLAGS_VERSION=2.2.2
13+
814
# update Alpine with latest versions
9-
# RUN echo '@edge https://alpinelinux.mirror.garr.it/edge/main' > /etc/apk/repositories &&\
10-
# echo '@community https://alpinelinux.mirror.garr.it/edge/community' >> /etc/apk/repositories &&\
11-
# apk update &&\
12-
# apk upgrade
13-
RUN apk update &&\
14-
apk upgrade
15+
RUN \
16+
apk update \
17+
&& apk upgrade
1518

1619
# install CA certificates
1720
RUN apk add ca-certificates
@@ -52,15 +55,18 @@ RUN echo 'https://apk.bell-sw.com/main' >> /etc/apk/repositories &&\
5255
# cleanup
5356
RUN rm -rf /var/cache/apk/*
5457

58+
# gflags from source
59+
RUN \
60+
wget -O gflags-$GFLAGS_VERSION.tar.gz https://github.com/gflags/gflags/archive/refs/tags/v$GFLAGS_VERSION.tar.gz \
61+
&& tar zxvf gflags-$GFLAGS_VERSION.tar.gz \
62+
&& mkdir gflags-$GFLAGS_VERSION/build \
63+
&& cd gflags-$GFLAGS_VERSION/build \
64+
&& CMAKE_INSTALL_PREFIX=/usr cmake .. \
65+
&& make -j $JOBS \
66+
&& make install \
67+
&& cd / \
68+
&& rm -rf gflags-$GFLAGS_VERSION*
69+
5570
# puts javac in the PATH
5671
ENV JAVA_HOME=/usr/lib/jvm/bellsoft-java8
5772
ENV PATH=/usr/lib/jvm/bellsoft-java8/bin:$PATH
58-
59-
# gflags from source
60-
RUN cd /tmp &&\
61-
git clone -b v2.0 --single-branch https://github.com/gflags/gflags.git &&\
62-
cd gflags &&\
63-
wget -O config.guess https://raw.githubusercontent.com/gcc-mirror/gcc/master/config.guess &&\
64-
wget -O config.sub https://raw.githubusercontent.com/gcc-mirror/gcc/master/config.sub &&\
65-
./configure --prefix=/usr && make && make install &&\
66-
rm -rf /tmp/*

alpine3_ppc64le/Dockerfile

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ LABEL org.opencontainers.image.authors="Evolved Binary Ltd <tech@evolvedbinary.c
55
LABEL name="Alpine 3 (ppc64le) RocksJava Build Environment" \
66
vendor="Evolved Binary Ltd"
77

8+
# make: Allow N jobs at once; infinite jobs with no arg
9+
ARG JOBS=1
10+
11+
# version of gflags to compile
12+
ARG GFLAGS_VERSION=2.2.2
13+
814
# update Alpine with latest versions
9-
# RUN echo '@edge https://alpinelinux.mirror.garr.it/edge/main' > /etc/apk/repositories &&\
10-
# echo '@community https://alpinelinux.mirror.garr.it/edge/community' >> /etc/apk/repositories &&\
11-
# apk update &&\
12-
# apk upgrade
13-
RUN apk update &&\
14-
apk upgrade
15+
RUN \
16+
apk update \
17+
&& apk upgrade
1518

1619
# install CA certificates
1720
RUN apk add ca-certificates
@@ -45,21 +48,25 @@ RUN apk add \
4548
linux-headers
4649

4750
# install OpenJDK8
48-
RUN apk add openjdk8 \
49-
&& apk add java-cacerts
51+
RUN apk add \
52+
openjdk8 \
53+
java-cacerts
5054

5155
# cleanup
5256
RUN rm -rf /var/cache/apk/*
5357

58+
# gflags from source
59+
RUN \
60+
wget -O gflags-$GFLAGS_VERSION.tar.gz https://github.com/gflags/gflags/archive/refs/tags/v$GFLAGS_VERSION.tar.gz \
61+
&& tar zxvf gflags-$GFLAGS_VERSION.tar.gz \
62+
&& mkdir gflags-$GFLAGS_VERSION/build \
63+
&& cd gflags-$GFLAGS_VERSION/build \
64+
&& CMAKE_INSTALL_PREFIX=/usr cmake .. \
65+
&& make -j $JOBS \
66+
&& make install \
67+
&& cd / \
68+
&& rm -rf gflags-$GFLAGS_VERSION*
69+
5470
# puts javac in the PATH
5571
ENV JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
5672
ENV PATH=/usr/lib/jvm/java-1.8-openjdk/bin:$PATH
57-
58-
# gflags from source
59-
RUN cd /tmp &&\
60-
git clone -b v2.0 --single-branch https://github.com/gflags/gflags.git &&\
61-
cd gflags &&\
62-
wget -O config.guess https://raw.githubusercontent.com/gcc-mirror/gcc/master/config.guess &&\
63-
wget -O config.sub https://raw.githubusercontent.com/gcc-mirror/gcc/master/config.sub &&\
64-
./configure --prefix=/usr && make && make install &&\
65-
rm -rf /tmp/*

alpine3_s390x/Dockerfile

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ LABEL org.opencontainers.image.authors="Evolved Binary Ltd <tech@evolvedbinary.c
55
LABEL name="Alpine 3 (s390x) RocksJava Build Environment" \
66
vendor="Evolved Binary Ltd"
77

8+
# make: Allow N jobs at once; infinite jobs with no arg
9+
ARG JOBS=1
10+
11+
# version of gflags to compile
12+
ARG GFLAGS_VERSION=2.2.2
13+
814
# update Alpine with latest versions
9-
RUN echo '@edge http://nl.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories \
10-
&& echo '@community http://nl.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories \
11-
&& apk update \
15+
RUN \
16+
apk update \
1217
&& apk upgrade
1318

1419
# install CA certificates
@@ -43,21 +48,25 @@ RUN apk add \
4348
linux-headers
4449

4550
# install OpenJDK8
46-
RUN apk add openjdk8 \
47-
&& apk add java-cacerts
51+
RUN apk add \
52+
openjdk8 \
53+
java-cacerts
4854

4955
# cleanup
5056
RUN rm -rf /var/cache/apk/*
5157

58+
# gflags from source
59+
RUN \
60+
wget -O gflags-$GFLAGS_VERSION.tar.gz https://github.com/gflags/gflags/archive/refs/tags/v$GFLAGS_VERSION.tar.gz \
61+
&& tar zxvf gflags-$GFLAGS_VERSION.tar.gz \
62+
&& mkdir gflags-$GFLAGS_VERSION/build \
63+
&& cd gflags-$GFLAGS_VERSION/build \
64+
&& CMAKE_INSTALL_PREFIX=/usr cmake .. \
65+
&& make -j $JOBS \
66+
&& make install \
67+
&& cd / \
68+
&& rm -rf gflags-$GFLAGS_VERSION*
69+
5270
# puts javac in the PATH
5371
ENV JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
5472
ENV PATH=/usr/lib/jvm/java-1.8-openjdk/bin:$PATH
55-
56-
# gflags from source
57-
RUN cd /tmp &&\
58-
git clone -b v2.0 --single-branch https://github.com/gflags/gflags.git &&\
59-
cd gflags &&\
60-
wget -O config.guess https://raw.githubusercontent.com/gcc-mirror/gcc/master/config.guess &&\
61-
wget -O config.sub https://raw.githubusercontent.com/gcc-mirror/gcc/master/config.sub &&\
62-
./configure --prefix=/usr && make && make install &&\
63-
rm -rf /tmp/*

alpine3_x64/Dockerfile

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ LABEL org.opencontainers.image.authors="Evolved Binary Ltd <tech@evolvedbinary.c
55
LABEL name="Alpine 3 (x64) RocksJava Build Environment" \
66
vendor="Evolved Binary Ltd"
77

8+
# make: Allow N jobs at once; infinite jobs with no arg
9+
ARG JOBS=1
10+
11+
# version of gflags to compile
12+
ARG GFLAGS_VERSION=2.2.2
13+
814
# update Alpine with latest versions
9-
RUN echo '@edge https://alpinelinux.mirror.garr.it/edge/main' > /etc/apk/repositories &&\
10-
echo '@community https://alpinelinux.mirror.garr.it/edge/community' >> /etc/apk/repositories &&\
11-
apk update &&\
12-
apk upgrade
15+
RUN \
16+
apk update \
17+
&& apk upgrade
1318

1419
# install CA certificates
1520
RUN apk add ca-certificates
@@ -50,13 +55,18 @@ RUN echo 'https://apk.bell-sw.com/main' >> /etc/apk/repositories &&\
5055
# cleanup
5156
RUN rm -rf /var/cache/apk/*
5257

58+
# gflags from source
59+
RUN \
60+
wget -O gflags-$GFLAGS_VERSION.tar.gz https://github.com/gflags/gflags/archive/refs/tags/v$GFLAGS_VERSION.tar.gz \
61+
&& tar zxvf gflags-$GFLAGS_VERSION.tar.gz \
62+
&& mkdir gflags-$GFLAGS_VERSION/build \
63+
&& cd gflags-$GFLAGS_VERSION/build \
64+
&& CMAKE_INSTALL_PREFIX=/usr cmake .. \
65+
&& make -j $JOBS \
66+
&& make install \
67+
&& cd / \
68+
&& rm -rf gflags-$GFLAGS_VERSION*
69+
5370
# puts javac in the PATH
5471
ENV JAVA_HOME=/usr/lib/jvm/bellsoft-java8
5572
ENV PATH=/usr/lib/jvm/bellsoft-java8/bin:$PATH
56-
57-
# gflags from source
58-
RUN cd /tmp &&\
59-
git clone -b v2.0 --single-branch https://github.com/gflags/gflags.git &&\
60-
cd gflags &&\
61-
./configure --prefix=/usr && make && make install &&\
62-
rm -rf /tmp/*

alpine3_x86/Dockerfile

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ LABEL org.opencontainers.image.authors="Evolved Binary Ltd <tech@evolvedbinary.c
55
LABEL name="Alpine 3 (x64) RocksJava Build Environment" \
66
vendor="Evolved Binary Ltd"
77

8+
# make: Allow N jobs at once; infinite jobs with no arg
9+
ARG JOBS=1
10+
11+
# version of gflags to compile
12+
ARG GFLAGS_VERSION=2.2.2
13+
814
# update Alpine with latest versions
9-
# RUN echo '@edge https://alpinelinux.mirror.garr.it/edge/main' > /etc/apk/repositories &&\
10-
# echo '@community https://alpinelinux.mirror.garr.it/edge/community' >> /etc/apk/repositories &&\
11-
# apk update &&\
12-
# apk upgrade
13-
RUN apk update &&\
14-
apk upgrade
15+
RUN \
16+
apk update \
17+
&& apk upgrade
1518

1619
# install CA certificates
1720
RUN apk add ca-certificates
@@ -45,19 +48,25 @@ RUN apk add \
4548
linux-headers
4649

4750
# install OpenJDK8
48-
RUN apk add openjdk8 \
49-
&& apk add java-cacerts
51+
RUN apk add \
52+
openjdk8 \
53+
java-cacerts
5054

5155
# cleanup
5256
RUN rm -rf /var/cache/apk/*
5357

58+
# gflags from source
59+
RUN \
60+
wget -O gflags-$GFLAGS_VERSION.tar.gz https://github.com/gflags/gflags/archive/refs/tags/v$GFLAGS_VERSION.tar.gz \
61+
&& tar zxvf gflags-$GFLAGS_VERSION.tar.gz \
62+
&& mkdir gflags-$GFLAGS_VERSION/build \
63+
&& cd gflags-$GFLAGS_VERSION/build \
64+
&& CMAKE_INSTALL_PREFIX=/usr cmake .. \
65+
&& make -j $JOBS \
66+
&& make install \
67+
&& cd / \
68+
&& rm -rf gflags-$GFLAGS_VERSION*
69+
5470
# puts javac in the PATH
5571
ENV JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
5672
ENV PATH=/usr/lib/jvm/java-1.8-openjdk/bin:$PATH
57-
58-
# gflags from source
59-
RUN cd /tmp &&\
60-
git clone -b v2.0 --single-branch https://github.com/gflags/gflags.git &&\
61-
cd gflags &&\
62-
./configure --prefix=/usr && make && make install &&\
63-
rm -rf /tmp/*

0 commit comments

Comments
 (0)