Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-operations
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
drupal
paas
drupal-operations
Commits
58562e36
Commit
58562e36
authored
3 years ago
by
Dimitra Chatzichrysou
Committed by
Konstantinos Samaras-Tsakiris
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix for checking status on backup ClusterTask
parent
fcf03133
No related branches found
Branches containing commit
No related tags found
1 merge request
!19
Fix for checking status on backup ClusterTask
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+4
-3
4 additions, 3 deletions
Dockerfile
chart/drupal-operations/templates/drupalsite-backup.yaml
+1
-1
1 addition, 1 deletion
chart/drupal-operations/templates/drupalsite-backup.yaml
with
5 additions
and
4 deletions
Dockerfile
+
4
−
3
View file @
58562e36
...
...
@@ -6,14 +6,15 @@ LABEL maintainer="Drupal Admins <drupal-admins@cern.ch>"
# TODO: Download the binary for restic install, instead of using copart/restic repo
ARG
restic_version=0.12.1
RUN
yum
install
epel-release
-y
&&
\
RUN
yum update
-y
&&
\
yum
install
epel-release
-y
&&
\
# install restic
yum install yum-plugin-copr -y && \
yum copr enable copart/restic -y && \
yum install restic-${restic_version} -y && \
# we need this to interact with manila OpenStack to get CephFS information
yum install centos-release-openstack-
train
-y && \
yum install -y /usr/bin/openstack
--disableplugin=protectbase
&& \
yum install centos-release-openstack-
xena
-y && \
yum install -y /usr/bin/openstack
python3-requests-kerberos
&& \
yum clean all
COPY
./tekton-task-templates /tekton-task-templates
...
...
This diff is collapsed.
Click to expand it.
chart/drupal-operations/templates/drupalsite-backup.yaml
+
1
−
1
View file @
58562e36
...
...
@@ -38,6 +38,6 @@ spec:
export PROJECT_HASH=$(printf '%s' "$NAMESPACE" | md5sum | awk '{print $1}')
export VELERO_NAMESPACE={{ .Values.veleroNamespace }}
envsubst < /tekton-task-templates/backup_resource.yaml | oc create -f -
timeout 120s sh -c -- 'while [ $(oc get backup/$RESOURCE_NAME -n $VELERO_NAMESPACE -o jsonpath='{.status.phase}') != "Completed" ]; do printf "Backup in progress\n"; sleep 2s; done'
timeout 120s sh -c -- 'while [
[
$(oc get
"
backup/$RESOURCE_NAME
"
-n
"
$VELERO_NAMESPACE
"
-o jsonpath='{.status.phase}') != "Completed"
]
]; do printf "Backup in progress\n"; sleep 2s; done'
backupStatus=$(oc get backup/$RESOURCE_NAME -n $VELERO_NAMESPACE -o=jsonpath='{.status.phase}' | grep -i -E 'failed|completed|partiallyfailed' || echo "Failed")
echo "DrupalSite backup status: $backupStatus"
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