Giter Site home page Giter Site logo

Non docker install? about rustpad HOT 6 CLOSED

ekzhang avatar ekzhang commented on May 8, 2024 1
Non docker install?

from rustpad.

Comments (6)

ekzhang avatar ekzhang commented on May 8, 2024

Unfortunately we only officially distribute the application as a container. You don't have to run it with Docker though; any OCI-compliant runtime will do the trick. And the container is only a couple MB.

We could distribute binaries as well, but they would have to keep track of the associated static HTML files next to the binary, which is kind of annoying. There's also the problem that building multi-platform binaries is kind of messy and requires cross-compilation to automate.

from rustpad.

ithakaa avatar ithakaa commented on May 8, 2024

As a non programmer/ developer I would need a short readme to get it installed without docker

Is this something you can provide?

Don't get me wrong, I'm not opposed to docker, it's just Im invested in proxmox LCXs so makes no sense to spin up an entire VM to host docker to then host rustpad.

I can quickly spin up a LXC in 5 seconds, with a little readme should be able to install rustpad and whatever else I'd like In the LXC like tailscale so I can share rustpad with anyone I choose

from rustpad.

ekzhang avatar ekzhang commented on May 8, 2024

If you're on Linux, then the easiest way to get the files for Rustpad would be to just extract them from the Docker image. There are instructions for building from source in the README (and there's obviously the Dockerfile as well, which is pretty straightforward), but that would likely take longer for you.

You can do something like this StackOverflow answer.

id=$(docker create ekzhang/rustpad)
docker cp $id:/ rustpad
docker rm -v $id

Then in the rustpad/ folder you'll have the rustpad-server binary (statically linked to musl libc) and associated static files folder dist. You can ignore the rest of the files; they're procfs / sys and other Linux junk.

from rustpad.

ekzhang avatar ekzhang commented on May 8, 2024

An alternative set of commands that doesn't depend on a running Docker daemon (uses OCI images directly instead) and doesn't generate the procfs junk that docker cp does:

sudo apt-get update
sudo apt-get -y install skopeo umoci
skopeo copy docker://ekzhang/rustpad oci:rustpad-layers:latest
mkdir rustpad && umoci raw unpack --rootless --image rustpad-layers:latest rustpad
rm -rf rustpad-layers

This generates:

$ ls -l rustpad
total 13688
drwxr-xr-x 3 ubuntu ubuntu     4096 Feb 19 15:55 dist
-rwxr-xr-x 1 ubuntu ubuntu 14010192 Feb 19 16:07 rustpad-server

from rustpad.

ithakaa avatar ithakaa commented on May 8, 2024

skopeo is not found in the ubuntu 20.04 repo

from rustpad.

ekzhang avatar ekzhang commented on May 8, 2024

It's in Ubuntu 22.04. You can find installation instructions on the skopeo repository. If you don't want to use skopeo, you can use any other container management tool.

Unfortunately I'm not able to provide technical support for all installation issues, please keep the issues tracker for bugs!

from rustpad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.