3 # ============LICENSE_START====================================================
5 # ===========================================================================
6 # Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
7 # ===========================================================================
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
12 # http://www.apache.org/licenses/LICENSE-2.0
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 # ============LICENSE_END====================================================
24 DOCKER=${DOCKER:=docker}
25 # if something, may not want CASS attached all the tim
26 #LINKS="--link $CASSANDRA_DOCKER"
29 if [ -n "${DUSER}" ]; then
30 USER_LINE="--user ${DUSER}"
34 -v "aaf_config:$CONF_ROOT_DIR" \
35 -v "aaf_status:/opt/app/aaf/status" \
37 --env aaf_locator_container=docker \
38 --env aaf_locator_container_ns=${NAMESPACE} \
39 --env aaf_locator_fqdn=${HOSTNAME} \
40 --env aaf_locate_url=https://aaf-locate:8095 \
41 --env aaf_locator_public_fqdn=${HOSTNAME} \
42 --env AAF_ENV=${AAF_ENV} \
43 --env LATITUDE=${LATITUDE} \
44 --env LONGITUDE=${LONGITUDE} \
45 --env CASSANDRA_CLUSTER=${CASSANDRA_CLUSTER} \
46 --env CASSANDRA_USER=${CASSANDRA_USER} \
47 --env CASSANDRA_PASSWORD=${CASSANDRA_PASSWORD} \
48 --env CASSANDRA_PORT=${CASSANDRA_PORT} \
49 --name aaf_config_$USER \
50 $PREFIX${ORG}/${PROJECT}/aaf_config:${VERSION} \
51 bash -c "bash /opt/app/aaf_config/bin/agent.sh $PARAMS"
57 PARAMS="&& cd /opt/app/osaaf/local && exec bash"