Files
hawkbit/hawkbit-runtime/docker/generator/generate.sh
Dominic Schabel 1693cd2a81 Key for mysql image added
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2019-04-03 11:27:27 +02:00

28 lines
1.0 KiB
Bash

#!/bin/bash
set -euxo pipefail
#
# Copyright (c) 2018 Bosch Software Innovations GmbH and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
HAWKBIT_VERSION="0.3.0M2"
MARIADB_DRIVER_VERSION="2.3.0"
BASE_IMAGE="openjdk:8u201-jre-alpine"
##################################################
mkdir -p "../$HAWKBIT_VERSION" && mkdir -p "../$HAWKBIT_VERSION-mysql"
cp ./template/KEY "../$HAWKBIT_VERSION/KEY"
cp ./template/KEY-mysql "../$HAWKBIT_VERSION-mysql/KEY"
cp ./template/Dockerfile "../$HAWKBIT_VERSION/Dockerfile"
cp ./template/Dockerfile-mysql "../$HAWKBIT_VERSION-mysql/Dockerfile"
sed -i '' -e "s/{{BASE_IMAGE}}/${BASE_IMAGE}/g; s/{{HAWKBIT_VERSION}}/$HAWKBIT_VERSION/g" "../$HAWKBIT_VERSION/Dockerfile"
sed -i '' -e "s/{{HAWKBIT_VERSION}}/$HAWKBIT_VERSION/g; s/{{MARIADB_DRIVER_VERSION}}/$MARIADB_DRIVER_VERSION/g" "../$HAWKBIT_VERSION-mysql/Dockerfile"