Skip to content

Commit

Permalink
Merge pull request #302 from AkihiroSuda/init-host
Browse files Browse the repository at this point in the history
Move init-host out of the `hack` directory
  • Loading branch information
AkihiroSuda committed Sep 15, 2023
2 parents 462ccf0 + e8f963b commit 2ab0861
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ EOF
sudo sysctl --system
```

Use scripts in [`./init-host`](./init-host) for automating these steps.

## Usage
See `make help`.

Expand Down
1 change: 1 addition & 0 deletions hack/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This directory contains testing utilities.
4 changes: 2 additions & 2 deletions hack/create-cluster-lxd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ SCP="scp -F ${HOME}/.u7s-ci-hosts/ssh_config"
SSH="ssh -F ${HOME}/.u7s-ci-hosts/ssh_config"
for host in host0 host1; do
$SCP -r "$(pwd)" "${host}:~/usernetes"
$SSH "${USER}-sudo@${host}" sudo "~${USER}/usernetes/hack/init-host.root.sh"
$SSH "${USER}-sudo@${host}" sudo "~${USER}/usernetes/init-host/init-host.root.sh"
$SSH "${USER}-sudo@${host}" sudo loginctl enable-linger "${USER}"
$SSH "${host}" ~/usernetes/hack/init-host.rootless.sh
$SSH "${host}" ~/usernetes/init-host/init-host.rootless.sh
done

# Launch a Kubernetes node inside a Rootless Docker host
Expand Down
7 changes: 7 additions & 0 deletions init-host/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This directory contains scripts for initializing host operating systems.

Usage:
```bash
sudo ./init-host.root.sh
./init-host.rootless.sh
```
File renamed without changes.
File renamed without changes.

0 comments on commit 2ab0861

Please sign in to comment.