freeipa/ipatests/azure/templates/setup-test-environment.yml
Stanislav Levin 908e8cf338 Azure: Template docs build
The distros may use different sphinx builder paths,
for example, by exporting of SPHINXBUILD env var.

Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2021-03-30 09:58:42 +02:00

38 lines
1.2 KiB
YAML

parameters:
imageName: 'freeipa-azure-builder:latest'
steps:
- script: |
set -e
echo '{ "ipv6": true, "fixed-cidr-v6": "2001:db8::/64" }' > docker-daemon.json
sudo mkdir -p /etc/docker
sudo cp docker-daemon.json /etc/docker/daemon.json
sudo chown root:root /etc/docker/daemon.json
sudo systemctl restart docker
sudo modprobe ip6_tables
displayName: Configure containerization to allow IPv6 network
- script: |
set -e
sudo modprobe {nfs,nfsd}
displayName: Configure NFS to allow NFS server/client within containers
- task: DownloadPipelineArtifact@0
displayName: Download prebuilt packages '$(IPA_PACKAGES_ARTIFACT)'
inputs:
artifactName: $(IPA_PACKAGES_ARTIFACT)
targetPath: $(Build.Repository.LocalPath)/dist
- task: DownloadPipelineArtifact@0
displayName: Download pre-built container '$(IPA_IMAGE_ARTIFACT)'
inputs:
artifactName: $(IPA_IMAGE_ARTIFACT)
targetPath: $(Build.Repository.LocalPath)
- script: |
set -e
docker load --input $(Build.Repository.LocalPath)/freeipa-azure-builder-container.tar.gz
docker images
docker inspect freeipa-azure-builder:latest
displayName: Import pre-built container to the engine