Questions tagged [s2i]

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.

48 questions
10
votes
2 answers

"Peer's certificate issuer has been marked as not trusted by the user" in Openshift3

If S2I - "Source-to-image" resource in Openshift3 tries to connect to a TLS Gitlab repository shows the following message: "Peer's certificate issuer has been marked as not trusted by the user". How can I instruct Openshift3 which certificates…
Carlos Alberto
  • 7,761
  • 13
  • 52
  • 72
7
votes
2 answers

Docker Inside Docker oom_score_adj: invalid argument

On Kubernetes, to build docker images, we use Docker Inside Docker (dind) where a docker daemon will be running as a privileged user But some times times we have observed that the docker image creation will fail with the below error and I couldn't…
Rajiv
  • 392
  • 6
  • 22
6
votes
0 answers

What is the difference between normal docker image and s2i image?

I tried running a centos:centos7 docker image in interactive mode it worked fine and container started successfully, but when I try running centos/python-36-centos7:latest , the below text was shown instead of container. This is a S2I python-3.6…
3
votes
1 answer

Source To Image not finding C++ libs

I am creating a custom Builder Image using S2i dotnet core. This will run in OpenShift linux container I have modified the custom builder image and included few lines to copy few dlls and ".so" files When running the container in OpenShift I am…
user804401
  • 1,990
  • 9
  • 38
  • 71
3
votes
1 answer

Openshift 3 - Installing dependency from s2i/bin/assemble

I have the following file in the directory for my Openshift project which uses s2i to create a build image. This script attempts to install the cairo package. .s2i/bin/assemble #!/bin/bash echo "Before assembling" sudo yum install…
LegendaryJLD
  • 148
  • 1
  • 1
  • 9
3
votes
2 answers

Multi module maven project not being deployed on OpenShift (S2I)

I'm working on a maven multi module application, which consists of two modules: Common Webapp My project structure is as follow: -(root)pom -Common -Webapp We're using openshift web console with S2I (source to image) deploy. The image…
Bruno Moreira
  • 175
  • 3
  • 15
2
votes
2 answers

Add JAVA_OPTS to jboss-eap70-openshift

We use jboss-eap70-openshift with s2i and openshift origin 3.4. How can I add JAVA_OPTS? I do not want to overwrite them This solution is deprecated Not able to set options in JAVA_OPTS in JBoss openshift
jklee
  • 2,198
  • 2
  • 15
  • 25
1
vote
1 answer

Openshift Docker Strategy - not able to pull maven artifacts from private repo

In OpenShift i am using s2i( docker strategy) . I have configured two repo's public and private in pom.xml . maven is able to pull the artifacts from the public repo , But it could not pull the application specific artifact from the private repo. Is…
user2719441
  • 142
  • 1
  • 2
  • 10
1
vote
1 answer

Openshift source to image build strategy

My campany deployed an Openshift okd4 cluster (4.7) in order to run our api's and web applications. For our build config, we use source to image (s2i) build strategy in order to generate our custom images in conjunction with gitlab to get our source…
Jason dricks
  • 51
  • 1
  • 1
  • 5
1
vote
0 answers

How to deploy laravel project by openshift

I am new to openshift and want to deploy my php Laravel application using openshift commands. I know openshift uses S2I for build images from source code. I create a new application by the ssh URI of my project that is hosted on gitlab using…
Nice91
  • 91
  • 9
1
vote
0 answers

Getting error when passing assemble script to build config through Github source code url in OpenShift

I am trying to pass assemble script of s2i build image to OpenShift build config (builder image is Apache HTTPD 2.4) from Github repo url(where my web application is present). But I am getting this error error: build error: could not download any…
1
vote
1 answer

Wildfly provisioning with galleon. Missing batch (jberet)

I tried to build a minimal Wildfly distribution with galleon with s2i which turned out pretty well so far. But now my application has missing dependencies for batch. So I tried to add batch to GALLEON_PROVISION_LAYERS but it seems there is no batch…
Nekator
  • 53
  • 1
  • 7
1
vote
1 answer

Adding Labels to Images with Openshift s2i Binary build

I would like to add some labels (commit hash, branch name,...) to images I create using Openshift source-to-image binary build. These labels will have naturally different values for every build. Currently oc start-build does not even support -e…
csviri
  • 1,159
  • 3
  • 16
  • 31
1
vote
0 answers

The right dotnet core SDK image to build this 2.1.300 app?

I have a Visual Studio application which we would like to build and deploy with OpenShift, and have already a success doing a manual build by pointing to the github repository holding the sources. As far as I can see this mean that OpenShift uses…
Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347
1
vote
1 answer

Setting Environment Variables in S2I

Currently I am attempting to set an environment variable from my S2I assemble file like so export VARIABLE=some_dynamic_value When I actually run the container built by my builder, the environment variable does not exist. Is there a way for the…
Narek
  • 548
  • 6
  • 26
1
2 3 4