File tree Expand file tree Collapse file tree 5 files changed +52
-20
lines changed Expand file tree Collapse file tree 5 files changed +52
-20
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ ENV LANG=C.UTF-8 PATH=/home/asdf/.asdf/bin:/home/asdf/.asdf/shims:$PATH
22
22
WORKDIR /home/asdf
23
23
24
24
# 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
29
29
30
30
ENTRYPOINT ["/bin/bash" ]
Original file line number Diff line number Diff line change @@ -8,29 +8,28 @@ Allow to install and use a set of tools by setting up a `.tool-versions` in your
8
8
* More infos at [ https://asdf-vm.com ] ( )
9
9
* Gihtub repo: https://github.com/webofmars/docker-asdf
10
10
11
+ ## Available tags
11
12
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 ] ( )
15
14
16
15
Tags are the same of the versions published in this repo (v0.7.8 as time of writting)
17
16
18
- ## usage
17
+ ## Usage
18
+
19
+ ### As a working tool on your desktop
19
20
20
- ### as a working tool on your desktop
21
+ Exemple with kubectl:
21
22
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 `
27
27
28
- ### in your ci/cd builds
28
+ ### In your ci/cd builds
29
29
30
- Ex with ` .gitlab-ci.yml ` :
31
- - TBD
30
+ Ex with ` .gitlab-ci.yml ` : TO BE DONE
32
31
33
- ### in you own Dockerfiles
32
+ ### In you own Dockerfiles
34
33
35
34
Ex install Node.js:
36
35
Original file line number Diff line number Diff line change
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)
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
while read VERSION; do
4
+ echo " + building "
4
5
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)
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments