Skip to content

Commit 6488455

Browse files
committed
wip
1 parent 6df5a3f commit 6488455

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

docker/all-in-one/Dockerfile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
157157
# Install salt
158158
####################
159159
ENV DEBIAN_FRONTEND noninteractive
160+
ENV SALT_VERSION 3006
160161

161162
# 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
163+
RUN mkdir /etc/apt/keyrings \
164+
&& curl -fsSL -o /etc/apt/keyrings/salt-archive-keyring-2023.gpg https://packages.broadcom.com/artifactory/api/security/keypair/SaltProjectKey/public \
165+
&& curl -fsSL -o /etc/apt/sources.list.d/salt.list https://github.com/saltstack/salt-install-guide/releases/latest/download/salt.sources \
166+
&& <<EOF
167+
echo "Package: salt-*" > /etc/apt/preferences.d/salt-pin-1001
168+
echo "Pin: version ${SALT_VERSION}.*" >> /etc/apt/preferences.d/salt-pin-1001
169+
echo "Pin-Priority: 1001" >> /etc/apt/preferences.d/salt-pin-1001
170+
EOF \
171+
&& apt-get clean && apt-get update && apt-get install -y salt-minion
169172

170173
ADD docker/all-in-one/etc/salt/minion /etc/salt/minion
171174

0 commit comments

Comments
 (0)