@@ -58,8 +58,6 @@ RUN set -eux \
5858 && echo "deb http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list \
5959 && curl -sS -L --fail "https://packages.blackfire.io/gpg.key" | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - \
6060 && echo "deb http://packages.blackfire.io/debian any main" > /etc/apt/sources.list.d/blackfire.list \
61- && curl -sS -k -L --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - \
62- && echo "deb https://apt-archive.postgresql.org/pub/repos/apt/ jessie-pgdg main" > /etc/apt/sources.list.d/pgsql.list \
6361 \
6462 && DEBIAN_FRONTEND=noninteractive apt-get update \
6563 && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends --no-install-suggests \
@@ -100,20 +98,6 @@ RUN set -eux \
10098 \
10199 mysql-client \
102100 \
103- # 5.2: mongodb-clients (amd64)
104- # 5.3: mongodb-clients (amd64)
105- # 5.4: mongodb-clients (amd64)
106- # 5.5: mongodb-clients (amd64)
107- # 5.6: mongodb-clients (amd64, arm64)
108- # 7.0: mongodb-clients (amd64, arm64)
109- # 7.1: mongo-tools OR mongodb-org-(tools|shell) (amd64, arm64)
110- # 7.2: mongo-tools OR mongodb-org-(tools|shell) (amd64, arm64)
111- # 7.3: mongodb-org-(tools|shell) (amd64, arm64)
112- # 7.4: mongodb-org-(tools|shell) (amd64, arm64)
113- # 8.0: mongodb-org-(tools|shell) (amd64, arm64)
114- # 8.1: mongodb-org-(tools|shell) (amd64, arm64)
115- # 8.2: mongodb-org-(tools|shell) (amd64, arm64)
116- $( if [ "$(dpkg-architecture --query DEB_BUILD_ARCH)" = "amd64" ]; then echo 'mongodb-clients'; fi ) \
117101 mupdf \
118102 mupdf-tools \
119103 nano \
@@ -122,9 +106,6 @@ RUN set -eux \
122106 openssh-client \
123107 patch \
124108 patchelf \
125- \
126- postgresql-client \
127- \
128109 redis-tools \
129110 rsync \
130111 rubygems \
@@ -149,20 +130,7 @@ RUN set -eux \
149130 \
150131 && (find /usr/local/bin -type f -print0 | xargs -n1 -0 -P$(getconf _NPROCESSORS_ONLN) strip --strip-all -p 2>/dev/null || true) \
151132 && (find /usr/local/lib -type f -print0 | xargs -n1 -0 -P$(getconf _NPROCESSORS_ONLN) strip --strip-all -p 2>/dev/null || true) \
152- && (find /usr/local/sbin -type f -print0 | xargs -n1 -0 -P$(getconf _NPROCESSORS_ONLN) strip --strip-all -p 2>/dev/null || true) \
153- \
154- # Check version: mongofiles
155- && if [ "$(dpkg-architecture --query DEB_BUILD_ARCH)" = "amd64" ]; then \
156- mongofiles --version; \
157- fi \
158- \
159- # Check version: pg_isready
160- && pg_isready --version \
161- \
162- # Check version: mysql
163- && mysql --version \
164- \
165- && true
133+ && (find /usr/local/sbin -type f -print0 | xargs -n1 -0 -P$(getconf _NPROCESSORS_ONLN) strip --strip-all -p 2>/dev/null || true)
166134
167135
168136###
@@ -217,6 +185,29 @@ RUN set -eux \
217185&& su -c '. /opt/nvm/nvm.sh; corepack enable' devilbox \
218186 \
219187 \
188+ # -------------------- pgsql_client --------------------
189+ && if [ "$(dpkg-architecture --query DEB_BUILD_ARCH)" = "amd64" ]; then \
190+ curl -sS -k -L --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - \
191+ && echo "deb https://apt-archive.postgresql.org/pub/repos/apt/ jessie-pgdg main" > /etc/apt/sources.list.d/pgsql.list \
192+ && apt-get update; \
193+ fi \
194+ \
195+ && if [ "$(dpkg-architecture --query DEB_BUILD_ARCH)" = "amd64" ]; then \
196+ apt-get install -y --no-install-recommends --no-install-suggests \
197+ postgresql-client; \
198+ fi \
199+ \
200+ && rm -rf /var/lib/apt/lists/* \
201+ \
202+ # -------------------- mongo_client --------------------
203+ && apt-get update \
204+ && if [ "$(dpkg-architecture --query DEB_BUILD_ARCH)" = "amd64" ]; then \
205+ apt-get install -y --no-install-recommends --no-install-suggests \
206+ mongodb-clients; \
207+ fi \
208+ \
209+ && rm -rf /var/lib/apt/lists/* \
210+ \
220211# -------------------- awesomeci --------------------
221212 && git clone https://github.com/cytopia/awesome-ci.git /usr/local/src/awesome-ci \
222213&& cd /usr/local/src/awesome-ci \
@@ -729,6 +720,22 @@ RUN set -eux \
729720 && composer --version 2>/dev/null | grep -Ei '(composer|version)\s*[0-9][.0-9]+' \
730721 && su -c '. /opt/nvm/nvm.sh; nvm --version' devilbox | grep -E '^v?[0-9][.0-9]+' \
731722&& su -c '. /opt/nvm/nvm.sh; yarn --version' devilbox | grep -E '^v?[0-9][.0-9]+' \
723+ \
724+ && if echo '5.4' | grep -E '^(5.2|5.3|5.4|5.5|5.6|7.0)$' >/dev/null; then \
725+ if [ "$(dpkg-architecture --query DEB_BUILD_ARCH)" = "amd64" ]; then \
726+ pg_isready --version; \
727+ fi \
728+ else \
729+ pg_isready --version; \
730+ fi \
731+ \
732+ && if echo '5.4' | grep -E '^(5.2|5.3|5.4|5.5)$' >/dev/null; then \
733+ if [ "$(dpkg-architecture --query DEB_BUILD_ARCH)" = "amd64" ]; then \
734+ mongofiles --version; \
735+ fi \
736+ else \
737+ mongofiles --version; \
738+ fi \
732739 \
733740 && regex-grep --version | grep -E '[0-9][.0-9]+' \
734741 && dep --version 2>/dev/null | grep -Ei 'deployer\s*(version\s*)?[0-9][.0-9]+' \
0 commit comments