Files
hawkbit/hawkbit-runtime/docker/dockerfiles/generate.sh
Avgustin Marinov 042e867e5d Docker version upgraded to 17.0.9_9 (#1466)
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
2023-11-01 12:52:00 +02:00

27 lines
841 B
Bash
Executable File

#!/bin/bash
#
# Copyright (c) 2018 Bosch Software Innovations GmbH and others
#
# 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
#
set -euxo pipefail
HAWKBIT_VERSION="0.3.0M9"
MARIADB_DRIVER_VERSION="3.1.4"
BASE_IMAGE="eclipse-temurin:17.0.9_9-jre-alpine"
##################################################
#
# rm ./Dockerfile ./Dockerfile-mysql
cp ./Dockerfile.template ./Dockerfile
cp ./Dockerfile-mysql.template ./Dockerfile-mysql
sed -i '' -e "s/{{BASE_IMAGE}}/${BASE_IMAGE}/g; s/{{HAWKBIT_VERSION}}/$HAWKBIT_VERSION/g" ./Dockerfile
sed -i '' -e "s/{{HAWKBIT_VERSION}}/$HAWKBIT_VERSION/g; s/{{MARIADB_DRIVER_VERSION}}/$MARIADB_DRIVER_VERSION/g" ./Dockerfile-mysql