Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kraxel/s2i-jekyll
source-to-image builder for jekyll
https://github.com/kraxel/s2i-jekyll
jekyll openshift
Last synced: about 1 month ago
JSON representation
source-to-image builder for jekyll
- Host: GitHub
- URL: https://github.com/kraxel/s2i-jekyll
- Owner: kraxel
- Created: 2019-09-06T09:03:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T10:35:33.000Z (about 2 years ago)
- Last Synced: 2024-10-16T02:26:06.886Z (3 months ago)
- Topics: jekyll, openshift
- Language: Shell
- Size: 35.2 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# s2i builder for jekyll sites
Source: [https://gitlab.com/kraxel/s2i-jekyll](https://gitlab.com/kraxel/s2i-jekyll)
Image: registry.gitlab.com/kraxel/s2i-jekyll
## Deploy in openshift
```
oc new-app registry.gitlab.com/kraxel/s2i-jekyll~git://some.host/your/repo.git
```## Work with the builder image sources
### Create the builder image
The following command will create a builder image named kraxel/s2i-jekyll based on the Dockerfile that was created previously.
```
docker build -t kraxel/s2i-jekyll .
```
The builder image can also be created by using the *make* command since a *Makefile* is included.### Creating the application image
The application image combines the builder image with your applications source code, which is served using whatever application is installed via the *Dockerfile*, compiled using the *assemble* script, and run using the *run* script.
The following command will create the application image:
```
s2i build test/test-app kraxel/s2i-jekyll kraxel/s2i-jekyll-app
---> Building and installing application from source...
```
Using the logic defined in the *assemble* script, s2i will now create an application image using the builder image as a base and including the source code from the test/test-app directory.### Running the application image
Running the application image is as simple as invoking the docker run command:
```
docker run -d -p 8080:8080 kraxel/s2i-jekyll-app
```
The application, which consists of a simple static web page, should now be accessible at [http://localhost:8080](http://localhost:8080).