Comments (7)
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.
Sorry for the late response.
I used docker pull alpine/k8s:1.13.12
from k8s.
I can
$ docker run -ti --rm alpine/k8s:1.13.12 aws-iam-authenticator version
{"Version":"v0.5.0","Commit":"1cfe2a90f68381eacd7b6dcfa2bf689e76eb8b4b"}
from k8s.
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.
I see. You try to docker build
by yourself. but it doesn't work as this way.
The design for this repo is,
- 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
-
script build.sh will get the latest version of AWS IAM Auth, helm, and rest tools.
-
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.
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.
Thank You!
from k8s.
Related Issues (20)
- kubectl broken in latest builds HOT 6
- Candidate Tools to add HOT 24
- Is it possible to remove test data keys from the image build to avoid container security scanning alerts? HOT 5
- Environment variables not expanded. HOT 1
- Compatible with arm64 HOT 3
- Helm plugins are no longer installed HOT 3
- add automation test in build pipeline HOT 1
- support azure cli as well HOT 4
- Update Helm Unittest repository HOT 2
- Compatibility of Helm with K8s HOT 1
- ansible HOT 1
- Vulnerabilities on this image HOT 1
- about azure-tool HOT 1
- Missing colordiff as external diff for kubectl HOT 2
- Install helm plugin: helm-secrets HOT 3
- Add kubeconform HOT 3
- No new image releases for alpine/k8s on docker-hub? HOT 4
- add helmfile HOT 2
- Please include openssl HOT 4
- No new images releases for alpine/k8s on docker-hub? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k8s.