Skip to content

Commit

Permalink
Simplify service_port_delta with environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
okurz committed Feb 14, 2024
1 parent 8189cef commit 4e932ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions container/single-instance/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ LABEL org.opencontainers.image.created="%BUILDTIME%"
# hadolint ignore=DL3037
RUN zypper in -y openQA-single-instance openQA-bootstrap \
qemu-arm qemu-ppc qemu-x86 qemu-tools sudo iputils os-autoinst-distri-opensuse-deps && \
zypper clean -a && \
sed -i -e 's/# service_port_delta =.*$/service_port_delta = 0/' /etc/openqa/openqa.ini
zypper clean -a
EXPOSE 80 443 9526
ENV skip_suse_specifics=1
ENV skip_suse_tests=1
ENV OPENQA_SERVICE_PORT_DELTA=0

ENTRYPOINT ["/usr/share/openqa/script/openqa-bootstrap"]
HEALTHCHECK CMD curl -f http://localhost || exit 1
2 changes: 1 addition & 1 deletion lib/OpenQA/Setup.pm
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ sub read_config ($app) {
auto_clone_limit => 20,
force_result_regex => '',
parallel_children_collapsable_results => join(' ', OK_RESULTS),
service_port_delta => 2,
service_port_delta => $ENV{OPENQA_SERVICE_PORT_DELTA} // 2,
},
rate_limits => {
search => 5,
Expand Down

0 comments on commit 4e932ad

Please sign in to comment.