Source-to-Image, or S2I, is a tool by RedHat to produce Docker images from application source code. S2I will start a builder container, inject the source code into a known directory, and prepare the code for execution (e.g. install dependencies, compile, etc.). The result is a new container that contains everything necessary to run the application.
Questions tagged [s2i]
48 questions
0
votes
1 answer
s2i build source code volume map instead of --copy or how do I access build output directory after s2i executed?
We're using s2i to build docker images using 2 images builder image & runtime image.
In some cases I don't need to build a docker image, I need just to run s2i build so that mvn will be executed what is coded inside the assemble script.
Then I just…

Al K
- 71
- 1
- 5
0
votes
1 answer
Deploying react app with nginx by using s2i strategy in OpenShift
I want to deploy my react app by using s2i strategy from local directory that includes build files to openshift.(OpenShift 3.11 version)
Firstly, I created a build-config file by using oc-cli tool
oc new-build…

fgul
- 5,763
- 2
- 46
- 32
0
votes
1 answer
Openshift 3.11 source-to-image (s2i) build using no standard ssh port
I'm trying to use OpenShift s2i builds to build an image, pulling source code from a git repo on a non standard port (port 222).
I thought this would be as simple as specifying the port in the git repo url, however this doesnt seem to work. When I…

Magick
- 4,603
- 22
- 66
- 103
0
votes
1 answer
How to execute commands during S2I build in Openshift?
Openshift CLI command to start S2I (source to image) build looks like this:
oc start-build buildname --from-dir=./someDirectory--wait=true
But how can we execute some shell command? os start-build is going to create image (described in the build…

Arkadiusz Kałkus
- 17,101
- 19
- 69
- 108
0
votes
1 answer
Problem in building a docker image with pyspark lib
I'm trying to build a docker image using s2i and Jenkins. I have the following dependencies in the requirement.txt file
scikit-learn==0.21.2
scipy==0.18.1
pandas==0.24.2
seldon-core==0.3.0
pypandoc
pyspark==2.4.1
But my build process fails when it…

HHH
- 6,085
- 20
- 92
- 164
0
votes
0 answers
Run S2I build as a remote job on kubernetes
I have an image-build I want to run using S2I. I know I can run it locally using s2i build .... If I wanted to run the same build remotely in K8s, I could create a job image containing the S2I CLI and call s2i build in that image, but this seems…

Narek
- 548
- 6
- 26
0
votes
1 answer
How to solve the update bundler warning in rails when deploying to OpenShift?
I am trying to deploy my rails application on openShift, Everthing is going fine but it giving warning for bundle update.
Warning: the running version of Bundler (1.16.1) is older than the version that created the lockfile (1.16.6). We suggest you…

Anshul Riyal
- 123
- 1
- 12
0
votes
2 answers
OpenShift: Can I set up a build that copies a docker image from an imagestream to an external docker repository?
We are trying to set up an OpenShift flow as close to the defaults as possible, without having to use Jenkins.
So far I have managed to adapt a s2i-generated Dockerfile to our needs (to get the benefits of the s2i images) and set up a simple "oc…

Thorbjørn Ravn Andersen
- 73,784
- 33
- 194
- 347
0
votes
2 answers
Apply changes dynamically when OpenShift template is modified (and applied)
I defined a template (let's call it template.yaml) with a service, deploymentconfig, buildconfig and imagestream, applied it with oc apply -f template.yaml and ran oc new-app app-name to create new app from the template. What the app basically does…

Jon Gan
- 867
- 1
- 11
- 22
0
votes
1 answer
Dockerfile or docker image for jboss/openjdk18-rhel7:1.1
Where can I find the docker image (and if possible Dockerfile) for the image jboss/openjdk18-rhel7:1.1
This image is being used in another dockerfile
FROM jboss/openjdk18-rhel7:1.1
ENV \
PATH="$PATH:"/usr/local/s2i""

himanshu_mps
- 170
- 12
0
votes
0 answers
OpenShift application for web app with minified static files (npm run build)
I'm currently developing a web application composed of:
api: an API built with Flask in Python
app: a web app built with vue-cli (based on webpack), and minified with npm run build
I've successfully built the api with an OpenShift Python S2I…

thibautg
- 2,004
- 1
- 14
- 17
0
votes
0 answers
How to use openshift source-to-image library instead of s2i binary or executable file
How to use openshift source-to-image library https://github.com/openshift/source-to-image using go language,instead of s2i executable to build a new image from existing builder images from docker hub.
I need to create a new image by using above…

tathagatk22
- 11
- 4
0
votes
1 answer
Set line-buffering in container output
I use Java S2I image for a container running in Openshift (on premise). My problem is that the output of the image is page-buffered and oc logs ... does not show me the last logs.
I could probably spin up my docker image that would do stdbuf -oL -e0…

Radim Vansa
- 5,686
- 2
- 25
- 40
0
votes
1 answer
How to get s2i to connect to a private NuGet feed
I have OpenShift set up to build a ASP.NET Core application. I've succeeded in configuring OpenShift so it pulls in the latest source code. I see in the logs that it starts to build, but it immediately stops on the restore step.
OpenShift doesn't…

Peter
- 13,733
- 11
- 75
- 122
0
votes
1 answer
cannot apply sed to the stdout within a docker image
I have a docker file that has an entry point which is an s2i/bin/run script:
#!/bin/bash
export_vars=$(cgroup-limits); export $export_vars
exec /opt/app-root/services.sh
The services.sh script runs php-fpm and nginx:
php-fpm 2>&1
nginx -c…

simbo1905
- 6,321
- 5
- 58
- 86