Cyber Deals - Get up to 65% off on CKA, CKAD, CKS, KCNA, KCSA exams and courses!

s2i Cheat Sheet

Also See,

Note : This is s a living document and I will update whenever needed

$ s2i version

#-- Create
$ s2i create IMAGE_NAME DESTINATION_DIR
$ s2i create s2i-test s2i-test
$ tree -a s2i-test
s2i-test
├── Dockerfile
├── Makefile
├── README.md
├── s2i
│   └── bin
│       ├── assemble
│       ├── run
│       ├── save-artifacts
│       └── usage
└── test
    ├── run
    └── test-app
        └── index.html
4 directories, 9 files

#-- configure all templated files as needed before creating image

#-- Create the builder image
$ cd s2i-test
$ sudo podman build -t s2i-do288-httpd .

#-- see images
$ sudo podman images

#-- Build application image by combining builder image + application
#-- and output as Dockerfile in destination
$ s2i build test/test-app/ \
  s2i-do288-httpd s2i-sample-app \
  --as-dockerfile ~/s2i-sample-app/Dockerfile

$ cd ~/s2i-sample-app
$ tree .
.
├── Dockerfile
├── downloads
│   ├── defaultScripts
│   └── scripts
└── upload
    ├── scripts
    └── src
        └── index.html

6 directories, 2 files
Disclaimer: Views expressed in articles are those of the respective authors and do not necessarily reflect the views of their employers or this site. While we aim for accuracy, please verify information before relying on it, and let us know if you spot an error.
Share:

Related Posts

Cheat sheets

kubectl and oc Cheat Sheet

oc (OpenShift CLI) and kubectl share most commands. oc extends Kubernetes with OpenShift-specific features — cluster login, projects, routes, builds, …

Ansible Tower - Load Balancing

Ansible Tower - Load Balancing

1. Ansible Tower Installation 1. Ansible Tower Installation 1.1. Ansible Tower Installation and Reference Guide v3.6.1 1.2. Ansible Tower Quick …

Cloud

Podman Cheat Sheet

Also see, OpenShift Learning Center kubectl & oc Cheatsheet Skopeo Cheat Sheet for details. Podman Cheat Sheet for details. Note : This is s a …

Container

Falco - Open source container security

Runtime Security Installing Falco Running Falco in Docker Falco Installation with Kubernetes Falco Rules Falco macros Falco lists Falco default rules …

Ansible and Terraform

Ansible and Terraform

cloud.terraform collection github.com/ansible-collections/cloud.terraform

Ansible for Cisco ACI

Ansible for Cisco ACI

Ansible for Cisco ACI Automation References ACI Ansible community Ansible Modules for Cisco ACI Ansible Cisco ACI Guide Completed Configurations in …