freeipa/ipatests/azure/templates/setup-test-environment.yml

27 lines
1.0 KiB
YAML
Raw Normal View History

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
- task: DownloadPipelineArtifact@0
displayName: Download prebuilt packages
inputs:
artifactName: 'packages-$(Build.BuildId)-$(Agent.OS)-$(Agent.OSArchitecture)'
targetPath: $(Agent.BuildDirectory)/s/dist
- task: DownloadPipelineArtifact@0
displayName: Download pre-built container
inputs:
artifactName: 'image-$(Build.BuildId)-$(Agent.OS)-$(Agent.OSArchitecture)'
targetPath: $(Agent.BuildDirectory)/s
- script: |
set -e
docker load --input $(Agent.BuildDirectory)/s/freeipa-fedora-builder-container.tar.gz
docker images
docker inspect freeipa-fedora-builder:latest
displayName: Import pre-built container to the engine