mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Azure: Add Rawhide definitions
- allow override variables template file with an externally provided one. This allows to add new Azure Pipeline which will point to a custom platform definition. Note: Azure's WebUI variables are runtime variables and not available at parsing time, that's why it's impossible to override template from WebUI in this case. - add Rawhide templates - add Dockerfile for build Rawhie Docker image for tests phase Note: 'fedora:rawhide' is too old, use for now 'registry.fedoraproject.org/fedora:rawhide'. See, https://bugzilla.redhat.com/show_bug.cgi?id=1869612 Signed-off-by: Stanislav Levin <slev@altlinux.org> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
committed by
Alexander Bokovoy
parent
ab6811a131
commit
5d13ef9bfe
31
ipatests/azure/Dockerfiles/Dockerfile.build.rawhide
Normal file
31
ipatests/azure/Dockerfiles/Dockerfile.build.rawhide
Normal file
@@ -0,0 +1,31 @@
|
||||
# replace with 'fedora:rawhide' on fix:
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1869612
|
||||
FROM registry.fedoraproject.org/fedora:rawhide
|
||||
MAINTAINER [FreeIPA Developers freeipa-devel@lists.fedorahosted.org]
|
||||
ENV container=docker LANG=en_US.utf8 LANGUAGE=en_US.utf8 LC_ALL=en_US.utf8
|
||||
|
||||
ADD dist /root
|
||||
RUN echo 'deltarpm = false' >> /etc/dnf/dnf.conf \
|
||||
&& dnf update -y dnf \
|
||||
&& sed -i 's/%_install_langs \(.*\)/\0:fr/g' /etc/rpm/macros.image-language-conf \
|
||||
&& dnf install -y systemd \
|
||||
&& dnf install -y \
|
||||
firewalld \
|
||||
glibc-langpack-fr \
|
||||
glibc-langpack-en \
|
||||
iptables \
|
||||
nss-tools \
|
||||
openssh-server \
|
||||
sudo \
|
||||
wget \
|
||||
/root/rpms/*.rpm \
|
||||
&& dnf clean all && rm -rf /root/rpms /root/srpms \
|
||||
&& sed -i 's/.*PermitRootLogin .*/#&/g' /etc/ssh/sshd_config \
|
||||
&& echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config \
|
||||
&& systemctl enable sshd \
|
||||
&& for i in /usr/lib/systemd/system/*-domainname.service; \
|
||||
do sed -i 's#^ExecStart=/#ExecStart=-/#' $i ; done
|
||||
|
||||
STOPSIGNAL RTMIN+3
|
||||
VOLUME ["/freeipa", "/run", "/tmp"]
|
||||
ENTRYPOINT [ "/usr/sbin/init" ]
|
||||
4
ipatests/azure/azure-pipelines-rawhide.yml
Normal file
4
ipatests/azure/azure-pipelines-rawhide.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
extends:
|
||||
template: azure-pipelines.yml
|
||||
parameters:
|
||||
VARIABLES_FILE: 'templates/variables-rawhide.yml'
|
||||
@@ -1,10 +1,14 @@
|
||||
parameters:
|
||||
- name: VARIABLES_FILE
|
||||
default: 'templates/variables.yml'
|
||||
|
||||
trigger:
|
||||
- master
|
||||
|
||||
variables:
|
||||
- template: templates/variables-common.yml
|
||||
# platform specific variables, links to
|
||||
- template: templates/variables.yml
|
||||
- template: ${{ parameters.VARIABLES_FILE }}
|
||||
|
||||
jobs:
|
||||
- job: Build
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
steps:
|
||||
- script: |
|
||||
set -e
|
||||
sudo dnf -y install nss-tools
|
||||
sudo dnf -y install nss-tools python3-pip
|
||||
python3 -m pip install --user --upgrade pip setuptools pycodestyle
|
||||
displayName: Install Tox prerequisites
|
||||
|
||||
23
ipatests/azure/templates/variables-rawhide.yml
Normal file
23
ipatests/azure/templates/variables-rawhide.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
variables:
|
||||
IPA_PLATFORM: fedora
|
||||
# the Docker public image to build IPA packages (rpms)
|
||||
#
|
||||
# replace with 'fedora:rawhide' on fix:
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1869612
|
||||
DOCKER_BUILD_IMAGE: 'registry.fedoraproject.org/fedora:rawhide'
|
||||
|
||||
# the Dockerfile to build Docker image for running IPA tests
|
||||
DOCKER_DOCKERFILE: 'Dockerfile.build.rawhide'
|
||||
|
||||
# the template to install IPA's buildtime dependencies
|
||||
PREPARE_BUILD_TEMPLATE: ${{ format('prepare-build-{0}.yml', variables.IPA_PLATFORM) }}
|
||||
|
||||
# the template to build IPA packages (rpms)
|
||||
BUILD_TEMPLATE: ${{ format('build-{0}.yml', variables.IPA_PLATFORM) }}
|
||||
PREPARE_TOX_TEMPLATE: ${{ format('prepare-tox-{0}.yml', variables.IPA_PLATFORM) }}
|
||||
PREPARE_WEBUI_TEMPLATE: ${{ format('prepare-webui-{0}.yml', variables.IPA_PLATFORM) }}
|
||||
|
||||
TOX_COMMAND: tox
|
||||
|
||||
# Python version for UsePythonVersion@0 task
|
||||
AZURE_PYTHON_VERSION: '3.9'
|
||||
Reference in New Issue
Block a user