Skip to content

Commit

Permalink
Back to system rust packages. Add Debian 12 to packaging
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Algarvio <[email protected]>
  • Loading branch information
s0undt3ch committed Jul 5, 2023
1 parent f166d3e commit 900f3a8
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/packaging-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
- name: Inspect Source Image
run: |
docker buildx imagetools inspect debian:11 | tee -a source-container-inspect.txt
docker buildx imagetools inspect debian:12 | tee -a source-container-inspect.txt
- name: Define Build Platforms
id: define-platforms
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ will be commited.

- packaging:centosstream-9 - `ghcr.io/saltstack/salt-ci-containers/packaging:centosstream-9`
- packaging:debian-11 - `ghcr.io/saltstack/salt-ci-containers/packaging:debian-11`
- packaging:debian-12 - `ghcr.io/saltstack/salt-ci-containers/packaging:debian-12`


### [![Virt Minion](https://github.com/saltstack/salt-ci-containers/actions/workflows/virt-minion-containers.yml/badge.svg)](https://github.com/saltstack/salt-ci-containers/actions/workflows/virt-minion-containers.yml)
Expand Down
1 change: 1 addition & 0 deletions containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ custom:
name: packaging
versions:
- debian-11
- debian-12
- centosstream-9
exclude_platforms:
- linux/386
Expand Down
1 change: 1 addition & 0 deletions custom/packaging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

- packaging:centosstream-9 - `ghcr.io/saltstack/salt-ci-containers/packaging:centosstream-9`
- packaging:debian-11 - `ghcr.io/saltstack/salt-ci-containers/packaging:debian-11`
- packaging:debian-12 - `ghcr.io/saltstack/salt-ci-containers/packaging:debian-12`
9 changes: 1 addition & 8 deletions custom/packaging/centosstream-9.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@ FROM quay.io/centos/centos:stream9

RUN yum update -y \
&& yum install -y python3 python3-devel python3-pip openssl git rpmdevtools rpmlint \
systemd-units libxcrypt-compat git gnupg2 jq createrepo rpm-sign epel-release \
systemd-units libxcrypt-compat git gnupg2 jq createrepo rpm-sign epel-release rustc cargo \
&& yum install -y patchelf \
&& yum install -y --allowerasing curl \
&& python3 -m pip install awscli

RUN export RUSTUP_HOME=/opt/rust \
&& export CARGO_HOME=/opt/rust \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path

RUN for fname in $(ls /opt/rust/bin); do echo -e '#!/bin/sh\n\nRUSTUP_HOME=/opt/rust exec /opt/rust/bin/${0##*/} "$@"' > /usr/bin/$fname; chmod +x /usr/bin/$fname; done \
&& rustc --version
9 changes: 1 addition & 8 deletions custom/packaging/debian-11.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,4 @@ COPY 01_nodoc /etc/dpkg/dpkg.cfg.d/01_nodoc

RUN apt update -y \
&& apt install -y apt-utils gnupg jq awscli python3 python3-venv python3-pip \
build-essential devscripts debhelper bash-completion git patchelf curl

RUN export RUSTUP_HOME=/opt/rust \
&& export CARGO_HOME=/opt/rust \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path

RUN for fname in $(ls /opt/rust/bin); do echo -e '#!/bin/sh\n\nRUSTUP_HOME=/opt/rust exec /opt/rust/bin/${0##*/} "$@"' > /usr/bin/$fname; chmod +x /usr/bin/$fname; done \
&& rustc --version
build-essential devscripts debhelper bash-completion git patchelf curl rustc
7 changes: 7 additions & 0 deletions custom/packaging/debian-12.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM debian:12

COPY 01_nodoc /etc/dpkg/dpkg.cfg.d/01_nodoc

RUN apt update -y \
&& apt install -y apt-utils gnupg jq awscli python3 python3-venv python3-pip \
build-essential devscripts debhelper bash-completion git patchelf curl rustc

0 comments on commit 900f3a8

Please sign in to comment.