Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
dCache
cta
Commits
24160f75
Commit
24160f75
authored
8 years ago
by
Julien Leduc
Browse files
Options
Downloads
Patches
Plain Diff
updating pods definition with the imagetag corresponding to the current commit and/or pipeline id
parent
f439da9d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
continuousintegration/orchestration/create_instance.sh
+7
-3
7 additions, 3 deletions
continuousintegration/orchestration/create_instance.sh
with
7 additions
and
3 deletions
continuousintegration/orchestration/create_instance.sh
+
7
−
3
View file @
24160f75
#!/bin/bash
#instance=$1
# defaults objectstore to file
config_objectstore
=
"./objectstore-file.yaml"
# defaults DB to sqlite
...
...
@@ -69,6 +68,11 @@ if [ "${imagetag}" == "" ]; then
fi
echo
"Creating instance using docker image with tag:
${
imagetag
}
"
# Create temporary directory for modified pod files
poddir
=
$(
mktemp
-d
)
cp
pod-
*
${
poddir
}
sed
-i
${
poddir
}
/pod-
*
-e
"s/
\(
^
\s\+
image:[^:]
\+
:
\)
.*/
\1
${
imagetag
}
/"
if
[
!
-z
"
${
error
}
"
]
;
then
echo
-e
"ERROR:
\n
${
error
}
"
exit
1
...
...
@@ -124,7 +128,7 @@ done
echo
"creating pods in instance"
kubectl create
-f
pod-init.yaml
--namespace
=
${
instance
}
kubectl create
-f
${
poddir
}
/
pod-init.yaml
--namespace
=
${
instance
}
echo
-n
"Waiting for init"
for
((
i
=
0
;
i<400
;
i++
))
;
do
...
...
@@ -141,7 +145,7 @@ echo OK
echo
"Launching pods"
for
podname
in
ctacli tpsrv ctaeos ctafrontend kdc
;
do
kubectl create
-f
pod-
${
podname
}
.yaml
--namespace
=
${
instance
}
kubectl create
-f
${
poddir
}
/
pod-
${
podname
}
.yaml
--namespace
=
${
instance
}
done
echo
-n
"Waiting for other pods"
...
...
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