-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
switch to ubuntu:bionic for base image #256
Conversation
* resolve compatibility issue between busybox vs coreutil `timeout` Signed-off-by: Bohan Chen <bochen@pivotal.io>
The ubuntu package `docker` is outdated and we should be using `docker-ce` instead Signed-off-by: Bohan Chen <bochen@pivotal.io>
Signed-off-by: Bishoy Youssef <byoussef@pivotal.io> Co-authored-by: Bohan Chen <bochen@pivotal.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing updates to the README to reflect the ability to now build and test with both alpine and ubuntu as base images.
It'd also be good to make sure that the removal of the -t
flag is not a problem.
- busybox (alpine) `timeout` uses `-t` for duration - coreutils (ubuntu) `timeout` duration is a required argument - add logic to detect which linux distro and use the appropriate flags Signed-off-by: Bin Ju <bju@pivotal.io> Co-authored-by: Bohan Chen <bochen@pivotal.io>
Signed-off-by: Bin Ju <bju@pivotal.io> Co-authored-by: Bohan Chen <bochen@pivotal.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(whopsy)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems good to me, but the tests indicate a failure in the way we're using that flag:
docker build -t a:alpine -f ./dockerfiles/alpine/Dockerfile .
leads to
• Failure [0.425 seconds]
Out
/go/src/github.com/concourse/docker-image-resource/tests/out_test.go:18
when cache_from images are specified
/go/src/github.com/concourse/docker-image-resource/tests/out_test.go:575
passes the arguments correctly to the docker build command [It]
/go/src/github.com/concourse/docker-image-resource/tests/out_test.go:631
Got stuck at:
timeout: unrecognized option: t
BusyBox v1.30.1 (2019-02-16 10:01:46 UTC) multi-call binary.
Usage: timeout [-s SIG] SECS PROG ARGS
Runs PROG. Sends SIG to it if it is not gone in SECS seconds.
Default SIG: TERM.
Docker failed to start within 120 seconds.
cat: can't open '/tmp/docker.pid': No such file or directory
Waiting for:
DOCKER ARG: --cache-from
pulled new version of
Before:
Good old busybox version bumps |
- busybox 1.30.x `timeout` uses same arg pattern as coreutils `timeout` Signed-off-by: Bin Ju <bju@pivotal.io> Co-authored-by: Bohan Chen <bochen@pivotal.io>
Hey, I still have problems here from a clean environment (no images & from a fresh clone):
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests still showing some problems related to timeouts
Worked with @cirocosta and it seemed to be a flake |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
Part of concourse/concourse#3266
timeout
docker
nicely, ubuntu requires adding docker's own repository