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
1
vote
1 answer
Wrap given s2i scripts with my snippets of code
I want to wrap the existing s2i scripts given in openshift. I want to add to export two more environment variables in the run script.
I don't want to override the existing ones , i just want to extend them.
Cheers

WorriedGuy
- 13
- 2
1
vote
0 answers
Custom s2i in OpenShift as an Image Stream - permissions error
I have am using a custom Source-to-image project for build drupal images, to run on OpenShift.
The s2i project works well when run locally, from the cli.
I tried to set this up in OpenShift using instructions from…

Magick
- 4,603
- 22
- 66
- 103
1
vote
1 answer
Setting fabric8/s2i-java version with fmp
What is the best way to set fabric8/s2i-java image version in fmp? Maybe a property exists to override it?
So far the only way I found is like in this example where image name, base image, assembly and env are needed.

gytis
- 38
- 5
0
votes
0 answers
The s2i build --as-dockerfile command get a warning
im using openshift local on wmware, when run this command
s2i build test/test-app/ s2i-do288-httpd s2i-sample-app \
--as-dockerfile ~/s2i-sample-app/Containerfile
get this warning
WARNING: could not inspect the builder image for labels:…

Massimo
- 141
- 1
- 2
- 13
0
votes
1 answer
Nodejs hot deployment workflow with S2I
I'm confused about the proper way to do hot deployment when developing a node js app while using S2I for building images. With Docker, the answer is to use bind mounts, which allows changes made on the host be become visible to nodemon running…

Tomek Dobrzynski
- 87
- 1
- 7
0
votes
0 answers
npm ERR! Load key "/opt/app-root/src/.ssh/id_rsa": bad permissions in OCP S2I build
I have node applications where some dependency git repos specified in package.json and deploying using S2I in OCP. To clone the repos I have mounted the sshkey as a secret into /opt/app-root/src/.ssh .. But the permissions are coming default 6 to…
0
votes
2 answers
How to supply multiple ImagePullSecrets to an s2i build in OpenShift
I'm trying to build an OCI image using the s2i mechanism of OpenShift.
The Dockerfile is multi-stage, both base images are hosted inside two different, only privately accessible docker repositories.
My BuildConfig looks like this:
apiVersion:…

VeryDogeWow
- 142
- 7
0
votes
0 answers
Openshift Angular Application S2I Build ImagePullBackOff
Trying to complete Openshift S2I build using NodeJS builder image, running into the error: npm ERR! enoent ENOENT: no such file or directory, open '/opt/app-root/src/package.json'.
Here are the logs of the build
Adding cluster TLS certificate…

DomRom123
- 1
- 2
0
votes
0 answers
OpenShift/Tekton - Retrieve build artefacts from s2i-java task
Is there a way to retrieve the build artefacts from a s2i build, so I can send it along to SonarQube in a pipeline?
Just trying to simplify a pipeline as to not build twice. SonarQube code quality for Java requires the jars to be sent but s2i seems…

TedEllis
- 66
- 6
0
votes
0 answers
Nuget not restoring packages in Linux Agent
We are using OpenShift S2i build to create image for our project.
Below is the command we are using
./s2i build http://agent001:8080/tfs/IT/_git/emp-services-repo --ref=S2i registry.access.redhat.com/ubi8/dotnet-31 --copy emp-service
It fails with…

Riley
- 21
- 1
- 5
0
votes
2 answers
S2i build command pass user name password in Azure Devops pipeline
We are using S2i Build command in our Azure Devops pipeline and using the below command task.
`./s2i build http://azuredevopsrepos:8080/tfs/IT/_git/shoppingcart --ref=S2i registry.access.redhat.com/ubi8/dotnet-31 --copy shopping-service`
The…

Riley
- 21
- 1
- 5
0
votes
0 answers
Nuget Restore issue while creating S2i Image build
I am getting the below error while trying to restore NuGet packages in the S2i Image process.
Code:
0
votes
1 answer
OpenShift Source to Image push to private artifactory
We were able to successfully build our app using OpenShift Source To Image Patterns and create a Pod.
I have few questions around this S2I
Where can I find the Image that is built using S2I in OpenShift ?
How can I push the image that is created…

Riley
- 21
- 1
- 5
0
votes
1 answer
DotnetCore Custom S2i OpenShift Image
I am looking to create a custom S2i image for dotnetcore 3.1
I could not find much examples in OpenShift documentation
Can anyone provide some example reference of any custom image built for S2i in dotnetcore 3.1
Also looking on how to get this…

Riley
- 21
- 1
- 5
0
votes
1 answer
Build image with s2i for local repository
I am trying to build an image using s2i local source code repository following this documentation https://github.com/openshift/source-to-image/blob/master/docs/cli.md . So far I managed to create the image and to generate the s2i scripts using -
s2i…

mastaofthepasta
- 91
- 1
- 2
- 9