Skip to content

Commit

Permalink
Update to Leap 15.6 where applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
okurz committed May 13, 2024
1 parent c357f5c commit d1b7633
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 26 deletions.
8 changes: 4 additions & 4 deletions .obs/workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ pr:
- target_project: devel:openQA
target_repository: openSUSE_Tumbleweed
architectures: [ x86_64 ]
- name: openSUSE_Leap_15.5
- name: openSUSE_Leap_15.6
paths:
- target_project: devel:openQA:Leap:15.5
target_repository: openSUSE_Leap_15.5
- target_project: devel:openQA:Leap:15.6
target_repository: openSUSE_Leap_15.6
- target_project: devel:openQA
target_repository: openSUSE_Leap_15.5
target_repository: openSUSE_Leap_15.6
architectures: [ x86_64 ]
- name: SLE_15_SP6_Backports
paths:
Expand Down
2 changes: 1 addition & 1 deletion container/openqa_data/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM opensuse/leap:15.5
FROM opensuse/leap:15.6
LABEL maintainer Jan Sedlak <[email protected]>, Josef Skladanka <[email protected]>, wnereiz <[email protected]>, Sergio Lindo Mansilla <[email protected]>
LABEL version="0.3"

Expand Down
8 changes: 4 additions & 4 deletions container/webui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: MIT
#!BuildTag: openqa_webui:latest opensuse/openqa-webui:latest opensuse/openqa-webui:%PKG_VERSION% opensuse/openqa-webui:%PKG_VERSION%.%RELEASE%
FROM opensuse/leap:15.5
FROM opensuse/leap:15.6

# labelprefix=org.opensuse.openqa-webui
LABEL org.opencontainers.image.title="openQA webui container"
Expand All @@ -12,13 +12,13 @@ LABEL org.opencontainers.image.created="%BUILDTIME%"
# endlabelprefix

# hadolint ignore=DL3037
RUN zypper ar -p 95 -f http://download.opensuse.org/repositories/devel:openQA/15.5 devel_openQA && \
zypper ar -p 90 -f http://download.opensuse.org/repositories/devel:openQA:Leap:15.5/15.5 devel_openQA_Leap && \
RUN zypper ar -p 95 -f http://download.opensuse.org/repositories/devel:openQA/15.6 devel_openQA && \
zypper ar -p 90 -f http://download.opensuse.org/repositories/devel:openQA:Leap:15.6/15.6 devel_openQA_Leap && \
zypper --gpg-auto-import-keys ref && \
# openQA might need rubygem:sass to compile assets in this context due to
# unknown reasons even though the package should use the precompiled
# assets from cache.tar
zypper in -y ca-certificates-mozilla curl openQA-local-db apache2 hostname which w3m 'rubygem(sass)' && \
zypper in -y ca-certificates-mozilla curl openQA-local-db apache2 apache2-utils hostname which w3m 'rubygem(sass)' && \
zypper clean && \
gensslcert && \
a2enmod headers && \
Expand Down
6 changes: 3 additions & 3 deletions container/webui/Dockerfile-lb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: MIT
#!BuildTag: openqa_webui_lb:latest opensuse/openqa-webui-lb:latest opensuse/openqa-webui-lb:%PKG_VERSION% opensuse/openqa-webui-lb:%PKG_VERSION%.%RELEASE%
FROM opensuse/leap:15.5
FROM opensuse/leap:15.6

# labelprefix=org.opensuse.openqa-webui-lb
LABEL org.opencontainers.image.title="openQA load-balancer webui container"
Expand All @@ -12,8 +12,8 @@ LABEL org.opencontainers.image.created="%BUILDTIME%"
# endlabelprefix

# hadolint ignore=DL3037
RUN zypper ar -p 95 -f http://download.opensuse.org/repositories/devel:openQA/15.5 devel_openQA && \
zypper ar -p 90 -f http://download.opensuse.org/repositories/devel:openQA:Leap:15.5/15.5 devel_openQA_Leap && \
RUN zypper ar -p 95 -f http://download.opensuse.org/repositories/devel:openQA/15.6 devel_openQA && \
zypper ar -p 90 -f http://download.opensuse.org/repositories/devel:openQA:Leap:15.6/15.6 devel_openQA_Leap && \
zypper --gpg-auto-import-keys ref && \
zypper in -y openQA nginx && \
zypper clean
Expand Down
6 changes: 3 additions & 3 deletions container/worker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: MIT
#!BuildTag: openqa_worker:latest opensuse/openqa-worker:latest opensuse/openqa-worker:%PKG_VERSION% opensuse/openqa-worker:%PKG_VERSION%.%RELEASE%
FROM opensuse/leap:15.5
FROM opensuse/leap:15.6

# labelprefix=org.opensuse.openqa-worker
LABEL org.opencontainers.image.title="openQA worker container"
Expand All @@ -12,8 +12,8 @@ LABEL org.opencontainers.image.created="%BUILDTIME%"
# endlabelprefix

# hadolint ignore=DL3037
RUN zypper ar -p 95 -f http://download.opensuse.org/repositories/devel:openQA/15.5 devel_openQA && \
zypper ar -p 90 -f http://download.opensuse.org/repositories/devel:openQA:Leap:15.5/15.5 devel_openQA_Leap && \
RUN zypper ar -p 95 -f http://download.opensuse.org/repositories/devel:openQA/15.6 devel_openQA && \
zypper ar -p 90 -f http://download.opensuse.org/repositories/devel:openQA:Leap:15.6/15.6 devel_openQA_Leap && \
zypper --gpg-auto-import-keys ref && \
zypper in -yl ca-certificates-mozilla curl gzip rsync xz && \
zypper in -yl openQA-worker os-autoinst-s390-deps os-autoinst-ipmi-deps && \
Expand Down
10 changes: 5 additions & 5 deletions docs/Installing.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ container engine:

[source,sh]
----
podman run -p 1080:80 -p 1443:443 --rm -it registry.opensuse.org/devel/openqa/containers15.5/openqa_webui:latest
podman run -p 1080:80 -p 1443:443 --rm -it registry.opensuse.org/devel/openqa/containers15.6/openqa_webui:latest
----

The worker container can be pulled and started with:

[source,sh]
----
podman run --rm -it registry.opensuse.org/devel/openqa/containers15.5/openqa_worker:latest
podman run --rm -it registry.opensuse.org/devel/openqa/containers15.6/openqa_worker:latest
----

=== Custom configuration for containers
Expand All @@ -86,7 +86,7 @@ podman run -p 1080:80 -p 1443:443 \
-v ./container/webui/test-key.pem:/etc/apache2/ssl.key/server.key:z \
-v ./container/webui/test-cert.pem:/etc/apache2/ssl.crt/ca.crt:z \
-v ./container/webui/conf/openqa.ini:/data/conf/openqa.ini:z \
--rm -it registry.opensuse.org/devel/openqa/containers15.5/openqa_webui:latest
--rm -it registry.opensuse.org/devel/openqa/containers15.6/openqa_webui:latest
----


Expand All @@ -98,7 +98,7 @@ supply `workers.ini` and `client.conf`:
podman run \
-v ./container/worker/conf/workers.ini:/data/conf/workers.ini:z \
-v ./container/worker/conf/client.conf:/data/conf/client.conf:z \
--rm -it registry.opensuse.org/devel/openqa/containers15.5/openqa_worker:latest
--rm -it registry.opensuse.org/devel/openqa/containers15.6/openqa_worker:latest
----

This examples assume the working directory is an openQA checkout. To avoid doing
Expand All @@ -118,7 +118,7 @@ commands mentioned there can also be invoked within a container, e.g.:
[source,sh]
----
podman run \
--rm -it registry.opensuse.org/devel/openqa/containers15.5/openqa_webui:latest \
--rm -it registry.opensuse.org/devel/openqa/containers15.6/openqa_webui:latest \
openqa-cli --help
----

Expand Down
4 changes: 2 additions & 2 deletions tools/ci/build_cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

set -ex

sudo zypper ar -f -p 90 https://download.opensuse.org/repositories/devel:/openQA:/Leap:/15.5/15.5 openQA
sudo zypper ar -f -p 95 http://download.opensuse.org/repositories/devel:openQA/15.5 devel
sudo zypper ar -f -p 90 https://download.opensuse.org/repositories/devel:/openQA:/Leap:/15.6/15.6 openQA
sudo zypper ar -f -p 95 http://download.opensuse.org/repositories/devel:openQA/15.6 devel
tools/retry sudo zypper --gpg-auto-import-keys ref
sudo zypper -n install --download-only $(sed -e 's/\r//' < tools/ci/ci-packages.txt)
sudo rpm -i -f $(find /var/cache/zypp/packages/ | grep '.rpm$')
Expand Down
4 changes: 2 additions & 2 deletions tools/ci/build_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ listdeps() {

listdeps > "$DEPS_BEFORE"

sudo zypper ar --priority 91 -f https://download.opensuse.org/repositories/devel:openQA/15.5 devel_openQA
sudo zypper ar --priority 90 -f https://download.opensuse.org/repositories/devel:/openQA:/Leap:/15.5/15.5 devel_openQA_Leap
sudo zypper ar --priority 91 -f https://download.opensuse.org/repositories/devel:openQA/15.6 devel_openQA
sudo zypper ar --priority 90 -f https://download.opensuse.org/repositories/devel:/openQA:/Leap:/15.6/15.6 devel_openQA_Leap
tools/retry sudo sh -c 'zypper --gpg-auto-import-keys ref && sudo zypper --no-refresh -n install openQA-devel perl-TAP-Harness-JUnit'

listdeps > "$DEPS_AFTER"
Expand Down
4 changes: 2 additions & 2 deletions tools/ci/build_local_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ cre="${cre:-"podman"}"
$cre build -t localtest -f- "$thisdir" << EOF
FROM registry.opensuse.org/devel/openqa/ci/containers/base:latest
RUN sudo zypper ar -f -p 90 https://download.opensuse.org/repositories/devel:/openQA:/Leap:/15.5/15.5 openQA
RUN sudo zypper ar -f -p 95 http://download.opensuse.org/repositories/devel:openQA/15.5 devel
RUN sudo zypper ar -f -p 90 https://download.opensuse.org/repositories/devel:/openQA:/Leap:/15.6/15.6 openQA
RUN sudo zypper ar -f -p 95 http://download.opensuse.org/repositories/devel:openQA/15.6 devel
RUN sudo zypper --gpg-auto-import-keys ref
RUN sudo zypper -n install $(sed -e 's/\r//' < "$thisdir/ci-packages.txt" | sort | tr -s '\n' ' ')
Expand Down

0 comments on commit d1b7633

Please sign in to comment.