Skip to content

Commit

Permalink
Merge pull request #26 from href/main
Browse files Browse the repository at this point in the history
Make script runnable on Alpine, faster Kubernetes builds
  • Loading branch information
pothos authored Sep 18, 2023
2 parents 2f100eb + 6737285 commit 33e0e21
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bake.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail

OS="${OS-flatcar}"
Expand Down
2 changes: 1 addition & 1 deletion convert_torcx_image.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail

SCRIPTFOLDER="$(dirname "$(readlink -f "$0")")"
Expand Down
2 changes: 1 addition & 1 deletion create_docker_compose_sysext.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail

export ARCH="${ARCH-x86-64}"
Expand Down
2 changes: 1 addition & 1 deletion create_docker_sysext.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail

export ARCH="${ARCH-x86-64}"
Expand Down
9 changes: 5 additions & 4 deletions create_kubernetes_sysext.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail

export ARCH="${ARCH-x86-64}"
Expand Down Expand Up @@ -30,9 +30,10 @@ fi
rm -f kubectl kubeadm kubelet

# install kubernetes binaries.
curl -o kubectl -fsSL "https://dl.k8s.io/${VERSION}/bin/linux/${ARCH}/kubectl"
curl -o kubeadm -fsSL "https://dl.k8s.io/${VERSION}/bin/linux/${ARCH}/kubeadm"
curl -o kubelet -fsSL "https://dl.k8s.io/${VERSION}/bin/linux/${ARCH}/kubelet"
curl --parallel --fail --silent --show-error --location \
--output kubectl "https://dl.k8s.io/${VERSION}/bin/linux/${ARCH}/kubectl" \
--output kubeadm "https://dl.k8s.io/${VERSION}/bin/linux/${ARCH}/kubeadm" \
--output kubelet "https://dl.k8s.io/${VERSION}/bin/linux/${ARCH}/kubelet"

rm -rf "${SYSEXTNAME}"
mkdir -p "${SYSEXTNAME}"/usr/bin
Expand Down
2 changes: 1 addition & 1 deletion create_wasmtime_sysext.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail

export ARCH="${ARCH-x86-64}"
Expand Down

0 comments on commit 33e0e21

Please sign in to comment.