Skip to content
Snippets Groups Projects
Commit a1ca634c authored by Michael Boniface's avatar Michael Boniface
Browse files

fixing fixtures so that it is consitent with openstack deployment

parent 855fed66
No related branches found
No related tags found
No related merge requests found
...@@ -31,12 +31,12 @@ create() { ...@@ -31,12 +31,12 @@ create() {
# copy flame clmc files into the root container # copy flame clmc files into the root container
echo "Copying files to rootfs" echo "Copying files to rootfs"
container_dir="/var/lib/lxd/containers/"${service_name}"/rootfs" container_dir="/var/lib/lxd/containers/"${service_name}"/rootfs"
container_vagrant_dir=${container_dir}"/vagrant" container_repo_root=${container_dir}"/opt/clmc"
mkdir -p ${container_vagrant_dir} mkdir -p ${container_repo_root}
cp -f ${repo_root}/reporc ${container_vagrant_dir} cp -f ${repo_root}/reporc ${container_repo_root}
cp -rf ${repo_root}/scripts ${container_vagrant_dir} cp -rf ${repo_root}/scripts ${container_repo_root}
cp -rf ${repo_root}/src ${container_vagrant_dir} cp -rf ${repo_root}/src ${container_repo_root}
chown -R 100000:100000 ${container_vagrant_dir} chown -R 100000:100000 ${container_repo_root}
# start the container # start the container
echo "Starting: ${service_name}" echo "Starting: ${service_name}"
...@@ -50,9 +50,9 @@ create() { ...@@ -50,9 +50,9 @@ create() {
# provision software into each container # provision software into each container
echo "Provisioning: ${service_name}" echo "Provisioning: ${service_name}"
if [ ${service_name} == "clmc-service" ]; then if [ ${service_name} == "clmc-service" ]; then
cmd="/vagrant/scripts/clmc-service/install.sh" cmd="/opt/clmc/scripts/clmc-service/install.sh"
echo "Provisioning command ${cmd}" echo "Provisioning command ${cmd}"
lxc exec ${service_name} --env REPO_ROOT="/vagrant" --env SFEMC_FQDN="sfemc.localhost" -- ${cmd} lxc exec ${service_name} --env REPO_ROOT="/opt/clmc" --env SFEMC_FQDN="sfemc.localhost" -- ${cmd}
exit_code=$? exit_code=$?
if [ $exit_code != 0 ]; then if [ $exit_code != 0 ]; then
echo "clmc-service installation failed with exit code ${exit_code}" echo "clmc-service installation failed with exit code ${exit_code}"
......
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