Skip to content

Commit

Permalink
Merge pull request #123 from steven-gueguen/master
Browse files Browse the repository at this point in the history
Install FoundationDB only for Ubuntu x86_64 image
  • Loading branch information
stggn authored Jul 7, 2023
2 parents 523edb2 + 4fa230c commit 2a740c8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
21 changes: 12 additions & 9 deletions ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,18 @@ RUN set -eux; \
unzip ${WARP10_HOME}/lib/warp10-ext-hfstore-${HFSTORE_VERSION}.jar hfstore -d ${WARP10_HOME}/bin; \
mkdir ${WARP10_HOME}/hfiles; \
##
## Install FoundationDB client and server
##
cd /var/tmp; \
wget -q ${FOUNDATIONDB_URL}/${FDBCLI_PKG}; \
echo "${FDBCLI_SHA256} ${FDBCLI_PKG}" | sha256sum -c; \
wget -q ${FOUNDATIONDB_URL}/${FDBSERVER_PKG}; \
echo "${FDBSERVER_SHA256} ${FDBSERVER_PKG}" | sha256sum -c; \
dpkg -i ${FDBCLI_PKG} ${FDBSERVER_PKG}; \
rm -f /var/tmp/*.deb; \
## Install FoundationDB client and server only on x86_64
##
target=$(uname -m); \
if [ "x86_64" = "${target}" ]; then \
cd /var/tmp; \
wget -q ${FOUNDATIONDB_URL}/${FDBCLI_PKG}; \
echo "${FDBCLI_SHA256} ${FDBCLI_PKG}" | sha256sum -c; \
wget -q ${FOUNDATIONDB_URL}/${FDBSERVER_PKG}; \
echo "${FDBSERVER_SHA256} ${FDBSERVER_PKG}" | sha256sum -c; \
dpkg -i ${FDBCLI_PKG} ${FDBSERVER_PKG}; \
rm -f /var/tmp/*.deb; \
fi; \
##
## Fix permissions
##
Expand Down
2 changes: 1 addition & 1 deletion utils/generate-alpine-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ sed \
-e 's/groupadd --system --gid=942 warp10/addgroup -S -g 942 warp10/' \
-e 's@useradd --system --gid warp10 --uid=942 --home-dir=${WARP10_HOME} --shell=/bin/bash warp10@adduser -S -u 942 -D -G warp10 -H -h ${WARP10_HOME} -s /bin/bash warp10@' \
-e 's@\./docker-entrypoint.sh@\./alpine/docker-entrypoint.sh@' \
-e 's/dpkg -i/#dpkg -i/' \
-e 's/target=$(uname -m);/target=disabled;/' \
./ubuntu/Dockerfile > ./alpine/Dockerfile

0 comments on commit 2a740c8

Please sign in to comment.