cloud,

s2i Cheat Sheet

Gini Gini Follow · 1 min read
Share this

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


Gini
Written by Gini Follow
Backpacker, Foodie, Techie

Latest Stories

HashiCorp Certified Terraform Associate – Learning & Exam Tips

I started using Terraform somewhere in 2018, but very limited usage as I thought it is just another tool for provisioning infrastructure and other services – or a variant of Vagrant; ...

In terraform, Sep 18, 2020
Deploy Minikube Using Vagrant and Ansible on VirtualBox – Infrastructure as Code

Minikube is a tool to run a kubernetes cluster locally, that means on your laptop or inside a virtual machine. Minikube will run a single node kubernetes cluster on your machine with ...

In kubernetes, Aug 11, 2020
How to Pass CKA & CKAD Exams ? 10 Tips for Kubernetes Exams

Here see the best tips for Kubernetes Exams - Certified Kubernetes Administrator (CKA) & Certified Kubernetes Application Developer (CKAD).

In kubernetes, Jul 08, 2020
CKA & CKAD - Kubernetes Exam Tips, Learning Path and Certification

Since kubernetes is getting wide acceptance, Kubernetes Certification is the most trending one in IT circle now. I have completed both recently (March – April 2020) and I started gett...

In kubernetes, May 03, 2020

Featured