Skip to content

Commit 9a50905

Browse files
committed
wip
1 parent 6df5a3f commit 9a50905

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

docker/all-in-one/Dockerfile

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# syntax=docker/dockerfile:1.4
12
ARG postgres_version=15.1.1.49
23

34
ARG pgbouncer_release=1.18.0
@@ -157,15 +158,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
157158
# Install salt
158159
####################
159160
ENV DEBIAN_FRONTEND noninteractive
161+
ENV SALT_VERSION 3006
160162

161163
# Install one-dir salt
162-
RUN apt-get clean && apt-get update apt-get install-y apt-transport-https \
163-
&& mkdir /etc/apt/keyrings \
164-
&& curl -fsSL -o /etc/apt/keyrings/salt-archive-keyring-2023-arm.gpg https://packages.broadcom.com/artifactory/api/security/keypair/SaltProjectKey/public \
165-
&& echo "deb [signed-by=/etc/apt/keyrings/salt-archive-keyring-2023-arm.gpg arch=arm64] https://packages.broadcom.com/artifactory/saltproject-deb/ stable main" | tee /etc/apt/sources.list.d/salt.list \
166-
&& curl -fsSL -o /etc/apt/keyrings/salt-archive-keyring-2023-arm.gpg https://packages.broadcom.com/artifactory/api/security/keypair/SaltProjectKey/public \
167-
&& echo "deb [signed-by=/etc/apt/keyrings/salt-archive-keyring-2023-arm.gpg arch=amd64] https://packages.broadcom.com/artifactory/saltproject-deb/ stable main" | tee -a /etc/apt/sources.list.d/salt.list \
168-
&& apt-get install -y salt-minion
164+
RUN cat <<EOF > /etc/apt/preferences.d/salt-pin-1001
165+
Package: salt-*
166+
Pin: version ${SALT_VERSION}.*
167+
Pin-Priority: 1001
168+
EOF
169+
170+
RUN mkdir /etc/apt/keyrings \
171+
&& curl -fsSL -o /etc/apt/keyrings/salt-archive-keyring.pgp https://packages.broadcom.com/artifactory/api/security/keypair/SaltProjectKey/public \
172+
&& curl -fsSL https://github.com/saltstack/salt-install-guide/releases/latest/download/salt.sources > /etc/apt/sources.list.d/salt.sources \
173+
&& apt-get clean && apt-get update && apt-get install -y salt-minion
169174

170175
ADD docker/all-in-one/etc/salt/minion /etc/salt/minion
171176

0 commit comments

Comments
 (0)