In preparation of my current work assignment I have revisited Asciinurse and enabled here to produce PDF.
Asciinurse is my take to separate Asciidoctor and all it’s dependencies into a single docker container image. With Version 1.3.0 I have enabled her to produce themed PDF out of your asciidoc files, simply by running
docker run --rm -t -i -v $PWD:/data -v /etc/localtime:/etc/localtime b4mad/asciinurse asciidoctor-pdf -a pdf-style=rh-ra -v myfile.asciidoc
Looking at the command line,
-a pdf-style will do the magic trick for you, it selects the theme to be applied by asciidoctor-pdf.
Beside the hands on lab I co-host with some colleagues – @collier_s @nhripps @erikonopen – I have prepared a short demo on #Atomicapp it gives a short context what we are solving and why, additionally there is one slide that explains what a #Nulecule is.
From the presentation (and github):
- Application description and context maintained within a single container through extensible metadata
- Composable definition of complex applications through inheritance and composition of containers into a single, standards-based, portable description.
- Simplified dependency management for the most complex applications through a directed graph to reflect relationships.
- Container and orchestration engine agnostic, enabling the use of any container technology and/or orchestration technology
The second part of the demo is the famous #WordPress Atomic App referencing a pre-built #MySQL Atomic App.
You will find it on the #RedHatSummit channel and/or the #projectatomic channel on YouTube later this month.
Over the course of the past three days I build many dozens of containers. I have not been using any container build service like OSBS for that. Finally, I got tired of checking for the correct docker build command in my history and implemented the super simple build service – ssbs.
It consists of two parts:
- a LABEL within the Dockerfile and
- a shell alias
I have put
LABEL Build docker build --rm --tag goern/wordpress-centos7-atomicapp . in my docker file. And this shell alias to evaluate it
alias docker-build='$(grep LABEL Dockerfile | grep Build | cut -d " " -f 3- )'.