-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
SUSE Update Bot
committed
Dec 4, 2024
1 parent
6db7512
commit ae89a02
Showing
6 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
# Copyright (c) 2024 SUSE LLC | ||
|
||
# All modifications and additions to the file contributed by third parties | ||
# remain the property of their copyright owners, unless otherwise agreed | ||
# upon. | ||
|
||
# The content of THIS FILE IS AUTOGENERATED and should not be manually modified. | ||
# It is maintained by the BCI team and generated by | ||
# https://github.com/SUSE/BCI-dockerfile-generator | ||
|
||
# Please submit bugfixes or comments via https://bugs.opensuse.org/ | ||
# You can contact the BCI team via https://github.com/SUSE/bci/discussions | ||
|
||
#!UseOBSRepositories | ||
|
||
#!BuildTag: opensuse/stunnel:%%stunnel_re%%-%RELEASE% | ||
#!BuildTag: opensuse/stunnel:%%stunnel_re%% | ||
#!BuildTag: opensuse/stunnel:5 | ||
#!BuildTag: opensuse/stunnel:latest | ||
|
||
FROM opensuse/bci/bci-micro:latest AS target | ||
FROM opensuse/tumbleweed:latest AS builder | ||
COPY --from=target / /target | ||
|
||
RUN set -euo pipefail; \ | ||
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends stunnel; \ | ||
zypper -n clean; \ | ||
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2} | ||
# sanity check that the version from the tag is equal to the version of stunnel that we expect | ||
RUN set -euo pipefail; \ | ||
[ "$(rpm --root /target -q --qf '%{version}' stunnel | \ | ||
cut -d '.' -f -1)" = "5" ] | ||
FROM opensuse/bci/bci-micro:latest | ||
COPY --from=builder /target / | ||
# Define labels according to https://en.opensuse.org/Building_derived_containers | ||
# labelprefix=org.opensuse.application.stunnel | ||
LABEL org.opencontainers.image.title="openSUSE Tumbleweed Stunnel" | ||
LABEL org.opencontainers.image.description="Stunnel container based on the openSUSE Tumbleweed Base Container Image." | ||
LABEL org.opencontainers.image.version="%%stunnel_re%%" | ||
LABEL org.opencontainers.image.url="https://www.opensuse.org" | ||
LABEL org.opencontainers.image.created="%BUILDTIME%" | ||
LABEL org.opencontainers.image.vendor="openSUSE Project" | ||
LABEL org.opencontainers.image.source="%SOURCEURL%" | ||
LABEL org.opencontainers.image.ref.name="%%stunnel_re%%-%RELEASE%" | ||
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/stunnel:%%stunnel_re%%-%RELEASE%" | ||
LABEL org.openbuildservice.disturl="%DISTURL%" | ||
LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime#openSUSE_BCI" | ||
LABEL org.opensuse.release-stage="released" | ||
# endlabelprefix | ||
LABEL io.artifacthub.package.readme-url="https://raw.githubusercontent.com/SUSE/BCI-dockerfile-generator/Tumbleweed/stunnel-image/README.md" | ||
COPY entrypoint.sh /usr/local/bin/ | ||
RUN set -euo pipefail; chmod 0755 /usr/local/bin/entrypoint.sh; chown --recursive stunnel /etc/stunnel | ||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] | ||
CMD ["/usr/sbin/stunnel"] | ||
USER stunnel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Stunnel Container Image | ||
|
||
![Redistributable](https://img.shields.io/badge/Redistributable-Yes-green) | ||
|
||
|
||
## Description | ||
|
||
Stunnel is an open-source multi-platform application used to provide a universal | ||
TLS/SSL tunneling service. | ||
|
||
|
||
## How to use this Image | ||
|
||
|
||
## Licensing | ||
|
||
`SPDX-License-Identifier: MIT` | ||
|
||
This documentation and the build recipe are licensed as MIT. | ||
The container itself contains various software components under various open source licenses listed in the associated | ||
Software Bill of Materials (SBOM). | ||
|
||
This image is based on [openSUSE Tumbleweed](https://get.opensuse.org/tumbleweed/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<services> | ||
<service mode="buildtime" name="docker_label_helper"/> | ||
<service mode="buildtime" name="kiwi_metainfo_helper"/> | ||
<service mode="buildtime" name="replace_using_package_version"> | ||
<param name="file">Dockerfile</param> | ||
<param name="regex">%%stunnel_re%%</param> | ||
<param name="package">stunnel</param> | ||
</service> | ||
</services> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
STUNNEL_CERT="${STUNNEL_CERT:-/etc/stunnel/stunnel.pem}" | ||
STUNNEL_KEY="${STUNNEL_KEY:-/etc/stunnel/stunnel.key}" | ||
|
||
conf="/etc/stunnel/conf.d/container-ssl.conf" | ||
echo "cert = ${STUNNEL_CERT}" > $conf | ||
echo "key = ${STUNNEL_KEY}" >> $conf | ||
|
||
|
||
if [[ -n "${STUNNEL_SERVICE_NAME}" ]] && [[ -n "${STUNNEL_ACCEPT}" ]] && [[ -n "${STUNNEL_CONNECT}" ]]; then | ||
conf="/etc/stunnel/conf.d/container.conf" | ||
echo "[${STUNNEL_SERVICE_NAME}]" > $conf | ||
echo "accept = ${STUNNEL_ACCEPT}" >> $conf | ||
echo "connect = ${STUNNEL_CONNECT}" >> $conf | ||
fi | ||
|
||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
------------------------------------------------------------------- | ||
Wed Dec 04 15:22:58 UTC 2024 - SUSE Update Bot <[email protected]> | ||
|
||
- First version of the Stunnel 5 BCI |