Skip to content

Comments

Update wget to fix travis builds#3715

Merged
rabbah merged 1 commit intoapache:masterfrom
chetanmeh:wget-update
May 31, 2018
Merged

Update wget to fix travis builds#3715
rabbah merged 1 commit intoapache:masterfrom
chetanmeh:wget-update

Conversation

@chetanmeh
Copy link
Member

@chetanmeh chetanmeh commented May 31, 2018

Fixes Invoker docker build failure by updating the wget version

Description

Travis builds are currently failing (both master and PRs) due to failure in invoker docker build with following errors

Step 6/11 : RUN wget --no-verbose https://storage.googleapis.com/kubernetes-release/release/v${KUBERNETES_VERSION}/bin/linux/amd64/kubectl && chmod +x kubectl && mv kubectl /usr/bin/kubectl
 ---> Running in ddbe33270513
Connecting to storage.googleapis.com (173.194.198.128:443)
ssl_client: storage.googleapis.com: TLS connect failed
wget: error getting response: Connection reset by peer
The command '/bin/sh -c wget --no-verbose https://storage.googleapis.com/kubernetes-release/release/v${KUBERNETES_VERSION}/bin/linux/amd64/kubectl && chmod +x kubectl && mv kubectl /usr/bin/kubectl' returned a non-zero code: 1

However the build passes locally and there seems to be no error with storage.googleapis.com SSL as seen here. Looks like wget shipped with alpine:3.6 is old has some issues and updating that resolves the issue for us.

Related issue and scope

  • I opened an issue to propose and discuss this change (#????)

My changes affect the following components

  • API
  • Controller
  • Message Bus (e.g., Kafka)
  • Loadbalancer
  • Invoker
  • Intrinsic actions (e.g., sequences, conductors)
  • Data stores (e.g., CouchDB)
  • Tests
  • Deployment
  • CLI
  • General tooling
  • Documentation

Types of changes

  • Bug fix (generally a non-breaking change which closes an issue).
  • Enhancement or new feature (adds new functionality).
  • Breaking change (a bug fix or enhancement which changes existing behavior).

Checklist:

  • I signed an Apache CLA.
  • I reviewed the style guides and followed the recommendations (Travis CI will check :).
  • I added tests to cover my changes.
  • My changes require further changes to the documentation.
  • I updated the documentation where necessary.

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@e66945a). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #3715   +/-   ##
=========================================
  Coverage          ?   75.05%           
=========================================
  Files             ?      127           
  Lines             ?     6038           
  Branches          ?      390           
=========================================
  Hits              ?     4532           
  Misses            ?     1506           
  Partials          ?        0

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 e66945a...560daf8. Read the comment docs.

@rabbah rabbah merged commit 07cdffd into apache:master May 31, 2018

RUN apk upgrade --update && \
apk add --update libstdc++ curl ca-certificates bash sed && \
apk add --update libstdc++ curl ca-certificates bash sed wget&& \
Copy link
Member

Choose a reason for hiding this comment

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

Hum no problem with not having a space in wget&& ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like in hurry I forgot to add a space. However it does works and wget gets updated

(12/13) Installing sed (4.4-r0)
(13/13) Installing wget (1.19.5-r0)
Executing busybox-1.26.2-r11.trigger
Executing ca-certificates-20161130-r2.trigger

Would fix this in a new PR

Copy link
Member Author

Choose a reason for hiding this comment

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

Opened PR #3723

@chetanmeh chetanmeh mentioned this pull request Jun 4, 2018
21 tasks
@chetanmeh chetanmeh deleted the wget-update branch June 12, 2018 04:32
whereisaaron added a commit to whereisaaron/awscli that referenced this pull request Jun 16, 2018
The busybox imitation wget in alpine 3.6 appears to have problems with important AWS contexts, like `wget -O - -q http://169.254.169.254/2016-09-02/meta-data/instance-id`

An effective workaround is to include the alpine real 'wget' package. This patch does that.

(Alternatively, reverting to alpine 3.5 apparently also fixes the busybox 'wget')

kubernetes-retired/kube-aws#1369
gliderlabs/docker-alpine#292
gliderlabs/docker-alpine#344
https://git.busybox.net/busybox/commit/?id=a6f8651911716d1d1624712eb19e4f3608767c7e
apache/openwhisk#3715

(It would be nice to have version tags in the 'awscli' repo so people could e.g. (a) revert to the working release, or (b) if this full wget breaks for someone who was counting of some property of the busybox wget.)
BillZong pushed a commit to BillZong/openwhisk that referenced this pull request Nov 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants