Skip to content

Experiment with Docker, OpenShift, Apache and Asciidoc

Notifications You must be signed in to change notification settings

lbamford/ocp-asciidoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ocp-asciidoc

Experiment with Docker, OpenShift, Apache and Asciidoc

Work in progress

From asciidoc to published web content, pdf etc.

The aim is to trigger re-deployments when the source code changes. So content is automatically updated with latest asciidoc generated output.

Steps

  • login to OpenShift

    • oc project ocp-directory
  • add asciidoctor/docker-asciidoctor to openshift internal register

    • oc import-image asciidoctor/docker-asciidoctor --confirm
  • run deploy yaml, this has a couple of init containers that pull the code then run asciidoctor

    • oc apply -f deploy.yml
  • check all good in openshift

  • open route in web browser check the output

Init Containers

https://docs.openshift.com/container-platform/4.1/nodes/containers/nodes-containers-init.html

Init containers are useful for checking certain preconditions are met before starting the main container, for example you might want to know a database is available before starting a web service.

They can also be used for injecting content into the main container by using temporary shared storage, that is mounted and available to all containers (within the pod) during initialisation.

About

Experiment with Docker, OpenShift, Apache and Asciidoc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages