Skip to content

Commit

Permalink
optimize rootfs scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevent-fei committed Dec 5, 2022
1 parent 64488f3 commit 0e93959
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions context/rootfs/scripts/init-kube.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

# shellcheck disable=SC2046
# shellcheck disable=SC2164
scripts_path=$(cd `dirname $0`; pwd)
source "${scripts_path}"/utils.sh

Expand Down
3 changes: 3 additions & 0 deletions context/rootfs/scripts/init-registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
set -e
set -x
# prepare registry storage as directory
# shellcheck disable=SC2046
cd $(dirname "$0")

# shellcheck disable=SC2034
REGISTRY_PORT=${1-5000}
VOLUME=${2-/var/lib/registry}
REGISTRY_DOMAIN=${3-sea.hub}
Expand All @@ -31,6 +33,7 @@ image_dir="$rootfs/images"

mkdir -p "$VOLUME" || true

# shellcheck disable=SC2106
startRegistry() {
n=1
while (( n <= 3 ))
Expand Down

0 comments on commit 0e93959

Please sign in to comment.