1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nomad_ynh.git synced 2024-09-03 19:55:53 +02:00
Nomad package for YunoHost
Find a file
Félix Piédallu a49bcf19ae Packaging v2
2024-05-15 22:40:17 +02:00
.github [autopatch] Upgrade auto-updater 2024-02-05 20:55:03 +01:00
conf Packaging v2 2024-05-15 22:40:17 +02:00
doc Cleanup 2022-07-22 23:40:27 +02:00
scripts Packaging v2 2024-05-15 22:40:17 +02:00
ALL_README.md Auto-update READMEs 2024-05-15 20:35:22 +00:00
config_panel.toml.example Initial commit 2022-07-20 12:04:29 +02:00
LICENSE First implementation 2022-07-21 08:24:29 +02:00
manifest.toml Packaging v2 2024-05-15 22:40:17 +02:00
README.md Auto-update READMEs 2024-04-17 06:12:28 +00:00
README_es.md Auto-update READMEs 2024-05-15 20:35:22 +00:00
README_eu.md Auto-update READMEs 2024-04-17 06:12:28 +00:00
README_fr.md Auto-update READMEs 2024-04-17 06:12:28 +00:00
README_gl.md Auto-update READMEs 2024-04-17 06:12:28 +00:00
README_it.md Auto-update README 2024-03-29 07:15:22 +01:00
README_zh_Hans.md Auto-update READMEs 2024-05-15 20:35:22 +00:00
tests.toml Packaging v2 2024-05-15 22:40:17 +02:00

Nomad for YunoHost

Integration level Working status Maintenance status

Install Nomad with YunoHost

Read this README in other languages.

This package allows you to install Nomad quickly and simply on a YunoHost server.
If you don't have YunoHost, please consult the guide to learn how to install it.

Overview

Nomad is a simple and flexible workload orchestrator to deploy and manage containers (docker, podman), non-containerized applications (executable, Java), and virtual machines (qemu) across on-prem and clouds at scale.

Shipped version: 1.7.7~ynh1

Screenshots

Screenshot of Nomad

Disclaimers / important information

Some Nomad Job examples

Busybox

lxc-create --name=busybox --template=busybox

job "job-busybox" {
  datacenters = ["dc1"]
  type        = "service"

  group "group-busybox" {
    task "task-busybox" {
      driver = "lxc"

      config {
        log_level = "info"
        verbosity = "verbose"
        template  = "/usr/share/lxc/templates/lxc-busybox"
      }

      resources {
        cpu    = 500
        memory = 256
      }
    }
  }
}

Debian

lxc-create --name=debian --template=debian

job "job-debian" {
  datacenters = ["dc1"]
  type        = "service"

  group "group-debian" {
    task "task-debian" {
      driver = "lxc"

      config {
        log_level = "info"
        verbosity = "verbose"
        template  = "/usr/share/lxc/templates/lxc-debian"
      }

      resources {
        cpu    = 500
        memory = 256
      }
    }
  }
}

Debian Stretch

lxc-create --name=stretch --template=debian -- --release=stretch

job "job-stretch" {
  datacenters = ["dc1"]
  type        = "service"

  group "group-stretch" {
    task "task-stretch" {
      driver = "lxc"

      config {
        log_level = "info"
        verbosity = "verbose"
        template  = "/usr/share/lxc/templates/lxc-debian"
		template_args = ["--release=stretch"]
      }

      resources {
        cpu    = 500
        memory = 256
      }
    }
  }
}

Debian Buster

lxc-create --name=buster --template=debian -- --release=buster

job "job-buster" {
  datacenters = ["dc1"]
  type        = "service"

  group "group-buster" {
    task "task-buster" {
      driver = "lxc"

      config {
        log_level = "info"
        verbosity = "verbose"
        template  = "/usr/share/lxc/templates/lxc-debian"
		template_args = ["--release=buster"]
      }

      resources {
        cpu    = 500
        memory = 256
      }
    }
  }
}

Debian Buster from images.linuxcontainers.org

lxc-create --name=download-buster --template=download -- --dist=debian --release=buster --arch=amd64 --keyserver=hkp://keyserver.ubuntu.com

job "job-download-buster" {
  datacenters = ["dc1"]
  type        = "service"

  group "group-download-buster" {
    task "task-download-buster" {
      driver = "lxc"

      config {
        log_level = "info"
        verbosity = "verbose"
        template  = "/usr/share/lxc/templates/lxc-download"
		template_args = ["--dist=debian","--release=buster","--arch=amd64","--keyserver=hkp://keyserver.ubuntu.com"]
      }

      resources {
        cpu    = 500
        memory = 256
      }
    }
  }
}

Debian Bullseye from images.linuxcontainers.org

lxc-create --name=download-bullseye --template=download -- --dist=debian --release=bullseye --arch=amd64 --keyserver=hkp://keyserver.ubuntu.com

job "job-download-bullseye" {
  datacenters = ["dc1"]
  type        = "service"

  group "group-download-bullseye" {
    task "task-download-bullseye" {
      driver = "lxc"

      config {
        log_level = "info"
        verbosity = "verbose"
        template  = "/usr/share/lxc/templates/lxc-download"
		template_args = ["--dist=debian","--release=bullseye","--arch=amd64","--keyserver=hkp://keyserver.ubuntu.com"]
      }

      resources {
        cpu    = 500
        memory = 256
      }
    }
  }
}

Documentation and resources

Developer info

Please send your pull request to the testing branch.

To try the testing branch, please proceed like that:

sudo yunohost app install https://github.com/YunoHost-Apps/nomad_ynh/tree/testing --debug
or
sudo yunohost app upgrade nomad -u https://github.com/YunoHost-Apps/nomad_ynh/tree/testing --debug

More info regarding app packaging: https://yunohost.org/packaging_apps