Comments (22)
Can you give us steps to recreate? what STI image, what STI scripts, what commit level of STI, etc?
(also what docker version)
from source-to-image.
I've been using the https://github.com/fabric8io/base-sti base image. The sti scripts are part of the image and they are referenced using their github url.
My docker is at 1.4.1 and I'll try to upgrade and see if it makes any difference.
Here's an example of how I use the command:
sti build https://github.com/fabric8io/example-camel-cdi.git fabric8/base-sti fabric8/camel-example --loglevel=3
from source-to-image.
yup, I was able to reproduce this just running your sti command. and I do see the container has exited after running assemble successfully.
Given that the sti output hangs partway through the assemble script output, i'm guessing we're screwing up/overfilling a buffer somewhere. @soltysh can you take a look?
from source-to-image.
The behaviour that I see makes me feel that the issue is related with the readers of the containers output and error. It seems like on of them stops reading and fails to close preventing the method to return? (limited understanding of golang here).
from source-to-image.
in the meantime, could you edit your assemble script to redirect the maven output to /dev/null? that might let you make progress...
from source-to-image.
It does seem to make a difference.
from source-to-image.
Looking...
from source-to-image.
Using the latest master, I still have the same issue.
from source-to-image.
@iocanel can you please check this once more. I just did a fresh build of STI (this revision) and the command:
sti build https://github.com/fabric8io/example-camel-cdi.git fabric8/base-sti fabric8/camel-example --loglevel=3
worked without any problem resulting in fabric8/camel-example
image. The only problem I hit was running that result image ended in:
$ docker run fabric8/camel-example
/tmp/scripts/run: line 3: deploy-and-start: command not found
But that is not a STI problem from what I see. If you're still hitting the problem, please include the entire output of the build here (with --loglevel=5
), I'll try to have a closer look at it.
from source-to-image.
Will check and get back to you.
from source-to-image.
I'm seeing this too. It feels like the build is stuck on downloading some Maven artifacts in my case, but in fact, the build container already exited with status 0
and new image was created as it should. My example command is:
$ sti build --loglevel=5 --forcePull=false https://github.com/goldmann/openshift-examples --contextDir=spring-eap6-quickstart 8fffd6ce363a test-jee-app
Where the 8fffd6ce363a
image is a custom EAP image, but probably the wildfly8-centos
image could be used too.
One note: this does not happen every time. If I re-run the command, there is a high chance that I'll get the full output.
from source-to-image.
Any news on this? Since we added STI to our CI this is now failing our builds.
from source-to-image.
@goldmann this might fix you (--assebleOutput=false)
from source-to-image.
@mfojtik Well, this is more like a workaround :) Is there a way to redirect the output to somewhere? We would still need the logs for further investigation.
from source-to-image.
@goldmann sorry but I can't still reproduce it and I'm still investigating the the source of the problem.
from source-to-image.
@soltysh Fair enough, update this issues if you have something. Thanks!
from source-to-image.
@goldmann still an issue?
from source-to-image.
Haven't seen it in a while.
from source-to-image.
closing, feel free to reopen if it recurs.
from source-to-image.
After we upgraded to ac0b251, there is no output at all on our CI and the STI process is waiting (hanging) forever for the container, which exited cleanly.
Last lines of the container log:
Downloading: https://maven.repository.redhat.com/techpreview/all/org/apache/apache/7/apache-7.pom
Downloading: https://repository.jboss.org/nexus/content/groups/public/org/apache/apache/7/apache-7.pom
[WARNING] Checksum validation failed, no checksums available from the repository for https://repository.jboss.org/nexus/content/groups/public/org/apache/apache/7/apache-7.pom
Downloaded: https://repository.jboss.org/nexus/content/groups/public/org/apache/apache/7/apache-7.pom (15 KB at 7.4 KB/sec)
Downloading: https://maven.repository.redhat.com/techpreview/all/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar
Downloading: https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar
[WARNING] Checksum validation failed, no checksums available from the repository for https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar
Downloaded: https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar (23 KB at 13.5 KB/sec)
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ spring-eap6-quickstart ---
[INFO] Deleting /home/jboss/source/target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.249s
[INFO] Finished at: Mon May 18 14:02:34 EDT 2015
[INFO] Final Memory: 17M/903M
[INFO] ------------------------------------------------------------------------
Copying all WAR and EAR artifacts from /home/jboss/source/deployments directory into /opt/eap/standalone/deployments for later deployment...
'/home/jboss/source/deployments/ROOT.war' -> '/opt/eap/standalone/deployments/ROOT.war'
from source-to-image.
@goldmann is #149 (comment) still a reproducer for this?
from source-to-image.
Just to let all know - we talked with @mfojtik and the issue is probably with the goroutines and wait when reading the container output.
from source-to-image.
Related Issues (20)
- latest release doesn't work anymore HOT 5
- Issue with multi stage builds HOT 11
- using assemble script on the runtime image during s2i build with --runtime-image instead of assemble-runtime script HOT 4
- Docker dep ? HOT 1
- s2i build, regression with 1.3.2 HOT 12
- Build s2i releases for AArch64 HOT 2
- The `--exclude` flag is not used in `--as-dockerfile` mode. HOT 1
- could not inspect the builder image for labels: choosing image instance: no image found in manifest list for architecture amd64, variant "", OS darwin HOT 1
- Image building problems - docker authentification - Mac OS - Docker desktop HOT 6
- Is it possible to use podman for s2i build? HOT 3
- s2i build command always uses 'latest' tag
- s2i build --as-dockerfile not using local .s2i/[assemble, run] when builder image present HOT 4
- ERROR: --runtime-image cannot be used with --as-dockerfile HOT 3
- pull policy "if-not-present" yet still querying remote registry HOT 11
- docker client api version 1.43 is "too new", can s2i support talking older dialects? HOT 5
- Unable to use s2i using Amazon EC2 Linux 2023 HOT 8
- Any usage of s2i fails with "ERROR: An error occurred: http: invalid Host header"
- Scripts under .s2i/bin detected but not changing the DockerFile configuration HOT 2
- brew-installed s2i cannot enable tab completion HOT 2
- can't seem to authenticate to my private registry using s2i build HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from source-to-image.