mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 19:56:09 +01:00
1801a3cee3
1. Add manifest and CNAB replication tests; 2. Duplicate ORAS and sigularity tests from API test to nightly common tests; 3. Optimize get dns code in CI; 4. Optimize E2E dockerfile; 5. Sample image size should be cover requirement for large size like 512M. Signed-off-by: danfengliu <danfengl@vmware.com>
33 lines
590 B
Bash
Executable File
33 lines
590 B
Bash
Executable File
#!/bin/bash
|
|
set -x
|
|
set -e
|
|
|
|
IMAGE_FOR=$1
|
|
VERSION=$2
|
|
|
|
CMD_BASE="cat Dockerfile.base"
|
|
SRC_FILE=""
|
|
DST_FILE=Dockerfile
|
|
|
|
echo "Starting to prepare Dockerfile for $IMAGE_FOR ..."
|
|
if [ "$IMAGE_FOR" == "api" ]; then
|
|
SRC_FILE=Dockerfile.api_test
|
|
else
|
|
SRC_FILE=Dockerfile.ui_test
|
|
fi
|
|
|
|
if [ ! -r $SRC_FILE ]; then
|
|
echo "File $SRC_FILE does not exists at all!"
|
|
exit -1
|
|
fi
|
|
|
|
if [ -f $DST_FILE ]; then
|
|
rm $DST_FILE
|
|
fi
|
|
$CMD_BASE $SRC_FILE >> $DST_FILE
|
|
|
|
echo "Starting to build image ..."
|
|
TARGET_IMAGE=goharbor/harbor-e2e-engine:${VERSION}-${IMAGE_FOR}
|
|
docker build -t $TARGET_IMAGE .
|
|
|