An open API service indexing awesome lists of open source software.

https://github.com/redhat-documentation/openshift-docs-build-tools


https://github.com/redhat-documentation/openshift-docs-build-tools

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# openshift-build-tools

Dockerfile with tools to validate and build openshift-docs AsciiDoc files.

## Build image and push to quay.io

```cmd
podman login registry.redhat.io

podman login quay.io/redhat-docs

podman build -t openshift-docs-asciidoc:latest --platform linux/amd64 -f asciidoc.Dockerfile

podman tag quay.io/redhat-docs/openshift-docs-asciidoc:latest

podman push quay.io/redhat-docs/openshift-docs-asciidoc:latest
```

## Multiarch build

```cmd
podman build --platform linux/arm64 --tag quay.io/redhat-docs/openshift-docs-asciidoc:multiarch -f asciidoc.Dockerfile

podman tag quay.io/redhat-docs/openshift-docs-asciidoc:multiarch

podman push quay.io/redhat-docs/openshift-docs-asciidoc:multiarch
```

The image is available from https://quay.io/repository/redhat-docs/openshift-docs-asciidoc?tab=tags&tag=latest

To use it, `podman pull quay.io/redhat-docs/openshift-docs-asciidoc`.

## Testing

```cmd
podman run --rm -it -v "$(pwd)":~/ocpd-src:Z sh -c 'asciidoctor -v'
```