Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. Setup an isolated web server as a smolBSD microvm in 1 minute:```FROM base,etc

Setup an isolated web server as a smolBSD microvm in 1 minute:```FROM base,etc

Scheduled Pinned Locked Moved Uncategorized
2 Posts 2 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • imil@mastodon.bsd.cafeI This user is from outside of this forum
    imil@mastodon.bsd.cafeI This user is from outside of this forum
    imil@mastodon.bsd.cafe
    wrote last edited by
    #1

    Setup an isolated web server as a smolBSD microvm in 1 minute:
    ```
    FROM base,etc

    LABEL smolbsd.service=smolweb
    LABEL smolbsd.publish="8880:8880"

    ARG PUBKEY="ssh-ed25519 foo user@bar"

    RUN pkgin up && pkgin -y in caddy

    RUN <<EOF
    useradd -m smol
    cd /home/smol
    mkdir -p .ssh www
    echo "$PUBKEY" >.ssh/authorized_keys
    chmod 600 .ssh/authorized_keys
    chown -R smol /home/smol
    EOF

    EXPOSE 8880

    CMD /etc/rc.d/sshd onestart && \
    caddy file-server --listen :8880 --root /home/smol/www
    ```
    Documentation: https://github.com/NetBSDfr/smolBSD/tree/main?tab=readme-ov-file#dockerfile

    gduchaussois@mastodon.xyzG 1 Reply Last reply
    1
    0
    • imil@mastodon.bsd.cafeI imil@mastodon.bsd.cafe

      Setup an isolated web server as a smolBSD microvm in 1 minute:
      ```
      FROM base,etc

      LABEL smolbsd.service=smolweb
      LABEL smolbsd.publish="8880:8880"

      ARG PUBKEY="ssh-ed25519 foo user@bar"

      RUN pkgin up && pkgin -y in caddy

      RUN <<EOF
      useradd -m smol
      cd /home/smol
      mkdir -p .ssh www
      echo "$PUBKEY" >.ssh/authorized_keys
      chmod 600 .ssh/authorized_keys
      chown -R smol /home/smol
      EOF

      EXPOSE 8880

      CMD /etc/rc.d/sshd onestart && \
      caddy file-server --listen :8880 --root /home/smol/www
      ```
      Documentation: https://github.com/NetBSDfr/smolBSD/tree/main?tab=readme-ov-file#dockerfile

      gduchaussois@mastodon.xyzG This user is from outside of this forum
      gduchaussois@mastodon.xyzG This user is from outside of this forum
      gduchaussois@mastodon.xyz
      wrote last edited by
      #2

      @imil au rythme où vont les choses dans deux semaines tu lances un k3s ou k0s dans ta VM... Y a pas de support netbsd je crosi

      1 Reply Last reply
      0
      • stefano@mastodon.bsd.cafeS stefano@mastodon.bsd.cafe shared this topic
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups