cloud,

s2i Cheat Sheet

Gineesh Gineesh 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


Gineesh
Written by Gineesh Follow
Backpacker, Foodie, Techie

Latest Stories

Featured