Giter Club home page Giter Club logo

Comments (7)

ozbillwang avatar ozbillwang commented on July 17, 2024

Value of ARG in Dockerfile is optional, if don't feed the value, it will use the default one, if set.

My script will handle the AWS_IAM_AUTH_VERSION_URL automatically when new version released

# aws-iam-authenticator latest
iam_auth=$(curl -s https://docs.aws.amazon.com/eks/latest/userguide/install-aws-iam-authenticator.html|grep iam-auth |grep linux|head -1)
iam_auth_url=$(echo ${iam_auth} |grep -oP '(?<=curl -o aws-iam-authenticator )[^<]*'|head -1)

build --no-cache ...... --build-arg AWS_IAM_AUTH_VERSION_URL="${iam_auth_url}" -t ${image}:${tag} .

Please provide the detail, on which tag which image do you have issue.

from k8s.

Gershon-A avatar Gershon-A commented on July 17, 2024

Sorry for the late response.
I used docker pull alpine/k8s:1.13.12

from k8s.

ozbillwang avatar ozbillwang commented on July 17, 2024

I can

$ docker run -ti --rm alpine/k8s:1.13.12 aws-iam-authenticator version
{"Version":"v0.5.0","Commit":"1cfe2a90f68381eacd7b6dcfa2bf689e76eb8b4b"}

from k8s.

Gershon-A avatar Gershon-A commented on July 17, 2024

The problem occurs when I build the repo locally

Step 9/13 : RUN curl -LO ${AWS_IAM_AUTH_VERSION_URL} &&     mv aws-iam-authenticator /usr/bin/aws-iam-authenticator &&     chmod +x /usr/bin/aws-iam-authenticator
 ---> Running in cabcb827ec9c
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
The command '/bin/sh -c curl -LO ${AWS_IAM_AUTH_VERSION_URL} &&     mv aws-iam-authenticator /usr/bin/aws-iam-authenticator &&     chmod +x /usr/bin/aws-iam-authenticator' returned a non-zero code: 2```

from k8s.

ozbillwang avatar ozbillwang commented on July 17, 2024

I see. You try to docker build by yourself. but it doesn't work as this way.

The design for this repo is,

  1. travis CI defines the kubernetes version in .travis.yml
env:
  - tag=1.18.2
  - tag=1.17.5
  - tag=1.16.8
  - tag=1.15.11
  - tag=1.14.9
  - tag=1.13.12
  1. script build.sh will get the latest version of AWS IAM Auth, helm, and rest tools.

  2. Travis CI will trigger the build daily to run the script build.sh

script:
  - bash ./build.sh

So if you want to reuse this repo to build your own image, you can do this way:

export tag=1.13.12

bash ./build.sh

then you need adjust the tag to other kubernetes version and run the build script again.

from k8s.

ozbillwang avatar ozbillwang commented on July 17, 2024

I have updated the README.md for your concern.

https://github.com/alpine-docker/k8s/blob/master/README.md#involve-with-developing-and-testing

from k8s.

Gershon-A avatar Gershon-A commented on July 17, 2024

Thank You!

from k8s.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.