Skip to content

Install on generic Linux

For distros without an APT package (Fedora, Arch, Alpine, RHEL-likes, etc.). Drop the binary in /usr/local/bin/, set up a systemd unit, you are done.

Prefer a containerized install? See Install via Docker; it works on the same distros without needing a systemd unit.

  • A modern Linux with systemd (or your own init manager).
  • Docker Engine with the Compose plugin.
  • Ports 80, 443, and 22 open.
  • DNS pointing at the server.

Each release ships versioned tarballs plus a checksums.txt. The commands below verify the tarball before installing; sha256sum must print OK.

Terminal window
VERSION=1.4.8 # latest: https://github.com/vazra/simpledeploy/releases # x-release-please-version
ARCH=amd64
FILE="simpledeploy_${VERSION}_linux_${ARCH}.tar.gz"
curl -fsSLO "https://github.com/vazra/simpledeploy/releases/download/v${VERSION}/${FILE}"
curl -fsSLO "https://github.com/vazra/simpledeploy/releases/download/v${VERSION}/checksums.txt"
grep " ${FILE}$" checksums.txt | sha256sum -c - \
&& tar xzf "$FILE" simpledeploy \
&& sudo install -m 0755 simpledeploy /usr/local/bin/simpledeploy

Verify:

Terminal window
simpledeploy version
Section titled “Create a service user (optional, recommended)”

Running as a dedicated user limits blast radius. The user must be in the docker group to drive the Docker socket.

Terminal window
sudo useradd --system --home /var/lib/simpledeploy --shell /usr/sbin/nologin simpledeploy
sudo usermod -aG docker simpledeploy
sudo mkdir -p /var/lib/simpledeploy /etc/simpledeploy/apps
sudo chown -R simpledeploy:simpledeploy /var/lib/simpledeploy /etc/simpledeploy

Create /etc/systemd/system/simpledeploy.service:

[Unit]
Description=SimpleDeploy
After=docker.service
Requires=docker.service
[Service]
Type=simple
ExecStart=/usr/local/bin/simpledeploy serve --config /etc/simpledeploy/config.yaml
Restart=always
RestartSec=5
# Uncomment the next two lines if you created a service user
# User=simpledeploy
# Group=simpledeploy
[Install]
WantedBy=multi-user.target
  1. Generate the config (see Configure SimpleDeploy):

    Terminal window
    sudo simpledeploy init --config /etc/simpledeploy/config.yaml
    sudo vim /etc/simpledeploy/config.yaml
  2. Enable and start:

    Terminal window
    sudo systemctl daemon-reload
    sudo systemctl enable --now simpledeploy
    sudo journalctl -u simpledeploy -f

Download and verify the new tarball, then swap the binary:

Terminal window
VERSION=1.4.8 # target release # x-release-please-version
ARCH=amd64 # or arm64
FILE="simpledeploy_${VERSION}_linux_${ARCH}.tar.gz"
curl -fsSLO "https://github.com/vazra/simpledeploy/releases/download/v${VERSION}/${FILE}"
curl -fsSLO "https://github.com/vazra/simpledeploy/releases/download/v${VERSION}/checksums.txt"
grep " ${FILE}$" checksums.txt | sha256sum -c - \
&& tar xzf "$FILE" simpledeploy \
&& sudo systemctl stop simpledeploy \
&& sudo install -m 0755 simpledeploy /usr/local/bin/simpledeploy \
&& sudo systemctl start simpledeploy

Next: First deploy.