7816e69e38
* Building the OLM bundle * kustomize the main CRD for the OLM bundle * minor fixes
15 lines
468 B
Bash
Executable file
15 lines
468 B
Bash
Executable file
#! /bin/bash
|
|
set -euxo pipefail
|
|
|
|
VERSION="${1:-latest}"
|
|
KEYCLOAK_IMAGE="${2:-quay.io/keycloak/keycloak}"
|
|
KEYCLOAK_CUSTOM_IMAGE="${3:-quay.io/keycloak/custom-keycloak}"
|
|
|
|
echo "Using version: $VERSION"
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
|
docker build -f ${SCRIPT_DIR}/Dockerfile-custom-image \
|
|
--build-arg IMAGE=${KEYCLOAK_IMAGE} \
|
|
--build-arg VERSION=${VERSION} \
|
|
-t ${KEYCLOAK_CUSTOM_IMAGE}:${VERSION} ${SCRIPT_DIR}
|