che-server/dockerfiles/postgres/build.sh

19 lines
500 B
Bash
Executable File

#!/bin/sh
# Copyright (c) 2018 Red Hat, Inc.
# 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
base_dir=$(cd "$(dirname "$0")"; pwd)
. "${base_dir}"/../build.include
# copy user and realm json templates
cp -r ../init/modules/postgres/templates/* .
init --name:postgres "$@"
build
# remove jsons
rm *.erb