• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

s2i: command not found

by admin

The S2I toolkit produces ready-to-run images by injecting source files into a running instance of a builder base image, with scripts in the builder image turning that source code into a runnable application. From the container the build process was run in, a runnable application image is then created.

The command-line tool that drives the S2I build process is called s2i. When you deploy an application from source code in OpenShift using S2I, all the steps involved in running the s2i command-line tool are done for you.

To build the container image, run s2i build, supplying it the location of your application source code, the name of the S2I builder image, and the name to give to the application image created:

$ s2i build [location of app source code] [name of image]

Details of the image produced can be viewed by running docker images:

$ docker images

If you encounter an error as shown below while running the s2i command:

s2i: command not found

you may install the below package as per your choice of distribution.

Distribution Command
OS X brew install source-to-image
Fedora dnf install source-to-image

Conclusion

The Source-to-Image tool implements a mechanism to take application source code and build it into a container image. The tool works by starting a container using an S2I builder image, injecting the application source code into the container, and running an assemble script to set up the contents of the image.

Filed Under: Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL 7 : How to create custom script to run automatically during boot
  2. loadkeys Command Examples in Linux
  3. How to disable auto completion (tab completion) in bash shell
  4. How to uninstall postgresql-client-common software package in Ubuntu
  5. cupsd: Server daemon for the CUPS print server
  6. mkswap Command Examples in Linux
  7. chkconfig: command not found
  8. croc: Send and receive files easily and securely over any network
  9. adig Command Examples in Linux
  10. How to Set External Network For Containers in Linux Containers (LXC)

You May Also Like

Primary Sidebar

Recent Posts

  • “glab issue” Command Examples
  • “glab auth” Command Examples
  • “glab alias” Command Examples
  • gixy Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright