Skip to content

Commit d56b139

Browse files
committed
fix: salt install in all-in-one image
1 parent 608d579 commit d56b139

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

docker/all-in-one/Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,16 @@ ENV DEBIAN_FRONTEND noninteractive
160160
ENV SALT_VERSION 3006
161161

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

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

0 commit comments

Comments
 (0)