Skip to content
Snippets Groups Projects
Commit 3cb6d8bd authored by Marc-Olivier Andrez's avatar Marc-Olivier Andrez
Browse files

Merge branch 'make-deploy-script-callable-from-different-directories' into 'develop'

build: enable calling `deploy/build_env/services-linux/run_asapo.sh` from different directories

See merge request asapo/asapo!228
parents 9ba8810a 27d3ecd5
No related branches found
No related tags found
No related merge requests found
cp build/authorizer/asapo-authorizer /asapo-authorizer
cp build/discovery/asapo-discovery /asapo-discovery
cp build/broker/asapo-broker /asapo-broker
cp build/file_transfer/asapo-file-transfer /asapo-file-transfer
cp build/receiver/receiver /receiver
cp build/monitoring/monitoring_server/asapo-monitoring-server /asapo-monitoring-server
cp deploy/asapo_services_light/*json /
cp deploy/asapo_services_light/envoy.yaml /
#!/bin/bash
# Usage:
# bash run_asapo.sh [source_build_dir]
#
# Arguments:
# source_build_dir directory that contains the binaries to deploy.
# The default value is $project_project_root_dir/build where
# $project_project_root_dir is the root directory of the ASAPO project.
# Calculate the path of `project_root_dir` from the current script directory.
project_root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && git rev-parse --show-toplevel)"
# The value of `source_build_dir` is either "$1" or "$project_root_dir/build"
# if no argument is provided to the script.
source_build_dir="${1:-$project_root_dir/build}"
cp "$source_build_dir"/authorizer/asapo-authorizer /asapo-authorizer
cp "$source_build_dir"/discovery/asapo-discovery /asapo-discovery
cp "$source_build_dir"/broker/asapo-broker /asapo-broker
cp "$source_build_dir"/file_transfer/asapo-file-transfer /asapo-file-transfer
cp "$source_build_dir"/receiver/receiver /receiver
cp "$source_build_dir"/monitoring/monitoring_server/asapo-monitoring-server /asapo-monitoring-server
cp "$project_root_dir"/deploy/asapo_services_light/*json /
cp "$project_root_dir"/deploy/asapo_services_light/envoy.yaml /
# Several receiver configs (tcp and fabric) are required for tests
cp deploy/asapo_services_light/receiver.json /receiver_tcp.json
cp deploy/build_env/services-linux/receiver_fabric.json /
cp deploy/build_env/services-linux/receiver_kafka.json /
cp "$project_root_dir"/deploy/asapo_services_light/receiver.json /receiver_tcp.json
cp "$project_root_dir"/deploy/build_env/services-linux/receiver_fabric.json /
cp "$project_root_dir"/deploy/build_env/services-linux/receiver_kafka.json /
cp deploy/build_env/services-linux/discovery.json /
cp deploy/build_env/services-linux/*key /
cp deploy/build_env/services-linux/supervisord.conf /etc/
cp "$project_root_dir"/deploy/build_env/services-linux/discovery.json /
cp "$project_root_dir"/deploy/build_env/services-linux/*key /
cp "$project_root_dir"/deploy/build_env/services-linux/supervisord.conf /etc/
cp build/deploy/asapo_services_light/nginx.conf /etc/nginx/nginx.conf
cp "$source_build_dir"/deploy/asapo_services_light/nginx.conf /etc/nginx/nginx.conf
service slapd start
ldapadd -x -D "ou=rgy,o=desy,c=de" -f /etc/ldap/record.ldif -h localhost
......@@ -26,4 +41,3 @@ ldapadd -x -D "ou=rgy,o=desy,c=de" -f /etc/ldap/record.ldif -h localhost
cd / && supervisord --configuration /etc/supervisord.conf &
sleep 20
cd -
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