Skip to content
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

Dockerfile: some refactoring, and switch to "buster" variant #2234

Merged
merged 5 commits into from
Mar 30, 2020

Conversation

thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Feb 23, 2020

Debian buster is the current stable, so might be good to switch to that version; also did some refactoring of the dockerfile (see individual commits for details).

I'll open a follow-up PR to update to go 1.13, but thought to first make the switch to "buster" to keep changes smaller.

@AkihiroSuda
Copy link
Member

AkihiroSuda commented Mar 9, 2020

LGTM

Approved with PullApprove

@thaJeztah
Copy link
Member Author

@cyphar @crosbymichael @kolyshkin LGTY?

Dockerfile Outdated
&& apt-get clean
&& dpkg --add-architecture ppc64el

RUN apt-get update && apt-get install -y --no-install-recommends \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason for splitting a single RUN statement into two?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dpkg --add-architecture does not have to be re-run when we do apt-get update, and I thought it was slightly cleaner, but let me know if you feel strongly about that

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like a single RUN slightly better, but I'm fine either way

Copy link
Contributor

@kolyshkin kolyshkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AkihiroSuda
Copy link
Member

needs rebase

@kolyshkin
Copy link
Contributor

@thaJeztah could you please rebase it?

@mrunalp can we merge it? It is needed to unblock #2239 which, in turn, is needed to unblock a few PRs that require golang 1.13

@mrunalp
Copy link
Contributor

mrunalp commented Mar 27, 2020

Yeah, but it needs a rebase now :/

@thaJeztah thaJeztah force-pushed the debian_buster branch 2 times, most recently from 14dd443 to 1351fa1 Compare March 30, 2020 09:05
@thaJeztah
Copy link
Member Author

@kolyshkin @mrunalp @AkihiroSuda sorry for the delay; rebased and combined the two RUN's again while at it

@AkihiroSuda
Copy link
Member

AkihiroSuda commented Mar 30, 2020

LGTM

Approved with PullApprove

@kolyshkin
Copy link
Contributor

CI failure is unrelated and is fixed by #2268

@mrunalp
Copy link
Contributor

mrunalp commented Mar 30, 2020

LGTM

Approved with PullApprove

@crosbymichael
Copy link
Member

can you rebase for the CI fix?

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Move adding the source code to the end, so that the busybox rootfs
doesn't have to be fetched again on each code change.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

Rebased 👍

@AkihiroSuda
Copy link
Member

AkihiroSuda commented Mar 30, 2020

LGTM

Approved with PullApprove

1 similar comment
@mrunalp
Copy link
Contributor

mrunalp commented Mar 30, 2020

LGTM

Approved with PullApprove

@AkihiroSuda
Copy link
Member

Flaky failure in systemd test seems unrelated. Merging.

$ travis_setup_go
gimme: given '1.13.x' but no release for '1.13' found
gimme: given '1.13.x' but no release for '1.13' found
Failed to run gimme
The command "travis_setup_go" failed and exited with 86 during .

https://travis-ci.org/github/opencontainers/runc/jobs/668927361?utm_medium=notification&utm_source=github_status

@AkihiroSuda AkihiroSuda merged commit 4a9e174 into opencontainers:master Mar 30, 2020
@thaJeztah thaJeztah deleted the debian_buster branch March 30, 2020 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants