#!/bin/bash # # Copyright (c) 2019-2023 Red Hat, Inc. # This program and the accompanying materials are made # available under the terms of the Eclipse Public License 2.0 # which is available at https://www.eclipse.org/legal/epl-2.0/ # # SPDX-License-Identifier: EPL-2.0 # # Contributors: # Red Hat, Inc. - initial API and implementation # # git ROOT directory used to mount filesystem GIT_ROOT_DIRECTORY=$(git rev-parse --show-toplevel) # Container image IMAGE_NAME="eclipse/che-operator-dev" init() { BLUE='\033[1;34m' GREEN='\033[0;32m' RED='\033[0;31m' NC='\033[0m' BOLD='\033[1m' } # Build image build() { printf "%bBuilding image %b${IMAGE_NAME}${NC}..." "${BOLD}" "${BLUE}" if docker build -t ${IMAGE_NAME} > docker-build-log 2>&1 -<