Skip to content

Commit d2e0c72

Browse files
committed
real fix
1 parent 3b517f2 commit d2e0c72

File tree

5 files changed

+52
-20
lines changed

5 files changed

+52
-20
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ ENV LANG=C.UTF-8 PATH=/home/asdf/.asdf/bin:/home/asdf/.asdf/shims:$PATH
2222
WORKDIR /home/asdf
2323

2424
# install plugins and versions
25-
RUN asdf plugin add kubectl && \
26-
asdf plugin add helm && \
27-
asdf plugin add skaffold && \
28-
asdf plugin add velero
25+
RUN asdf plugin-add kubectl && \
26+
asdf plugin-add helm && \
27+
asdf plugin-add skaffold && \
28+
asdf plugin-add velero
2929

3030
ENTRYPOINT ["/bin/bash"]

README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,28 @@ Allow to install and use a set of tools by setting up a `.tool-versions` in your
88
* More infos at [https://asdf-vm.com]()
99
* Gihtub repo: https://github.com/webofmars/docker-asdf
1010

11+
## Available tags
1112

12-
## available tags
13-
14-
See here: [https://github.com/asdf-vm/asdf/releases]()
13+
See here: [https://github.com/webofmars/docker-asdf/blob/master/versions.txt]()
1514

1615
Tags are the same of the versions published in this repo (v0.7.8 as time of writting)
1716

18-
## usage
17+
## Usage
18+
19+
### As a working tool on your desktop
1920

20-
### as a working tool on your desktop
21+
Exemple with kubectl:
2122

22-
Ex with kubectl:
23-
- `docker run --rm -it -v $HOME/.kube/config:/home/asdf/.kube/config -it webofmars/asdf`
24-
- `asdf install kubectl 1.17.5`
25-
- `asdf local kubectl 1.17.5`
26-
- `kubectl version --short`
23+
* `docker run --rm -it -v $HOME/.kube/config:/home/asdf/.kube/config -it webofmars/asdf`
24+
* `asdf install kubectl 1.17.5`
25+
* `asdf local kubectl 1.17.5`
26+
* `kubectl version --short`
2727

28-
### in your ci/cd builds
28+
### In your ci/cd builds
2929

30-
Ex with `.gitlab-ci.yml`:
31-
- TBD
30+
Ex with `.gitlab-ci.yml`: TO BE DONE
3231

33-
### in you own Dockerfiles
32+
### In you own Dockerfiles
3433

3534
Ex install Node.js:
3635

generate-versions-list.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
# safer than rm
4+
echo > versions.txt
5+
6+
while read VERSION; do
7+
echo "+ testing version $VERSION localy"
8+
if docker build --pull -t $IMAGE_NAME:$VERSION --build-arg ASDF_VERSION=$VERSION .; then
9+
echo $VERSION >> versions.txt
10+
fi
11+
docker image rm $IMAGE_NAME:$VERSION
12+
done < <(git ls-remote https://github.com/asdf-vm/asdf.git | grep -o -E 'refs/tags/v[A-Za-z0-9\.-]*' | sed 's:refs/tags/::' | sort -rV)

generator.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/bash
22

33
while read VERSION; do
4+
echo "+ building "
45
docker build --pull -t $IMAGE_NAME:$VERSION --build-arg ASDF_VERSION=$VERSION .
5-
docker push $IMAGE_NAME:$VERSION
6-
done < <(git ls-remote https://github.com/asdf-vm/asdf.git | grep -o -E 'refs/tags/v[A-Za-z0-9\.-]*' | sed 's:refs/tags/v::' | sort -V)
6+
echo docker push $IMAGE_NAME:$VERSION
7+
exit 0
8+
done < <(cat versions.txt)

versions.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
v0.7.8
2+
v0.7.7
3+
v0.7.6
4+
v0.7.5
5+
v0.7.4
6+
v0.7.3
7+
v0.7.2
8+
v0.7.1
9+
v0.7.0
10+
v0.6.3
11+
v0.6.2
12+
v0.6.1
13+
v0.6.0
14+
v0.5.1
15+
v0.5.0
16+
v0.4.3
17+
v0.4.2
18+
v0.4.1
19+
v0.4.0

0 commit comments

Comments
 (0)