From 5422fcddf6fea017c9dea76531fbf5589708ec5b Mon Sep 17 00:00:00 2001 From: Alexandre Vicenzi Date: Thu, 20 Jun 2024 07:28:19 +0000 Subject: [PATCH] Test build for #1195 --- python-3.11-image/README.md | 41 +++++++++++++++++++++++++++++++++++-- python-3.12-image/README.md | 41 +++++++++++++++++++++++++++++++++++-- python-3.6-image/README.md | 41 +++++++++++++++++++++++++++++++++++-- 3 files changed, 117 insertions(+), 6 deletions(-) diff --git a/python-3.11-image/README.md b/python-3.11-image/README.md index 578994043..9dd605c3d 100644 --- a/python-3.11-image/README.md +++ b/python-3.11-image/README.md @@ -1,9 +1,46 @@ -# The SLE BCI Python 3.11 development container image +# Python 3.11 development container image + ![Redistributable](https://img.shields.io/badge/Redistributable-Yes-green) [![SLSA](https://img.shields.io/badge/SLSA_(v0.1)-Level_4-Green)](https://documentation.suse.com/sbp/server-linux/html/SBP-SLSA4/) [![Provenance: Available](https://img.shields.io/badge/Provenance-Available-Green)](https://documentation.suse.com/container/all/html/Container-guide/index.html#container-verify) -Python 3.11 development container based on the SLE Base Container Image. +## Description + +[Python](https://www.python.org/) is an interpreted, interactive, object-oriented, open-source programming language. It incorporates modules, exceptions, dynamic typing, high-level dynamic data types, and classes. It provides interfaces to many system calls, libraries, and various window systems, and it is extensible in C or C++. It is also usable as an extension language for applications that require programmable interfaces. + +## Usage + +To deploy an application, install dependencies, copy the sources, and configure the application's main script: + +```Dockerfile +FROM registry.suse.com/bci/python:3.11 + +WORKDIR /app + +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +CMD [ "python3", "./main-script.py" ] +``` + +Build and run the container image: + +```ShellSession +$ podman build -t my-python-app . +$ podman run -it --rm my-python-app +``` + +To run a single script inside a container, use the following command: + +```ShellSession +$ podman run --rm -v "$PWD":/app:Z -w /app registry.suse.com/bci/python:3.11 python3 script.py +``` + +## Additional tools + +The Python container image includes [pip](https://pip.pypa.io/), [pipx](https://pipx.pypa.io/), Python Development Headers, and Git. ## Licensing diff --git a/python-3.12-image/README.md b/python-3.12-image/README.md index 823d27965..6e1fc1019 100644 --- a/python-3.12-image/README.md +++ b/python-3.12-image/README.md @@ -1,9 +1,46 @@ -# The SLE BCI Python 3.12 development container image +# Python 3.12 development container image + ![Redistributable](https://img.shields.io/badge/Redistributable-Yes-green) [![SLSA](https://img.shields.io/badge/SLSA_(v0.1)-Level_4-Green)](https://documentation.suse.com/sbp/server-linux/html/SBP-SLSA4/) [![Provenance: Available](https://img.shields.io/badge/Provenance-Available-Green)](https://documentation.suse.com/container/all/html/Container-guide/index.html#container-verify) -Python 3.12 development container based on the SLE Base Container Image. +## Description + +[Python](https://www.python.org/) is an interpreted, interactive, object-oriented, open-source programming language. It incorporates modules, exceptions, dynamic typing, high-level dynamic data types, and classes. It provides interfaces to many system calls, libraries, and various window systems, and it is extensible in C or C++. It is also usable as an extension language for applications that require programmable interfaces. + +## Usage + +To deploy an application, install dependencies, copy the sources, and configure the application's main script: + +```Dockerfile +FROM registry.suse.com/bci/python:3.12 + +WORKDIR /app + +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +CMD [ "python3", "./main-script.py" ] +``` + +Build and run the container image: + +```ShellSession +$ podman build -t my-python-app . +$ podman run -it --rm my-python-app +``` + +To run a single script inside a container, use the following command: + +```ShellSession +$ podman run --rm -v "$PWD":/app:Z -w /app registry.suse.com/bci/python:3.12 python3 script.py +``` + +## Additional tools + +The Python container image includes [pip](https://pip.pypa.io/), Python Development Headers, and Git. ## Licensing diff --git a/python-3.6-image/README.md b/python-3.6-image/README.md index 585836a6f..f6a1b18b4 100644 --- a/python-3.6-image/README.md +++ b/python-3.6-image/README.md @@ -1,9 +1,46 @@ -# The SLE BCI Python 3.6 development container image +# Python 3.6 development container image + ![Redistributable](https://img.shields.io/badge/Redistributable-Yes-green) [![SLSA](https://img.shields.io/badge/SLSA_(v0.1)-Level_4-Green)](https://documentation.suse.com/sbp/server-linux/html/SBP-SLSA4/) [![Provenance: Available](https://img.shields.io/badge/Provenance-Available-Green)](https://documentation.suse.com/container/all/html/Container-guide/index.html#container-verify) -Python 3.6 development container based on the SLE Base Container Image. +## Description + +[Python](https://www.python.org/) is an interpreted, interactive, object-oriented, open-source programming language. It incorporates modules, exceptions, dynamic typing, high-level dynamic data types, and classes. It provides interfaces to many system calls, libraries, and various window systems, and it is extensible in C or C++. It is also usable as an extension language for applications that require programmable interfaces. + +## Usage + +To deploy an application, install dependencies, copy the sources, and configure the application's main script: + +```Dockerfile +FROM registry.suse.com/bci/python:3.6 + +WORKDIR /app + +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +CMD [ "python3", "./main-script.py" ] +``` + +Build and run the container image: + +```ShellSession +$ podman build -t my-python-app . +$ podman run -it --rm my-python-app +``` + +To run a single script inside a container, use the following command: + +```ShellSession +$ podman run --rm -v "$PWD":/app:Z -w /app registry.suse.com/bci/python:3.6 python3 script.py +``` + +## Additional tools + +The Python container image includes [pip](https://pip.pypa.io/), [wheel](https://wheel.readthedocs.io/), Python Development Headers, and Git. ## Licensing