Debian Codegraph @

images/build-integration/README.md

raw symbols SCIP
1 # Overview
2
3 The container includes the integration binary for all 3 platforms plus the required resources to run it.
4
5 The container connects through ssh to the target host and copy the right binary for the platform, run integration tests and pick the results and logs back.
6
7 ## Envs
8
9 **PLATFORM**:*define target platform (windows, macos, linux).*
10 **TARGET_HOST**:*dns or ip for the target host.*
11 **TARGET_HOST_USERNAME**:*username for target host.*
12 **TARGET_HOST_KEY_PATH**:*private key for user. (Mandatory if not TARGET_HOST_PASSWORD).*
13 **TARGET_HOST_PASSWORD**:*password for user. (Mandatory if not TARGET_HOST_KEY_PATH).*
14 **PULL_SECRET_FILE_PATH** pull secret file path (local to container).*
15 **BUNDLE_LOCATION**:*(Optional). When testing crc with custom bundle set the bundle location on target server.*
16 **RESULTS_PATH**:*(Optional). Path inside container to pick results and logs from integration execution.*
17
18 ## Samples
19
20 ```bash
21 # Run integration on macos platform with ssh key and custom bundle
22 podman run --rm -it --name crc-integration \
23 -e PLATFORM=macos \
24 -e TARGET_HOST=$IP \
25 -e TARGET_HOST_USERNAME=$USER \
26 -e TARGET_HOST_KEY_PATH=/opt/crc/id_rsa \
27 -e PULL_SECRET_FILE_PATH=/opt/crc/pull-secret \
28 -e BUNDLE_LOCATION=/bundles/crc_hyperv_4.8.0-rc.3.crcbundle \
29 -v $PWD/pull-secret:/opt/crc/pull-secret:Z \
30 -v $PWD/id_rsa:/opt/crc/id_rsa:Z \
31 -v $PWD/output:/output:Z \
32 quay.io/crcont/crc-integration:v1.29.0
33
34 # Run integration on windows platform with ssh password and crc released version
35 podman run --rm -it --name crc-integration \
36 -e PLATFORM=windows \
37 -e TARGET_HOST=$IP \
38 -e TARGET_HOST_USERNAME=$USER \
39 -e TARGET_HOST_PASSWORD=$PASSWORD \
40 -e PULL_SECRET_FILE_PATH=/opt/crc/pull-secret \
41 -v $PWD/pull-secret:/opt/crc/pull-secret:Z \
42 -v $PWD/output:/output:Z \
43 quay.io/crcont/crc-integration:v1.29.0
44 ```