summaryrefslogtreecommitdiff
path: root/contrib/cirrus/setup_container_environment.sh
blob: 23df4fe8bbad1ea3234cdf8faa8386ca3a195d16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
set -e

source $(dirname $0)/lib.sh

req_env_var "
GOSRC $GOSRC
OS_RELEASE_ID $OS_RELEASE_ID
CONTAINER_RUNTIME $CONTAINER_RUNTIME
"

DIST=$OS_RELEASE_ID
IMAGE=${DIST}podmanbuild

# Since CRIU 3.11 has been pushed to Fedora 28 the checkpoint/restore
# test cases are actually run. As CRIU uses iptables to lock and unlock
# the network during checkpoint and restore it needs the following two
# modules loaded.
modprobe ip6table_nat || :
modprobe iptable_nat || :

# Build the test image
${CONTAINER_RUNTIME} build -t ${IMAGE} -f Dockerfile.${DIST} .