6 Commits

Author SHA1 Message Date
Jan Dubois
1ee48338a8 Run nerdctl via sudo
Also needs to pass-through CONTAINERD_ADDRESS because we set it in
~/.profile and not yet in /etc/environment.

Signed-off-by: Jan Dubois <jan.dubois@suse.com>
2021-09-22 12:10:39 -07:00
Jan Dubois
fb78b341c3 Rename scriptname → scriptdir
This rename was done before manually, but 2 instances were missed.

Signed-off-by: Jan Dubois <jan.dubois@suse.com>
2021-09-16 10:07:46 -07:00
Matt Farina
7505928dbe Updating nerdctl script to new storage location
Signed-off-by: Matt Farina <matt.farina@suse.com>
2021-09-15 13:37:44 -04:00
Matt Farina
17498aa420 Updating the nerdctl script based on Jan's feedback
Signed-off-by: Matt Farina <matt.farina@suse.com>
2021-09-15 13:33:28 -04:00
Matt Farina
d778999c72 Improving the nerdctl detection of running rd
Based on feedback from Jan.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2021-09-15 13:33:28 -04:00
Matt Farina
bc2c0974c9 Add support for nerdctl on macos.
This includes:
- nerdctl as a CLI that can be added to the path like the other
  tools.
- An updated version of alpine-lima that includes nerdctl and the
  other binaries it needs.
- ~ is mounted so that nerdctl build can access the files to build.
  nerdctl build will not work for locations outside of ~.
- A .profile file exporting an environment variable to tell nerdctl
  where the containerd socket is as k3s puts it in a non-standard
  location.

Note, in the future we should look at taring up the build directory
and sending it to the VM. That would be a more substancial effort
to accomplish.

Related to #566

Thanks to Jan for all the pointers in creating this and the alpine-lima
build.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2021-09-15 13:33:24 -04:00