Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
clarin-dspace
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
Container registry
Model registry
Operate
Environments
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
commul
docker
clarin-dspace
Commits
bc34f67b
Verified
Commit
bc34f67b
authored
4 years ago
by
egon w. stemle
Browse files
Options
Downloads
Patches
Plain Diff
Update DEPLOYMENT with latest actual steps from 1.4.0
parent
55dc97a6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DEPLOYMENT.md
+89
-59
89 additions, 59 deletions
DEPLOYMENT.md
with
89 additions
and
59 deletions
DEPLOYMENT.md
+
89
−
59
View file @
bc34f67b
# Step by Step deployment guide
-
[ ] Edit CHANGELOG.md
-
[ ] Rename [Unreleased] to [$VERSION]
-
[ ] Reintroduce [Unreleased]
-
[ ] Fix [Unreleased] and add [$VERSION] named link at the end of CHANGELOG.md
-
[ ] Bump versions of
-
clarin-dspace-app:
`DSPACE_APP_VERSION`
in docker/clarin-dspace/dockerfiles/Earthfile
-
lindat-common: settings in docker/clarin-dspace/dockerfiles/commul-customization/variable.makefile
-
[ ] Commit to master to make sure that the master branch is clean and all
commits are pushed to origin
```
git commit -m"Bump version to $VERSION"
git push
```
-
[ ]
`git checkout stable`
-
[ ]
`git merge --no-ff master`
-
[ ] (Optional) You can now deploy stable to dspace-dev
```
cd dockerfiles
./release.sh $VERSION
```
-
[ ] Make sure that the stable branch is clean and all commits are pushed to origin
-
[ ]
`git checkout production`
-
[ ]
`git checkout -b v$VERSION $HASHID`
The $HASHID being the commit were the last merge from stable happened
(before clarindev2clarin.sh changes were committed)
-
[ ]
`git merge --no-ff stable`
-
[ ] resolve conflicts (though there shouldn't be any) and commit
-
[ ] Change the version number and the registry branch of the images in all
deployment yaml files
-
[ ] Run the clarindev2clarin.sh script
-
[ ]
`git commit -a `
-
[ ]
`git checkout production`
-
[ ]
`git merge v$VERSION`
-
[ ] resolve conflicts and commit
-
[ ]
`git tag -a v$VERSION -s (-u $GPG_ID_HASH)`
defaults to your default GPG key
-
[ ]
`git branch -d v$VERSION`
-
[ ]
`git push --all`
-
[ ]
`git push --tags`
-
[ ]
`cd dockerfiles`
-
[ ]
`./release.sh v$VERSION production`
-
[ ]
`cd ../kubernetes`
-
[ ]
`./stop_kube.sh`
-
[ ]
`./start_kube.sh`
-
[ ]
`git checkout master`
-
Development
-
Edit CHANGELOG.md
-
[ ] Rename [Unreleased] to [$VERSION]
-
[ ] Reintroduce [Unreleased]
-
[ ] Fix [Unreleased] and add [$VERSION] named link at the end of CHANGELOG.md
-
[ ] (Optional) Bump versions of
-
clarin-dspace-app:
`DSPACE_APP_VERSION`
in docker/clarin-dspace/dockerfiles/Earthfile
-
lindat-common: settings in docker/clarin-dspace/dockerfiles/commul-customization/variable.makefile
-
Commit to master to make sure that the master branch is clean and all
commits are pushed to origin
-
[ ]
`git commit -m"Bump version to $VERSION"`
-
[ ]
`git tag X.Y.Z-rcR`
-
[ ]
`./release.sh`
-
[ ] # Use the
`sed`
command at the end to adapt the k8s files
# ./start- ... ./stop- or kubectl edit
-
Prepare a release
-
Make a copy of DEPLOYMENT.md
-
[ ] cp DEPLOYMENT.md DEPLOYMENT-$VERSION.md
-
[ ] Check versions are non-rc candidates:
-
clarin-dspace-app:
`DSPACE_APP_VERSION`
in docker/clarin-dspace/dockerfiles/Earthfile
-
lindat-common: settings in docker/clarin-dspace/dockerfiles/commul-customization/variable.makefile
-
[ ] Check CHANGELOG.md has up-to-date edits
-
Check that the master branch is clean and all commits are pushed to origin
-
[ ] git status
-
[ ] git push
-
Merge changes into stable
-
[ ] git checkout stable
-
[ ] git merge --no-ff master
-
[ ] (Optional) You can now deploy stable to dspace-dev
This depends on your workflow, for example, you man have already tested
from master. In any case,
`./release.sh`
picks up the tag from
`git tag`
,
i.e.
*before*
every
`./release.sh`
there should be a
`git tag`
.
During testing this
`tag`
should always be of type
`X.Y.Z.-rcR`
.
```
./release.sh
# Use the `sed` command at the end to adapt the k8s files
# ./start- ... ./stop- or kubectl edit
```
-
Check that the stable branch is clean and all commits are pushed to origin
-
[ ] git status
-
[ ] git push
-
Create a new version branch for this release
-
[ ] git checkout -b ver-$VERSION
-
Adapt clarin-dev and dspace-dev & commit changes, tag version, make a
release, and push changes
-
[ ] ./clarindev2clarin.sh
-
[ ] git commit -m"Add clarindev2clarin.sh changes"
-
[ ] git tag -a $VERSION -s (-u $GPG_ID_HASH)
"
Tag version $VERSION
Copy&Paste relevant CHANGELOG.md
"
- [ ] Make sure to remove '#' for 'TITLE lines' from commit message
(otherwise, they will be ignored)
- [ ] ./release.sh
- [ ] # Use the `sed` command at the end to adapt the k8s files
- [ ] git commit -m"Bump version to $VERSION"
- [ ] git push origin ver-$VERSION
-
Merge ver-$VERSION into production
-
[ ] git checkout production
-
[ ] git merge --strategy-option=theirs --squash ver-$VERSION
"
Squashing commits of branch 'v$VERSION' into production
Commits
...
"
- [ ] git push origin production
- [ ] git push --tags
-
Deploy production to --namespace=dspace and go back to master
-
[ ] cd ../kubernetes
-
[ ] ./stop_kube.sh
-
[ ] ./start_kube.sh
-
[ ] git checkout master
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