This is an automated email from the ASF dual-hosted git repository. msciabarra pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/openserverless.git
commit dc08583d874372e0fea607384ce076478a2ef6e5 Author: Michele Sciabarra <[email protected]> AuthorDate: Sat Jul 6 10:39:27 2024 +0200 fix --- README.md | 5 +++++ cloud-init.yaml | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 499f5a2..983811b 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,13 @@ The method we use to setup a VM in Linux and Mac is using [multipass](https://mu Once you have `multipass` type the following + ``` +multipass launch -nopenserverless -c4 -d20g -m8g --cloud-init cloud-init.yaml + + multipass launch -nopenserverless -c4 -d20g -m8g --cloud-init https://raw.githubusercontent.com/nuvolaris/openserverless/main/cloud-init.yaml + multipass exec "openserverless" -- sudo cloud-init status --wait ``` diff --git a/cloud-init.yaml b/cloud-init.yaml index ac9fbe1..d0d4163 100644 --- a/cloud-init.yaml +++ b/cloud-init.yaml @@ -9,9 +9,9 @@ runcmd: - > curl -sfL https://direnv.net/install.sh | bash - | - USR= "$(getent passwd 1000 | awk -F: '{print $1}')" + USR="$(getent passwd 1000 | awk -F: '{print $1}')" mkdir -p "/home/$USR/.kube" cp /etc/rancher/k3s/k3s.yaml "/home/$USR/.kube/config" - chown -Rvf $USR "/home/$USR/.kube" - curl -L https://nixos.org/nix/install | sudo -u $USR sh -s -- --daemon + chown -Rvf "$USR" "/home/$USR/.kube" + curl -L https://nixos.org/nix/install | sudo -u "$USR" sh -s -- --daemon \ No newline at end of file
