https://github.com/debianmaster/hugo-on-openshift
https://github.com/debianmaster/hugo-on-openshift
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/debianmaster/hugo-on-openshift
- Owner: debianmaster
- Created: 2017-04-12T10:14:05.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-02-21T08:21:21.000Z (over 6 years ago)
- Last Synced: 2025-01-29T14:53:42.328Z (over 1 year ago)
- Language: Shell
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hugo-on-openshift
### using debianmaster/hugo-base base image
#### One time setup
```sh
oc new-project hugo-test
oc adm policy add-scc-to-user anyuid -z builder
oc adm policy add-scc-to-user anyuid -z default
```
#### Convert hugo website to docker image and deploy
```sh
oc new-app debianmaster/hugo-base~https://github.com/debianmaster/hugo-example-site --name=gohugo
```
### To override config.toml
```sh
oc create configmap hugo-config --from-file=config.toml
oc volume dc gohugo --add -m '/tmp/config' -t configmap --configmap-name 'hugo-config'
```
### Build your own base image
```sh
oc new-build https://github.com/debianmaster/hugo-on-openshift.git --strategy=docker --context-dir=hug-s2i --name=hugo-base
```