This repository contains the source building a Source-to-Image builder for AsciiBinder repositories.
- AsciiBinder v0.1.8
CentOS versions currently provided are:
- CentOS7
This image is available oon DockerHub. To download it, run:
docker pull openshift/asciibinder-018-centos7
To build the AsciiBinder image from scratch, run:
git clone https://github.com/openshift-s2i/s2i-asciibinder.git
cd s2i-asciibinder
make build VERSION=0.1.8
To create an image that renders an existing AsciiBinder repository, use s2i to create the image and then run it:
s2i build https://github.com/openshift/openshift-docs.git openshift/asciibinder-018-centos7 openshift-docs
docker run -p 8080:8080 openshift-docs
Accessing the application: Point your browser to http://localhost:8080
This repository also provides a S2I test framework, which launches tests to check functionality of a simple AsciiBinder repository built on top of the AsciiBinder image.
-
CentOS based image
$ cd s2i-asciibinder $ make test VERSION=0.1.8
-
<AsciiBinder-version>
-
Dockerfile
CentOS based Dockerfile
-
s2i/bin/
This folder contains scripts that are run by S2I:
-
assemble
Runs an AsciiBinder build on the provided repository. The result is a set of static files ready for rendering.
-
run
This script will launch an *asdf* server to serve static files generated by the asciibinder build process.
-
-
test/
This folder contains the S2I test framework with a simple AsciiBinder repository.
-
-
hack/
Folder containing scripts which are responsible for the build and test actions performed by the
Makefile
.
- Platform name (lowercase) - asciibinder
- AsciiBinder version(without dots) - 018
- Base builder image - centos7
Example: openshift/asciibinder-018-centos7
Released under the Apache License 2.0. See the LICENSE file.