-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/portus-2.5-fix' into develop
Purpose of this Release : Sharing a finally successfully built `portus:2.5` container, workingon SUSE/Portus#2241
- Loading branch information
Showing
9 changed files
with
280 additions
and
87 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,41 @@ | ||
|
||
### Release `0.0.1` : Bill Of Material | ||
|
||
_Purpose of this Release : Sharing a finally successfully built `portus:2.5` container, workingon https://github.com/SUSE/Portus/issues/2241_ | ||
|
||
Here are the released (fixed) openSUSE `Portus` OCI container images : | ||
|
||
| Image name | Component of | Notes | | ||
|------------------------ |----------------- |------------------ | | ||
| `opensuzie/portus:2.5` | `portus` | `OpenSUSE` Team publishes that with generic mame `opensuse/portus:2.5` | | ||
|
||
This release is therefore tagged `portus-2.5` | ||
|
||
Tag marking the exact version from which the `0.0.1` relase of `opensuzie/portus:2.5` : https://gitlab.com/pokus-io/opensuse/docker-containers/-/tags/DEVOPS_PORTUS_2.5_REPAIRMAN | ||
|
||
|
||
## How to use | ||
|
||
### Building a `portus` image | ||
|
||
This image is used torun both the main `portus` server, and its `background` companion. | ||
|
||
To build a release of that container, execute the following : | ||
|
||
|
||
```bash | ||
export SUZIE_OCI_LIBRARY_RELEASE=0.0.1 | ||
export SUZIE_OCI_LIBRARY_GIT_URI=git@github.com:pokusio/opensuzie-oci-library.git | ||
export SUZIE_OCI_LIBRARY_GIT_URI="https://github.com/pokusio/opensuzie-oci-library.git" | ||
export WORK_FOLDER=$(mktemp -d /tmp/suzie.oci.library.XXXXXXXX) | ||
# define image tag | ||
export PORTUS_RELEASE_TAG=${PORTUS_RELEASE_TAG:-'opensuzie/portus:2.5'} | ||
|
||
git clone $SUZIE_OCI_LIBRARY_GIT_URI $WORK_FOLDER | ||
cd $WORK_FOLDER | ||
git checkout $SUZIE_OCI_LIBRARY_RELEASE | ||
|
||
docker build library/portus -t $PORTUS_RELEASE_TAG | ||
|
||
|
||
``` |
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
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,43 @@ | ||
FROM opensuse/leap:15.1 | ||
MAINTAINER SUSE Containers Team <containers@suse.com> | ||
|
||
# Install the entrypoint of this image. | ||
COPY init / | ||
|
||
# Install Portus and prepare the /certificates directory. | ||
RUN chmod +x /init && \ | ||
# Fetch the key from the obs://Virtualization:containers:Portus | ||
# project. Sometimes the key server times out or has some other problem. In | ||
# that case, we fall back to alternative key servers. | ||
TMPDIR=/tmp/build && \ | ||
mkdir -m 0600 $TMPDIR && \ | ||
for key in 55A0B34D49501BB7CA474F5AA193FBB572174FC2 \ | ||
A9EA39C49B6B9E93B6863F849AF0C9A20E9AF123; do \ | ||
found=''; \ | ||
for server in \ | ||
hkp://keys.gnupg.net:80 \ | ||
ha.pool.sks-keyservers.net \ | ||
hkp://keyserver.ubuntu.com:80 \ | ||
hkp://p80.pool.sks-keyservers.net:80 \ | ||
pgp.mit.edu \ | ||
; do \ | ||
echo "Fetching GPG key $GPG_KEY from $server"; \ | ||
gpg --homedir $TMPDIR --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$key" && found=yes && break; \ | ||
done; \ | ||
test -z "$found" && echo >&2 "error: failed to fetch GPG key $key" && exit 1; \ | ||
gpg --homedir $TMPDIR --export --armor $key > $TMPDIR/repo.key && \ | ||
rpm --import $TMPDIR/repo.key ; \ | ||
done; \ | ||
rm -rf $TMPDIR && \ | ||
# Now add the repository and install portus. | ||
zypper ar -f obs://devel:languages:ruby/openSUSE_Leap_15.1 ruby && \ | ||
zypper ar -p 1 -f obs://Virtualization:containers:Portus/openSUSE_Leap_15.1 portus && \ | ||
zypper ref -f && \ | ||
zypper -n in --from portus --details ruby-common portus && \ | ||
zypper clean -a && \ | ||
# Prepare the certificates directory. | ||
rm -rf /etc/pki/trust/anchors && \ | ||
ln -sf /certificates /etc/pki/trust/anchors | ||
|
||
EXPOSE 3000 | ||
ENTRYPOINT ["/init"] |
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,43 @@ | ||
FROM opensuse/leap:15.0 | ||
MAINTAINER SUSE Containers Team <containers@suse.com> | ||
|
||
# Install the entrypoint of this image. | ||
COPY init / | ||
|
||
# Install Portus and prepare the /certificates directory. | ||
RUN chmod +x /init && \ | ||
# Fetch the key from the obs://Virtualization:containers:Portus | ||
# project. Sometimes the key server times out or has some other problem. In | ||
# that case, we fall back to alternative key servers. | ||
TMPDIR=/tmp/build && \ | ||
mkdir -m 0600 $TMPDIR && \ | ||
for key in 55A0B34D49501BB7CA474F5AA193FBB572174FC2 \ | ||
A9EA39C49B6B9E93B6863F849AF0C9A20E9AF123; do \ | ||
found=''; \ | ||
for server in \ | ||
hkp://keys.gnupg.net:80 \ | ||
ha.pool.sks-keyservers.net \ | ||
hkp://keyserver.ubuntu.com:80 \ | ||
hkp://p80.pool.sks-keyservers.net:80 \ | ||
pgp.mit.edu \ | ||
; do \ | ||
echo "Fetching GPG key $GPG_KEY from $server"; \ | ||
gpg --homedir $TMPDIR --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$key" && found=yes && break; \ | ||
done; \ | ||
test -z "$found" && echo >&2 "error: failed to fetch GPG key $key" && exit 1; \ | ||
gpg --homedir $TMPDIR --export --armor $key > $TMPDIR/repo.key && \ | ||
rpm --import $TMPDIR/repo.key ; \ | ||
done; \ | ||
rm -rf $TMPDIR && \ | ||
# Now add the repository and install portus. | ||
zypper ar -f obs://devel:languages:ruby/openSUSE_Leap_15.0 ruby && \ | ||
zypper ar -p 1 -f obs://Virtualization:containers:Portus/openSUSE_Leap_15.0 portus && \ | ||
zypper ref -f && \ | ||
zypper -n in --from portus --details ruby-common portus && \ | ||
zypper clean -a && \ | ||
# Prepare the certificates directory. | ||
rm -rf /etc/pki/trust/anchors && \ | ||
ln -sf /certificates /etc/pki/trust/anchors | ||
|
||
EXPOSE 3000 | ||
ENTRYPOINT ["/init"] |
Empty file.
Oops, something went wrong.