Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zpush-openshift
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
mail
zpush-openshift
Commits
fb93b11f
Unverified
Commit
fb93b11f
authored
4 years ago
by
Vincent Brillault
Browse files
Options
Downloads
Patches
Plain Diff
Fix typos in the readme
parent
acf18c02
Branches
Branches containing commit
No related tags found
2 merge requests
!4
Push preprod to prod
,
!3
Merge Test to preprod
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+9
-9
9 additions, 9 deletions
README.md
with
9 additions
and
9 deletions
README.md
+
9
−
9
View file @
fb93b11f
...
...
@@ -114,23 +114,23 @@ oc new-app \
## Create the different mounts/shares
In the following commands, replace <name> by:
- For `test`: `
dc/
zpush-test`
- For `master`: `
dc/
zpush`
- For `test`: `zpush-test`
- For `master`: `zpush`
- Create empty dirs for logs:
```oc set volumes <name> --add=true --name=zpush-log -m /var/log/z-push/```
```oc set volumes
dc/
<name> --add=true --name=zpush-log -m /var/log/z-push/```
- HTTP configuration:
````
oc set volumes <name> --add=true --name=httpd-config -t configmap --default-mode 422 \
oc set volumes
dc/
<name> --add=true --name=httpd-config -t configmap --default-mode 422 \
--configmap-name='httpd-config' --sub-path='z-push.conf' -m /etc/httpd/conf.d/z-push.conf
```
- Z-push configuration
- Add volume:
```
oc patch <name> -p '{"spec": { "template": { "spec": {"volumes": [{"name": \
oc patch
dc/
<name> -p '{"spec": { "template": { "spec": {"volumes": [{"name": \
"zpush-config", "configMap": {"defaultMode": 422, "name": "zpush-config"}}]}}}}'
```
- Add mounts (be careful of the <name> in the middle):
- Add mounts (be careful of the
two
<name> in the middle):
```
for x in z-push.conf.php:/opt/app-root/src/config.php \
caldav.conf.php:/opt/app-root/src/backend/caldav/config.php \
...
...
@@ -140,7 +140,7 @@ In the following commands, replace <name> by:
imap.conf.php:/opt/app-root/src/backend/imap/config.php \
state-sql.conf.php:/opt/app-root/src/backend/sqlstatemachine/config.php \
policies.ini:/opt/app-root/src/policies.ini; do \
oc patch dc/
zpush-test
-p "{\"spec\": { \"template\": { \"spec\": { \
oc patch dc/
<name>
-p "{\"spec\": { \"template\": { \"spec\": { \
\"containers\": [{\"name\": \"<name>\", \"volumeMounts\": \
[{\"name\": \"zpush-config\", \"mountPath\": \"${x/*:/}\", \
\"subPath\": \"${x/:*/}\"}]}]}}}}"; \
...
...
@@ -154,7 +154,7 @@ In the following commands, replace <name> by:
- For `master`: ```oc patch svc/zpush --type json -p '[{"op": "remove", "path":"/spec/ports/1"}]'```
- Delete silly port 8443 from deployment config with:
- For `test`: ```oc patch dc/zpush-test --type json -p '[{"op": "remove", "path":"/spec/template/spec/containers/0/ports/1"}]'```
- For `master`: ```oc patch dc/zpush
-test
--type json -p '[{"op": "remove", "path":"/spec/template/spec/containers/0/ports/1"}]'```
- For `master`: ```oc patch dc/zpush --type json -p '[{"op": "remove", "path":"/spec/template/spec/containers/0/ports/1"}]'```
- Create the route with:
- For `tesŧ`: ```oc create route edge --insecure-policy=Redirect --service='svc/zpush-test'```
- For `master`: ```oc create route edge --insecure-policy=Redirect --service='svc/zpush'```
...
...
@@ -165,7 +165,7 @@ In the following commands, replace <name> by:
- `oc annotate route/zpush 'router.cern.ch/network-visibility=Internet'`
- Restrict the route to the intranet:
- `oc annotate route/zpush 'router.cern.ch/network-visibility=Intranet'
\
- `oc annotate route/zpush 'router.cern.ch/network-visibility=Intranet'
`
## Re-build the custom builder
...
...
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