Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROX-18384: remove slim images from upstream #1963

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions .github/workflows/collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,6 @@ jobs:
base-image: quay.io/stackrox-io/collector:${{ inputs.collector-tag }}
archs: ${{ env.ARCHS }}

- name: Create and push multiarch manifest for stackrox-io -slim
uses: ./.github/actions/create-multiarch-manifest
with:
base-image: quay.io/stackrox-io/collector:${{ inputs.collector-tag }}
archs: ${{ env.ARCHS }}
suffix: -slim

- name: Create and push multiarch manifest for stackrox-io -base
uses: ./.github/actions/create-multiarch-manifest
with:
Expand Down Expand Up @@ -222,13 +215,6 @@ jobs:
base-image: quay.io/rhacs-eng/collector:${{ inputs.collector-tag }}
archs: ${{ env.ARCHS }}

- name: Create and push multiarch manifest for rhacs-eng -slim
uses: ./.github/actions/create-multiarch-manifest
with:
base-image: quay.io/rhacs-eng/collector:${{ inputs.collector-tag }}
archs: ${{ env.ARCHS }}
suffix: -slim

- name: Create and push multiarch manifest for rhacs-eng -base
uses: ./.github/actions/create-multiarch-manifest
with:
Expand Down Expand Up @@ -264,14 +250,6 @@ jobs:
username: ${{ secrets.QUAY_STACKROX_IO_RW_USERNAME }}
password: ${{ secrets.QUAY_STACKROX_IO_RW_PASSWORD }}

- name: Retag and push stackrox-io -slim
uses: stackrox/actions/images/retag-and-push@v1
with:
src-image: ${{ inputs.collector-image }}-amd64
dst-image: ${{ inputs.collector-image }}-slim
username: ${{ secrets.QUAY_STACKROX_IO_RW_USERNAME }}
password: ${{ secrets.QUAY_STACKROX_IO_RW_PASSWORD }}

- name: Retag and push stackrox-io -base
uses: stackrox/actions/images/retag-and-push@v1
with:
Expand All @@ -296,14 +274,6 @@ jobs:
username: ${{ secrets.QUAY_RHACS_ENG_RW_USERNAME }}
password: ${{ secrets.QUAY_RHACS_ENG_RW_PASSWORD }}

- name: Retag and push rhacs-eng -slim
uses: stackrox/actions/images/retag-and-push@v1
with:
src-image: ${{ inputs.collector-image }}-amd64
dst-image: ${{ env.RHACS_ENG_IMAGE }}-slim
username: ${{ secrets.QUAY_RHACS_ENG_RW_USERNAME }}
password: ${{ secrets.QUAY_RHACS_ENG_RW_PASSWORD }}

- name: Retag and push rhacs-eng -base
uses: stackrox/actions/images/retag-and-push@v1
with:
Expand Down
5 changes: 2 additions & 3 deletions ansible/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ quay.io.

### Collector image

The `ci-build-collector.yml` playbook is meant to be used by CI, it handles the
build process for the slim collector image, as well as retagging and pushing
of these images to quay.io.
The `ci-build-collector.yml` playbook is meant to be used by CI, it handles
retagging and pushing of Collector images to quay.io.

#### Environment variables used by the playbook

Expand Down
16 changes: 0 additions & 16 deletions ansible/ci-build-collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,6 @@
push: true
source: local

- name: Push slim to quay.io/stackrox-io
community.docker.docker_image:
name: "{{ collector_image }}-{{ arch }}"
repository: "{{ collector_image }}-{{ arch }}-slim"
push: true
source: local

- name: Push base to quay.io/stackrox-io
community.docker.docker_image:
name: "{{ collector_image }}-{{ arch }}"
Expand Down Expand Up @@ -97,13 +90,6 @@
push: true
source: local

- name: Push slim to quay.io/rhacs-eng
community.docker.docker_image:
name: "{{ rhacs_eng_image }}-{{ arch }}"
repository: "{{ rhacs_eng_image }}-{{ arch }}-slim"
push: true
source: local

- name: Push base to quay.io/rhacs-eng
community.docker.docker_image:
name: "{{ rhacs_eng_image }}-{{ arch }}"
Expand All @@ -123,11 +109,9 @@
msg:
- "Pushed the following images:"
- " {{ collector_image }}-{{ arch }}"
- " {{ collector_image }}-{{ arch }}-slim"
- " {{ collector_image }}-{{ arch }}-base"
- " {{ collector_image }}-{{ arch }}-latest"
- " {{ rhacs_eng_image }}-{{ arch }}"
- " {{ rhacs_eng_image }}-{{ arch }}-slim"
- " {{ rhacs_eng_image }}-{{ arch }}-base"
- " {{ rhacs_eng_image }}-{{ arch }}-latest"
tags: [print_action]
Expand Down
2 changes: 1 addition & 1 deletion docs/how-to-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $ make image

This target will build necessary submodules (gRPC dependencies, Falco
libraries), prepare a builder image, compile Collector using it, and wrap
everything into a slim image with Collector binary inside.
everything into an image with the Collector binary inside.

*NOTE*: Using an intermediate image for compilation means that file paths are
going to be different between your local project directory and the image. For
Expand Down
Loading