Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flame-clmc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flame
flame-clmc
Commits
a1ca634c
Commit
a1ca634c
authored
6 years ago
by
Michael Boniface
Browse files
Options
Downloads
Patches
Plain Diff
fixing fixtures so that it is consitent with openstack deployment
parent
855fed66
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/test/fixture.sh
+8
-8
8 additions, 8 deletions
scripts/test/fixture.sh
with
8 additions
and
8 deletions
scripts/test/fixture.sh
+
8
−
8
View file @
a1ca634c
...
...
@@ -31,12 +31,12 @@ create() {
# copy flame clmc files into the root container
echo
"Copying files to rootfs"
container_dir
=
"/var/lib/lxd/containers/"
${
service_name
}
"/rootfs"
container_
vagrant_dir
=
${
container_dir
}
"/
vagrant
"
mkdir
-p
${
container_
vagrant_dir
}
cp
-f
${
repo_root
}
/reporc
${
container_
vagrant_dir
}
cp
-rf
${
repo_root
}
/scripts
${
container_
vagrant_dir
}
cp
-rf
${
repo_root
}
/src
${
container_
vagrant_dir
}
chown
-R
100000:100000
${
container_
vagrant_dir
}
container_
repo_root
=
${
container_dir
}
"/
opt/clmc
"
mkdir
-p
${
container_
repo_root
}
cp
-f
${
repo_root
}
/reporc
${
container_
repo_root
}
cp
-rf
${
repo_root
}
/scripts
${
container_
repo_root
}
cp
-rf
${
repo_root
}
/src
${
container_
repo_root
}
chown
-R
100000:100000
${
container_
repo_root
}
# start the container
echo
"Starting:
${
service_name
}
"
...
...
@@ -50,9 +50,9 @@ create() {
# provision software into each container
echo
"Provisioning:
${
service_name
}
"
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
}
"
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
=
$?
if
[
$exit_code
!=
0
]
;
then
echo
"clmc-service installation failed with exit code
${
exit_code
}
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment