Skip to content
Snippets Groups Projects
Commit 19318667 authored by Steven Dake's avatar Steven Dake
Browse files

Move scripts for glance to docker_templates

Change-Id: I6272caf3939a2e13a4599239d85020205ff7d9e3
Partially-Implements: blueprint remove-docker-dir
parent dc286968
No related branches found
No related tags found
No related merge requests found
Showing
with 106 additions and 61 deletions
#!/bin/bash
SOURCE="/opt/kolla/glance-api/glance-api.conf"
TARGET="/etc/glance/glance-api.conf"
OWNER="glance"
if [[ -f "$SOURCE" ]]; then
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi
#!/bin/bash
set -o errexit
CMD="/usr/bin/glance-api"
ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
# Execute config strategy
set_configs
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
su -s /bin/sh -c "glance-manage db_sync" glance
exit 0
fi
exec $CMD $ARGS
#!/bin/bash
SOURCE="/opt/kolla/glance-registry/glance-registry.conf"
TARGET="/etc/glance/glance-registry.conf"
OWNER="glance"
if [[ -f "$SOURCE" ]]; then
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi
#!/bin/bash
set -o errexit
CMD="/usr/bin/glance-registry"
ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
# Execute config strategy
set_configs
exec $CMD $ARGS
../../../docker/common/glance/glance-api/config-external.sh
\ No newline at end of file
#!/bin/bash
SOURCE="/opt/kolla/glance-api/glance-api.conf"
TARGET="/etc/glance/glance-api.conf"
OWNER="glance"
if [[ -f "$SOURCE" ]]; then
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi
../../../docker/common/glance/glance-api/start.sh
\ No newline at end of file
#!/bin/bash
set -o errexit
CMD="/usr/bin/glance-api"
ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
# Execute config strategy
set_configs
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
su -s /bin/sh -c "glance-manage db_sync" glance
exit 0
fi
exec $CMD $ARGS
../../../docker/common/glance/glance-registry/config-external.sh
\ No newline at end of file
#!/bin/bash
SOURCE="/opt/kolla/glance-registry/glance-registry.conf"
TARGET="/etc/glance/glance-registry.conf"
OWNER="glance"
if [[ -f "$SOURCE" ]]; then
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi
../../../docker/common/glance/glance-registry/start.sh
\ No newline at end of file
#!/bin/bash
set -o errexit
CMD="/usr/bin/glance-registry"
ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
# Execute config strategy
set_configs
exec $CMD $ARGS
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment