Skip to content

Commit

Permalink
Try fixup alpine builds
Browse files Browse the repository at this point in the history
  • Loading branch information
gruve-p committed Dec 13, 2023
1 parent ec6d495 commit 0f094f8
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 28 deletions.
10 changes: 5 additions & 5 deletions 2.21/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build stage for BerkeleyDB
FROM alpine as berkeleydb
FROM alpine:3.13.0 as berkeleydb

RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories
RUN apk --no-cache add autoconf
Expand All @@ -19,13 +19,13 @@ RUN mkdir -p ${BERKELEYDB_PREFIX}

WORKDIR /${BERKELEYDB_VERSION}/build_unix

RUN ../dist/configure --enable-cxx --disable-shared --with-pic --prefix=${BERKELEYDB_PREFIX}
RUN ../dist/configure --enable-cxx --disable-shared --with-pic --prefix=${BERKELEYDB_PREFIX} --build=aarch64-unknown-linux-gnu
RUN make -j4
RUN make install
RUN rm -rf ${BERKELEYDB_PREFIX}/docs

# Build stage for Groestlcoin Core
FROM alpine as groestlcoin-core
FROM alpine:3.13.0 as groestlcoin-core

COPY --from=berkeleydb /opt /opt

Expand Down Expand Up @@ -88,7 +88,7 @@ RUN strip ${GROESTLCOIN_PREFIX}/bin/groestlcoind
RUN strip ${GROESTLCOIN_PREFIX}/lib/libgroestlcoinconsensus.a
RUN strip ${GROESTLCOIN_PREFIX}/lib/libgroestlcoinconsensus.so.0.0.0

FROM alpine
FROM alpine:3.13.0

ARG UID=100
ARG GID=101
Expand All @@ -102,10 +102,10 @@ RUN apk --no-cache add \
boost-filesystem \
boost-system \
boost-thread \
sqlite-dev \
libevent \
libzmq \
shadow \
sqlite-dev \
su-exec

ENV GROESTLCOIN_DATA=/home/groestlcoin/.groestlcoin
Expand Down
8 changes: 4 additions & 4 deletions 22/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build stage for BerkeleyDB
FROM alpine as berkeleydb
FROM alpine:3.13.0 as berkeleydb

RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories
RUN apk --no-cache add autoconf
Expand All @@ -19,13 +19,13 @@ RUN mkdir -p ${BERKELEYDB_PREFIX}

WORKDIR /${BERKELEYDB_VERSION}/build_unix

RUN ../dist/configure --enable-cxx --disable-shared --with-pic --prefix=${BERKELEYDB_PREFIX}
RUN ../dist/configure --enable-cxx --disable-shared --with-pic --prefix=${BERKELEYDB_PREFIX} --build=aarch64-unknown-linux-gnu
RUN make -j4
RUN make install
RUN rm -rf ${BERKELEYDB_PREFIX}/docs

# Build stage for Groestlcoin Core
FROM alpine as groestlcoin-core
FROM alpine:3.13.0 as groestlcoin-core

COPY --from=berkeleydb /opt /opt

Expand Down Expand Up @@ -89,7 +89,7 @@ RUN strip ${GROESTLCOIN_PREFIX}/bin/groestlcoind
RUN strip ${GROESTLCOIN_PREFIX}/lib/libgroestlcoinconsensus.a
RUN strip ${GROESTLCOIN_PREFIX}/lib/libgroestlcoinconsensus.so.0.0.0

FROM alpine
FROM alpine:3.13.0

ARG UID=100
ARG GID=101
Expand Down
13 changes: 6 additions & 7 deletions 23/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Build stage for BerkeleyDB
FROM alpine as berkeleydb

ARG TARGETPLATFORM
FROM alpine:3.13.0 as berkeleydb

RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories
RUN apk --no-cache add autoconf
Expand All @@ -21,13 +19,13 @@ RUN mkdir -p ${BERKELEYDB_PREFIX}

WORKDIR /${BERKELEYDB_VERSION}/build_unix

RUN ../dist/configure --enable-cxx --disable-shared --with-pic --prefix=${BERKELEYDB_PREFIX}
RUN ../dist/configure --enable-cxx --disable-shared --with-pic --prefix=${BERKELEYDB_PREFIX} --build=aarch64-unknown-linux-gnu
RUN make -j4
RUN make install
RUN rm -rf ${BERKELEYDB_PREFIX}/docs

# Build stage for Groestlcoin Core
FROM alpine as groestlcoin-core
FROM alpine:3.13.0 as groestlcoin-core

COPY --from=berkeleydb /opt /opt

Expand Down Expand Up @@ -93,7 +91,7 @@ RUN strip ${GROESTLCOIN_PREFIX}/lib/libgroestlcoinconsensus.a
RUN strip ${GROESTLCOIN_PREFIX}/lib/libgroestlcoinconsensus.so.0.0.0

# Build stage for compiled artifacts
FROM alpine
FROM alpine:3.13.0

ARG UID=100
ARG GID=101
Expand All @@ -107,9 +105,10 @@ RUN apk --no-cache add \
boost-filesystem \
boost-system \
boost-thread \
sqlite-dev \
libevent \
libzmq \
shadow \
sqlite-dev \
su-exec

ENV GROESTLCOIN_DATA=/home/groestlcoin/.groestlcoin
Expand Down
9 changes: 3 additions & 6 deletions 24/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build stage for BerkeleyDB
FROM alpine as berkeleydb
FROM alpine:3.13.0 as berkeleydb

RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories
RUN apk --no-cache add autoconf
Expand All @@ -25,7 +25,7 @@ RUN make install
RUN rm -rf ${BERKELEYDB_PREFIX}/docs

# Build stage for Groestlcoin Core
FROM alpine as groestlcoin-core
FROM alpine:3.13.0 as groestlcoin-core

COPY --from=berkeleydb /opt /opt

Expand Down Expand Up @@ -88,7 +88,7 @@ RUN strip ${GROESTLCOIN_PREFIX}/lib/libgroestlcoinconsensus.a
RUN strip ${GROESTLCOIN_PREFIX}/lib/libgroestlcoinconsensus.so.0.0.0

# Build stage for compiled artifacts
FROM alpine
FROM alpine:3.13.0

ARG UID=100
ARG GID=101
Expand All @@ -99,9 +99,6 @@ RUN addgroup groestlcoin --gid ${GID} --system
RUN adduser --uid ${UID} --system groestlcoin --ingroup groestlcoin
RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories
RUN apk --no-cache add \
boost-filesystem \
boost-system \
boost-thread \
libevent \
libzmq \
shadow \
Expand Down
3 changes: 0 additions & 3 deletions 25/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ RUN addgroup groestlcoin --gid ${GID} --system
RUN adduser --uid ${UID} --system groestlcoin --ingroup groestlcoin
RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories
RUN apk --no-cache add \
boost-filesystem \
boost-system \
boost-thread \
libevent \
libzmq \
shadow \
Expand Down
3 changes: 0 additions & 3 deletions 26/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ RUN addgroup groestlcoin --gid ${GID} --system
RUN adduser --uid ${UID} --system groestlcoin --ingroup groestlcoin
RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories
RUN apk --no-cache add \
boost-filesystem \
boost-system \
boost-thread \
libevent \
libzmq \
shadow \
Expand Down

0 comments on commit 0f094f8

Please sign in to comment.