From b9f26aaca7093c7c41d5b54a3c50d9ad88a59a49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Rodr=C3=ADguez=20Hern=C3=A1ndez?= Date: Wed, 19 Jul 2023 18:21:25 +0200 Subject: [PATCH] Deprecate bitnami-shell from containers repo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Carlos Rodríguez Hernández --- .vib/bitnami-shell/goss/bitnami-shell.yaml | 9 -- .vib/bitnami-shell/goss/goss.yaml | 10 -- .vib/bitnami-shell/goss/vars.yaml | 1 - .vib/bitnami-shell/vib-publish.json | 125 ------------------ .vib/bitnami-shell/vib-verify.json | 69 ---------- bitnami/bitnami-shell/11/debian-11/Dockerfile | 31 ----- .../11/debian-11/docker-compose.yml | 7 - .../opt/bitnami/.bitnami_components.json | 3 - .../opt/bitnami/licenses/licenses.txt | 2 - .../prebuildfs/usr/sbin/install_packages | 27 ---- .../bitnami-shell/11/debian-11/tags-info.yaml | 5 - bitnami/bitnami-shell/README.md | 89 ------------- bitnami/bitnami-shell/docker-compose.yml | 7 - 13 files changed, 385 deletions(-) delete mode 100644 .vib/bitnami-shell/goss/bitnami-shell.yaml delete mode 100644 .vib/bitnami-shell/goss/goss.yaml delete mode 100644 .vib/bitnami-shell/goss/vars.yaml delete mode 100644 .vib/bitnami-shell/vib-publish.json delete mode 100644 .vib/bitnami-shell/vib-verify.json delete mode 100644 bitnami/bitnami-shell/11/debian-11/Dockerfile delete mode 100644 bitnami/bitnami-shell/11/debian-11/docker-compose.yml delete mode 100644 bitnami/bitnami-shell/11/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json delete mode 100644 bitnami/bitnami-shell/11/debian-11/prebuildfs/opt/bitnami/licenses/licenses.txt delete mode 100755 bitnami/bitnami-shell/11/debian-11/prebuildfs/usr/sbin/install_packages delete mode 100644 bitnami/bitnami-shell/11/debian-11/tags-info.yaml delete mode 100644 bitnami/bitnami-shell/README.md delete mode 100644 bitnami/bitnami-shell/docker-compose.yml diff --git a/.vib/bitnami-shell/goss/bitnami-shell.yaml b/.vib/bitnami-shell/goss/bitnami-shell.yaml deleted file mode 100644 index ff963ebf2eec0..0000000000000 --- a/.vib/bitnami-shell/goss/bitnami-shell.yaml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright VMware, Inc. -# SPDX-License-Identifier: APACHE-2.0 - -command: - check-distro-version: - exec: grep VERSION_ID /etc/os-release - exit-status: 0 - stdout: - - {{ .Env.APP_VERSION }} diff --git a/.vib/bitnami-shell/goss/goss.yaml b/.vib/bitnami-shell/goss/goss.yaml deleted file mode 100644 index 1d40239f4fe7d..0000000000000 --- a/.vib/bitnami-shell/goss/goss.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright VMware, Inc. -# SPDX-License-Identifier: APACHE-2.0 - -gossfile: - # Goss tests exclusive to the current container - ../../bitnami-shell/goss/bitnami-shell.yaml: {} - # Load scripts from .vib/common/goss/templates - ../../common/goss/templates/check-broken-symlinks.yaml: {} - ../../common/goss/templates/check-linked-libraries.yaml: {} - ../../common/goss/templates/check-sed-in-place.yaml: {} diff --git a/.vib/bitnami-shell/goss/vars.yaml b/.vib/bitnami-shell/goss/vars.yaml deleted file mode 100644 index a3c236e3c14ad..0000000000000 --- a/.vib/bitnami-shell/goss/vars.yaml +++ /dev/null @@ -1 +0,0 @@ -root_dir: /opt/bitnami diff --git a/.vib/bitnami-shell/vib-publish.json b/.vib/bitnami-shell/vib-publish.json deleted file mode 100644 index 074ea8d7e89e3..0000000000000 --- a/.vib/bitnami-shell/vib-publish.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "context": { - "resources": { - "url": "{VIB_ENV_CONTAINER_URL}", - "path": "{VIB_ENV_PATH}" - }, - "runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd" - }, - "phases": { - "package": { - "actions": [ - { - "action_id": "container-image-package", - "params": { - "application": { - "details": { - "name": "{VIB_ENV_CONTAINER}", - "tag": "{VIB_ENV_TAG}" - } - }, - "architectures": [ - "linux/amd64", - "linux/arm64" - ] - } - }, - { - "action_id": "container-image-lint", - "params": { - "threshold": "error" - } - } - ] - }, - "verify": { - "actions": [ - { - "action_id": "trivy", - "params": { - "threshold": "CRITICAL", - "vuln_type": [ - "OS" - ] - } - }, - { - "action_id": "grype", - "params": { - "threshold": "CRITICAL", - "package_type": [ - "OS" - ] - } - }, - { - "action_id": "osspi-application", - "params": { - "additional_packages_file": "osspi-packages-amd64.json", - "scan_type": "BASE_OS", - "osm": { - "associated_bossd_release": "{VIB_ENV_BOSSD_RELEASE_ID}", - "product_name": "main-catalog-{VIB_ENV_CONTAINER}", - "product_version": "{VIB_ENV_APP_VERSION}-{VIB_ENV_OS_FLAVOUR}-container", - "architecture_overrides": [ - { - "architecture": "linux/amd64", - "product_version": "{VIB_ENV_APP_VERSION}-{VIB_ENV_OS_FLAVOUR}-container", - "additional_packages_file": "osspi-packages-amd64.json" - }, - { - "architecture": "linux/arm64", - "product_version": "{VIB_ENV_APP_VERSION}-{VIB_ENV_OS_FLAVOUR}-container-arm64", - "additional_packages_file": "osspi-packages-arm64.json" - } - ] - }, - "resources": { - "url": "{VIB_ENV_PACKAGES_JSON_URL}", - "path": "/{VIB_ENV_PATH}", - "authn": { - "header": "Authorization", - "token": "Bearer {VIB_ENV_GITHUB_TOKEN}" - } - } - } - }, - { - "action_id": "goss", - "params": { - "resources": { - "path": "/.vib" - }, - "tests_file": "bitnami-shell/goss/goss.yaml", - "vars_file": "bitnami-shell/goss/vars.yaml", - "remote": { - "pod": { - "workload": "deploy-bitnami-shell" - } - } - } - } - ] - }, - "publish": { - "actions": [ - { - "action_id": "container-image-publish", - "params": { - "metadata": { - "tags": {VIB_ENV_ROLLING_TAGS} - }, - "repository": { - "kind": "OCI", - "url": "{VIB_ENV_REGISTRY_URL}", - "authn": { - "username": "{VIB_ENV_REGISTRY_USERNAME}", - "password": "{VIB_ENV_REGISTRY_PASSWORD}" - } - } - } - } - ] - } - } -} diff --git a/.vib/bitnami-shell/vib-verify.json b/.vib/bitnami-shell/vib-verify.json deleted file mode 100644 index a4a87e523cd30..0000000000000 --- a/.vib/bitnami-shell/vib-verify.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "context": { - "resources": { - "url": "{SHA_ARCHIVE}", - "path": "{VIB_ENV_PATH}" - }, - "runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd" - }, - "phases": { - "package": { - "actions": [ - { - "action_id": "container-image-package", - "params": { - "application": { - "details": { - "name": "{VIB_ENV_CONTAINER}", - "tag": "{VIB_ENV_TAG}" - } - } - } - }, - { - "action_id": "container-image-lint", - "params": { - "threshold": "error" - } - } - ] - }, - "verify": { - "actions": [ - { - "action_id": "trivy", - "params": { - "threshold": "CRITICAL", - "vuln_type": [ - "OS" - ] - } - }, - { - "action_id": "grype", - "params": { - "threshold": "CRITICAL", - "package_type": [ - "OS" - ] - } - }, - { - "action_id": "goss", - "params": { - "resources": { - "path": "/.vib" - }, - "tests_file": "bitnami-shell/goss/goss.yaml", - "vars_file": "bitnami-shell/goss/vars.yaml", - "remote": { - "pod": { - "workload": "deploy-bitnami-shell" - } - } - } - } - ] - } - } -} diff --git a/bitnami/bitnami-shell/11/debian-11/Dockerfile b/bitnami/bitnami-shell/11/debian-11/Dockerfile deleted file mode 100644 index 5bc6c990d31c5..0000000000000 --- a/bitnami/bitnami-shell/11/debian-11/Dockerfile +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright VMware, Inc. -# SPDX-License-Identifier: APACHE-2.0 - -FROM docker.io/bitnami/minideb:bullseye - -ARG TARGETARCH - -LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \ - org.opencontainers.image.created="2023-07-15T05:24:47Z" \ - org.opencontainers.image.description="Application packaged by VMware, Inc" \ - org.opencontainers.image.licenses="Apache-2.0" \ - org.opencontainers.image.ref.name="11-debian-11-r136" \ - org.opencontainers.image.title="bitnami-shell" \ - org.opencontainers.image.vendor="VMware, Inc." \ - org.opencontainers.image.version="11" - -COPY prebuildfs / -SHELL ["/bin/bash", "-o", "pipefail", "-c"] -# Install required system packages and dependencies -RUN install_packages curl procps -RUN apt-get update && apt-get upgrade -y && \ - apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives - -ENV APP_VERSION="11" \ - BITNAMI_APP_NAME="bitnami-shell" \ - HOME="/" \ - OS_ARCH="${TARGETARCH:-amd64}" \ - OS_FLAVOUR="debian-11" \ - OS_NAME="linux" - -USER 1001 diff --git a/bitnami/bitnami-shell/11/debian-11/docker-compose.yml b/bitnami/bitnami-shell/11/debian-11/docker-compose.yml deleted file mode 100644 index fb9db599f513f..0000000000000 --- a/bitnami/bitnami-shell/11/debian-11/docker-compose.yml +++ /dev/null @@ -1,7 +0,0 @@ -# Copyright VMware, Inc. -# SPDX-License-Identifier: APACHE-2.0 - -version: '2' -services: - bitnami-shell: - image: docker.io/bitnami/bitnami-shell:11 diff --git a/bitnami/bitnami-shell/11/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json b/bitnami/bitnami-shell/11/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json deleted file mode 100644 index 0e0dcd235c497..0000000000000 --- a/bitnami/bitnami-shell/11/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - -} \ No newline at end of file diff --git a/bitnami/bitnami-shell/11/debian-11/prebuildfs/opt/bitnami/licenses/licenses.txt b/bitnami/bitnami-shell/11/debian-11/prebuildfs/opt/bitnami/licenses/licenses.txt deleted file mode 100644 index 76956b38e82c6..0000000000000 --- a/bitnami/bitnami-shell/11/debian-11/prebuildfs/opt/bitnami/licenses/licenses.txt +++ /dev/null @@ -1,2 +0,0 @@ -Bitnami containers ship with software bundles. You can find the licenses under: -/opt/bitnami/[name-of-bundle]/licenses/[bundle-version].txt diff --git a/bitnami/bitnami-shell/11/debian-11/prebuildfs/usr/sbin/install_packages b/bitnami/bitnami-shell/11/debian-11/prebuildfs/usr/sbin/install_packages deleted file mode 100755 index acbc3173208c0..0000000000000 --- a/bitnami/bitnami-shell/11/debian-11/prebuildfs/usr/sbin/install_packages +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh -# Copyright VMware, Inc. -# SPDX-License-Identifier: APACHE-2.0 -set -eu - -n=0 -max=2 -export DEBIAN_FRONTEND=noninteractive - -until [ $n -gt $max ]; do - set +e - ( - apt-get update -qq && - apt-get install -y --no-install-recommends "$@" - ) - CODE=$? - set -e - if [ $CODE -eq 0 ]; then - break - fi - if [ $n -eq $max ]; then - exit $CODE - fi - echo "apt failed, retrying" - n=$(($n + 1)) -done -apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives diff --git a/bitnami/bitnami-shell/11/debian-11/tags-info.yaml b/bitnami/bitnami-shell/11/debian-11/tags-info.yaml deleted file mode 100644 index a7bb0a3ba1de2..0000000000000 --- a/bitnami/bitnami-shell/11/debian-11/tags-info.yaml +++ /dev/null @@ -1,5 +0,0 @@ -rolling-tags: -- "11" -- "11" -- 11-debian-11 -- latest diff --git a/bitnami/bitnami-shell/README.md b/bitnami/bitnami-shell/README.md deleted file mode 100644 index 964e481f1a941..0000000000000 --- a/bitnami/bitnami-shell/README.md +++ /dev/null @@ -1,89 +0,0 @@ -# Bitnami Shell packaged by Bitnami - -## What is Bitnami Shell? - -> Bitnami Shell is a general-purpose image based on minideb. It is a minimal image well-suited to helper tasks, such as running initialization tasks in initContainers from Helm charts. - -[Overview of Bitnami Shell](https://bitnami.com) -Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement. - -## TL;DR - -```console -docker run --name bitnami-shell bitnami/bitnami-shell:latest -``` - -## Why use Bitnami Images? - -* Bitnami closely tracks upstream source changes and promptly publishes new versions of this image using our automated systems. -* With Bitnami images the latest bug fixes and features are available as soon as possible. -* Bitnami containers, virtual machines and cloud images use the same components and configuration approach - making it easy to switch between formats based on your project needs. -* All our images are based on [minideb](https://github.com/bitnami/minideb) a minimalist Debian based container image which gives you a small base container image and the familiarity of a leading Linux distribution. -* All Bitnami images available in Docker Hub are signed with [Docker Content Trust (DCT)](https://docs.docker.com/engine/security/trust/content_trust/). You can use `DOCKER_CONTENT_TRUST=1` to verify the integrity of the images. -* Bitnami container images are released on a regular basis with the latest distribution packages available. - -Looking to use Bitnami Shell in production? Try [VMware Application Catalog](https://bitnami.com/enterprise), the enterprise edition of Bitnami Application Catalog. - -## Supported tags and respective `Dockerfile` links - -Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/). - -You can see the equivalence between the different tags by taking a look at the `tags-info.yaml` file present in the branch folder, i.e `bitnami/ASSET/BRANCH/DISTRO/tags-info.yaml`. - -Subscribe to project updates by watching the [bitnami/containers GitHub repo](https://github.com/bitnami/containers). - -## Get this image - -The recommended way to get the Bitnami bitnami-shell Docker Image is to pull the prebuilt image from the [Docker Hub Registry](https://hub.docker.com/r/bitnami/bitnami-shell). - -```console -docker pull bitnami/bitnami-shell:latest -``` - -To use a specific version, you can pull a versioned tag. You can view the [list of available versions](https://hub.docker.com/r/bitnami/bitnami-shell/tags/) in the Docker Hub Registry. - -```console -docker pull bitnami/bitnami-shell:[TAG] -``` - -If you wish, you can also build the image yourself by cloning the repository, changing to the directory containing the Dockerfile and executing the `docker build` command. Remember to replace the `APP`, `VERSION` and `OPERATING-SYSTEM` path placeholders in the example command below with the correct values. - -```console -git clone https://github.com/bitnami/containers.git -cd bitnami/APP/VERSION/OPERATING-SYSTEM -docker build -t bitnami/APP:latest . -``` - -## Configuration - -### Running commands - -To run commands inside this container you can use `docker run`, for example to execute `echo Hello world` you can follow the example below: - -```console -docker run --rm --name bitnami-shell bitnami/bitnami-shell:latest echo hello world -``` - -## Contributing - -We'd love for you to contribute to this container. You can request new features by creating an [issue](https://github.com/bitnami/containers/issues) or submitting a [pull request](https://github.com/bitnami/containers/pulls) with your contribution. - -## Issues - -If you encountered a problem running this container, you can file an [issue](https://github.com/bitnami/containers/issues/new/choose). For us to provide better support, be sure to fill the issue template. - -## License - -Copyright © 2023 VMware, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. diff --git a/bitnami/bitnami-shell/docker-compose.yml b/bitnami/bitnami-shell/docker-compose.yml deleted file mode 100644 index fb9db599f513f..0000000000000 --- a/bitnami/bitnami-shell/docker-compose.yml +++ /dev/null @@ -1,7 +0,0 @@ -# Copyright VMware, Inc. -# SPDX-License-Identifier: APACHE-2.0 - -version: '2' -services: - bitnami-shell: - image: docker.io/bitnami/bitnami-shell:11