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 /
# Two 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 build/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

cd / && supervisord --configuration /etc/supervisord.conf &
sleep 10
cd -

