mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 11:46:43 +01:00
484abd6213
1. Update ubuntu version to 20.04 2. Update containerd version to 1.6.9 3. Update docker-compose version to 2.12.2 4. Update helm version to 3.10.1 5. Update ORAS version to 0.16.0 6. Update CNAB version to 0.3.7 7. Update imgpkg version to 0.33.0 8. Update cosign version to 1.13.1 9. Remove singularity Signed-off-by: Yang Jiao <jiaoya@vmware.com>
33 lines
591 B
Bash
33 lines
591 B
Bash
#!/bin/bash
|
|
set -x
|
|
set -e
|
|
|
|
IMAGE_FOR=$1
|
|
VERSION=$2
|
|
|
|
CMD_BASE="cat Dockerfile.common"
|
|
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 .
|
|
|