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
bc5acbc6
Commit
bc5acbc6
authored
8 years ago
by
Julien Leduc
Browse files
Options
Downloads
Patches
Plain Diff
We can now chose the type of the library: ibm or mhvtl in `create_instance.sh`.
Default type is mhvtl
parent
32c9b13a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
continuousintegration/orchestration/create_instance.sh
+10
-4
10 additions, 4 deletions
continuousintegration/orchestration/create_instance.sh
continuousintegration/orchestration/pvc_library_ibm.yaml
+16
-0
16 additions, 0 deletions
continuousintegration/orchestration/pvc_library_ibm.yaml
with
26 additions
and
4 deletions
continuousintegration/orchestration/create_instance.sh
+
10
−
4
View file @
bc5acbc6
...
...
@@ -4,6 +4,8 @@
config_objectstore
=
"./objectstore-file.yaml"
# defaults DB to sqlite
config_database
=
"./database-sqlite.yaml"
# default library model
model
=
"mhvtl"
# By default keep Database and keep Objectstore
# default should not make user loose data if he forgot the option
...
...
@@ -11,7 +13,7 @@ keepdatabase=1
keepobjectstore
=
1
usage
()
{
cat
<<
EOF
1>&2
Usage:
$0
-n <namespace> [-o <objectstore_configmap>] [-d <database_configmap>] [-p <gitlab pipeline ID>] [-D] [-O]
Usage:
$0
-n <namespace> [-o <objectstore_configmap>] [-d <database_configmap>] [-p <gitlab pipeline ID>] [-D] [-O]
[-m [mhvtl|ibm]]
Options:
-D wipe database content during initialization phase (database content is kept by default)
...
...
@@ -22,7 +24,7 @@ exit 1
die
()
{
echo
"
$@
"
1>&2
;
exit
1
;
}
while
getopts
"n:o:d:p:DO"
o
;
do
while
getopts
"n:o:d:p:DO
m:
"
o
;
do
case
"
${
o
}
"
in
o
)
config_objectstore
=
${
OPTARG
}
...
...
@@ -32,6 +34,10 @@ while getopts "n:o:d:p:DO" o; do
config_database
=
${
OPTARG
}
test
-f
${
config_database
}
||
error
=
"
${
error
}
Database configmap file
${
config_database
}
does not exist
\n
"
;;
m
)
model
=
${
OPTARG
}
if
[
"-
${
model
}
-"
!=
"-ibm-"
]
&&
[
"-
${
model
}
-"
!=
"-mhvtl-"
]
;
then
error
=
"
${
error
}
Library model
${
model
}
does not exist
\n
"
;
fi
;;
n
)
instance
=
${
OPTARG
}
;;
...
...
@@ -106,8 +112,8 @@ kubectl create -f ${config_objectstore} --namespace=${instance}
kubectl create
-f
${
config_database
}
--namespace
=
${
instance
}
echo
-n
"Requesting an unused
MHVTL
library"
kubectl create
-f
./pvc_library_
mhvtl
.yaml
--namespace
=
${
instance
}
echo
-n
"Requesting an unused
${
model
}
library"
kubectl create
-f
./pvc_library_
${
model
}
.yaml
--namespace
=
${
instance
}
for
((
i
=
0
;
i<120
;
i++
))
;
do
echo
-n
"."
kubectl get persistentvolumeclaim claimlibrary
--namespace
=
${
instance
}
|
grep
-q
Bound
&&
break
...
...
This diff is collapsed.
Click to expand it.
continuousintegration/orchestration/pvc_library_ibm.yaml
0 → 100644
+
16
−
0
View file @
bc5acbc6
kind
:
PersistentVolumeClaim
apiVersion
:
v1
metadata
:
name
:
claimlibrary
annotations
:
volume.beta.kubernetes.io/storage-class
:
"
librarydevice"
spec
:
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
1Mi
selector
:
matchLabels
:
config
:
library
type
:
ibm
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