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

feat: Swapped out centos for alpine #4412

Closed
wants to merge 1 commit into from
Closed

feat: Swapped out centos for alpine #4412

wants to merge 1 commit into from

Conversation

cagiti
Copy link
Contributor

@cagiti cagiti commented Jun 25, 2019

Makes the jx image a little lighter :)

@jenkins-x-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: cagiti

If they are not already assigned, you can assign the PR to them by writing /assign @cagiti in a comment when ready.

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cagiti cagiti changed the title Swapped out centos for alpine feat: Swapped out centos for alpine Jun 25, 2019
@tdcox
Copy link
Contributor

tdcox commented Jun 25, 2019

Is this going to have a knock-on effect to the other builder images?

@@ -1,7 +1,9 @@
FROM centos:7
FROM alpine:3.10

Choose a reason for hiding this comment

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

+1, I love the idea of switching to Alpine. I am using Alpine myself when testing images and have a very similar Dockerfile. It makes building and pushing custom images more lightweight. For what it's worth I am using:

FROM alpine:3.10

RUN apk --update add ca-certificates git

COPY ./build/linux/jx /usr/bin/jx

I find the current ENTRYPOINT just gets into the way when using the image. I'd remove it.

One thing to keep in mind here is that we might want to try to align the used based images. @jstrachan and I had a discussion around this the other day and James was interested in somehow trying to align on a common base image. Also, he mentioned that centos was originally used due to some issues (DNS!?) with Alpine. For my part I have not seen any problems yet.

Copy link
Contributor

Choose a reason for hiding this comment

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

Alpine has had horrendous issues relating to DNS resolution within Kubernetes that they never seemed to be able to resolve and generally blamed upon “dependencies outside their control”.

Alpine is also not compatible with certain physical infrastructure in the cloud, such as GPU cards, due to a lack of driver support. For this reason, the machine learning builders require Centos.

Choose a reason for hiding this comment

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

Alpine has had horrendous issues relating to DNS resolution within Kubernetes that they never seemed to be able to resolve and generally blamed upon “dependencies outside their control”.

I guess you are referring to gliderlabs/docker-alpine#255. I was not aware of this issue and have not noticed it before.

I wonder though if it is really alpine specific. I wonder whether the issues we seeing at times to clone a git repo are not also related to DNS issues. But that's just a guess.

That said, I am not bound to alpine at all. I just would like to have a more leight weight default image.

Alpine is also not compatible with certain physical infrastructure in the cloud, such as GPU cards, due to a lack of driver support. For this reason, the machine learning builders require Centos.

Sure, there are always special needs. But in the end you can always use custom images, right?

But maybe this should be discussed on an issue instead.

Choose a reason for hiding this comment

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

I opened #4481

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this going to have a knock-on effect to the other builder images?

It shouldn't, I don't believe this is used as a base image

Choose a reason for hiding this comment

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

How do we move forward with this PR?

@hferentschik
Copy link

/test all

@codecov
Copy link

codecov bot commented Jun 27, 2019

Codecov Report

Merging #4412 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4412      +/-   ##
==========================================
- Coverage   43.84%   43.82%   -0.02%     
==========================================
  Files         817      825       +8     
  Lines      103400   104467    +1067     
==========================================
+ Hits        45337    45785     +448     
- Misses      54121    54677     +556     
- Partials     3942     4005      +63
Flag Coverage Δ
#e2e 30.5% <ø> (-0.16%) ⬇️
#integration 42.2% <ø> (-0.06%) ⬇️
Impacted Files Coverage Δ
pkg/cmd/step/verify/common.go 0% <0%> (-17.25%) ⬇️
pkg/gits/helpers.go 32.49% <0%> (-4.25%) ⬇️
pkg/config/project_config.go 62.29% <0%> (-3.5%) ⬇️
pkg/helm/values_tree.go 60% <0%> (-2.72%) ⬇️
pkg/config/install_requirements.go 67.74% <0%> (-2.26%) ⬇️
pkg/cmd/step/create/step_create_task.go 35.34% <0%> (-1.65%) ⬇️
pkg/cmd/uninstall/uninstall.go 62.59% <0%> (-1.53%) ⬇️
pkg/cmd/create/create_cluster_gke.go 9.3% <0%> (-0.81%) ⬇️
pkg/gits/gerrit.go 26.19% <0%> (-0.64%) ⬇️
pkg/tekton/pipelines.go 32.9% <0%> (-0.58%) ⬇️
... and 54 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a99173c...6ab3058. Read the comment docs.

@jenkins-x-bot
Copy link
Contributor

@cagiti: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
integration 9007684 link /test integration

View all Builds for this Pull Request

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hferentschik
Copy link

@cagiti shall we close this PR for now?

@cagiti cagiti closed this Aug 1, 2019
@cagiti cagiti deleted the swap_to_alpine_linux branch August 1, 2019 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants