Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit c85d46b

Browse files
committed
Added tools 7/ #2983
1 parent cee64b9 commit c85d46b

18 files changed

+173
-0
lines changed

tools/hub-tool/Dockerfile.template

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
5+
6+
ARG name
7+
ARG version
8+
9+
RUN <<EOF
10+
curl --silent --location "https://github.com/docker/hub-tool/releases/download/v${version}/hub-tool-linux-${alt_arch}.tar.gz" \
11+
| tar --extract --gzip --directory="${prefix}${target}/bin" --strip-components=1 --no-same-owner \
12+
hub-tool/hub-tool
13+
EOF

tools/hub-tool/manifest.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: hub-tool
2+
version: 0.4.5
3+
check: ${binary} --version | cut -d, -f1 | cut -d' ' -f4 | tr -d v
4+
tags:
5+
- org/docker
6+
- type/cli
7+
homepage: https://github.com/docker/hub-tool
8+
description: Docker Hub experimental CLI tool
9+
renovate:
10+
datasource: github-releases
11+
package: docker/hub-tool
12+
extractVersion: ^v(?<version>.+?)$

tools/hub-tool/post_install.sh

Whitespace-only changes.

tools/hub/Dockerfile.template

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
5+
6+
ARG name
7+
ARG version
8+
9+
RUN <<EOF
10+
curl --silent --location "https://github.com/github/hub/releases/download/v${version}/hub-linux-${alt_arch}-${version}.tgz" \
11+
| tar --extract --gzip --directory="${prefix}${target}" --strip-components=1 --no-same-owner
12+
rm -f \
13+
"${prefix}${target}/LICENSE" \
14+
"${prefix}${target}/install" \
15+
"${prefix}${target}/README.md"
16+
mv "${prefix}${target}/etc/hub.bash_completion.sh" "${prefix}${target}/share/bash-completion/completions/hub"
17+
mv "${prefix}${target}/etc/hub.fish_completion" "${prefix}${target}/share/fish/vendor_completions.d/hub.fish"
18+
mv "${prefix}${target}/etc/hub.zsh_completion" "${prefix}${target}/share/zsh/vendor-completions/_hub"
19+
rm -rf \
20+
"${prefix}${target}/share/doc/hub-doc" \
21+
"${prefix}${target}/share/vim"
22+
EOF

tools/hub/manifest.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: hub
2+
version: 2.14.2
3+
check: ${binary} --version | grep ^hub | cut -d' ' -f3
4+
tags:
5+
- org/github
6+
- type/cli
7+
- category/development
8+
- cicd
9+
homepage: https://github.com/github/hub
10+
description: Command-line tool that makes git easier to use with GitHub
11+
renovate:
12+
datasource: github-releases
13+
package: github/hub
14+
extractVersion: ^v(?<version>.+?)$

tools/hub/post_install.sh

Whitespace-only changes.

tools/ignite/Dockerfile.template

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
5+
6+
ARG name
7+
ARG version
8+
9+
RUN <<EOF
10+
curl --silent --location --output "${prefix}${target}/bin/ignite" \
11+
"https://github.com/weaveworks/ignite/releases/download/v${version}/ignite-${alt_arch}"
12+
chmod +x "${prefix}${target}/bin/ignite"
13+
curl --silent --location --output "${prefix}${target}/bin/ignited" \
14+
"https://github.com/weaveworks/ignite/releases/download/v${version}/ignited-${alt_arch}"
15+
chmod +x "${prefix}${target}/bin/ignited"
16+
"${prefix}${target}/bin/ignite" completion >"${prefix}${target}/share/bash-completion/completions/ignite"
17+
"${prefix}${target}/bin/ignited" completion >"${prefix}${target}/share/bash-completion/completions/ignited" || true
18+
EOF

tools/ignite/manifest.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: ignite
2+
version: 0.10.0
3+
check: ${binary} version --output short | tr -d v
4+
dependencies:
5+
- containerd
6+
- cni
7+
tags:
8+
- type/cli
9+
- kvm
10+
- management
11+
- vm
12+
- emulation
13+
homepage: https://github.com/weaveworks/ignite
14+
description: Ignite a Firecracker microVM
15+
renovate:
16+
datasource: github-releases
17+
package: weaveworks/ignite
18+
extractVersion: ^v(?<version>.+?)$

tools/ignite/post_install.sh

Whitespace-only changes.

tools/img/Dockerfile.template

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
5+
6+
ARG name
7+
ARG version
8+
9+
RUN <<EOF
10+
curl --silent --location --output "${prefix}${target}/bin/img" \
11+
"https://github.com/genuinetools/img/releases/download/v${version}/img-linux-${alt_arch}"
12+
chmod +x "${prefix}${target}/bin/img"
13+
EOF

0 commit comments

Comments
 (0)