This commit adds RPM and DEB targets to the electron builder manifest
and uploads the result within the packaging workflow.
Signed-off-by: David Cassany <dcassany@suse.com>
This will detect when linux is run in WSL or by itself to know
which method to talk to nerdctl.
Note, also removed debug output accidently left in.
Signed-off-by: Matt Farina <matt.farina@suse.com>
This commit adds the desktop files that flatpak expects for a proper
desktop integration according to the FreeDesktop specs.
Signed-off-by: David Cassany <dcassany@suse.com>
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>
This updates nerdctl-stub to parse arguments (such as
`nerdctl build --file`) and translate the paths. On Windows (the host),
this just means convert it to `/mnt/c/...` form; on Linux (a second WSL
distribution), this means making a temporary bind mount under `/mnt/wsl/`
and converting relevant arguments to point to that instead.
In order to do the mounting, the nerdctl-stub binary needs to be setuid
root. We therefore need to copy it to somewhere under `/mnt/wsl/` as well,
since anything under `/mnt/c/` (DrvFS) doesn't support setuid properly.
In order to correctly parse the arguments, we use a generator that parses
the output of `nerdctl -help` (and various subcommands) to build our
understanding of the available subcommands and options. This may be
triggered on a Windows machine with the `rancher-desktop` WSL distribution
using `npm run generate:nerdctl-stub`. (The requirement is to be able to
execute the `nerdctl` binary to parse its output.)
Signed-off-by: Mark Yen <mark.yen@suse.com>
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>
* Install trivy in download-resources
* On Windows, we run trivy via wsl because there's no windows port
* But... to speed things up, we want wsl commands to hit the linux mount, not the windows mount
- So we move the files from the windows mount to the linux once we know the
rancher-desktop subsystem is available.
- And to simplify this work, provide a resources function `wslify` to convert full windows
paths into wsl paths in the windows mount.
Signed-off-by: Eric Promislow <epromislow@suse.com>
The icon is from GitHub's "octicons" set, under the name "issue-opened".
The PNG file was generated via:
rsvg-convert issue-opened-16.svg --output=issue-opened-16.png
The larger verions was generated via:
rsvg-convert issue-opened-16.svg --zoom=2 --output=issue-opened-16@2x.png
Homestead is the current name for local rancher. This is in
development but provides a means for us to get to the Rancher
Dashboard among other things.
Closes#7
Signed-off-by: Matt Farina <matt@mattfarina.com>
This is a proof of concept for wrapping the "engine" (minikube or
something else) in electron as a UI. This is the base building
block for the desktop.
Signed-off-by: Matt Farina <matt@mattfarina.com>