[arch-commits] Commit in nomad/repos (5 files)

George Rawlinson grawlinson at gemini.archlinux.org
Tue Apr 26 01:23:53 UTC 2022


    Date: Tuesday, April 26, 2022 @ 01:23:52
  Author: grawlinson
Revision: 1190635

archrelease: copy trunk to community-staging-x86_64

Added:
  nomad/repos/community-staging-x86_64/
  nomad/repos/community-staging-x86_64/PKGBUILD
    (from rev 1190620, nomad/trunk/PKGBUILD)
  nomad/repos/community-staging-x86_64/defaults.hcl
    (from rev 1190622, nomad/trunk/defaults.hcl)
  nomad/repos/community-staging-x86_64/systemd.service
    (from rev 1190623, nomad/trunk/systemd.service)
  nomad/repos/community-staging-x86_64/tmpfiles.conf
    (from rev 1190624, nomad/trunk/tmpfiles.conf)

-----------------+
 PKGBUILD        |   83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 defaults.hcl    |    7 ++++
 systemd.service |   20 +++++++++++++
 tmpfiles.conf   |    2 +
 4 files changed, 112 insertions(+)

Copied: nomad/repos/community-staging-x86_64/PKGBUILD (from rev 1190620, nomad/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-04-26 01:23:52 UTC (rev 1190635)
@@ -0,0 +1,83 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+
+pkgname=nomad
+pkgver=1.2.6
+pkgrel=2
+pkgdesc="A simple and flexible workload orchestrator"
+arch=('x86_64')
+url="https://www.nomadproject.io"
+license=('MPL2')
+depends=('iptables')
+makedepends=('git' 'go')
+optdepends=(
+  'docker: for docker driver'
+  'java-runtime: for java driver'
+  'java-runtime-headless: for java driver - headless'
+  'qemu-headless: for qemu driver'
+  'nomad-driver-nspawn: for systemd-nspawn driver'
+  'nomad-driver-podman: for podman driver'
+  'nomad-driver-lxc: for lxc driver'
+  'nomad-driver-containerd: for containerd driver'
+)
+backup=(etc/nomad.d/defaults.hcl)
+options=('!lto')
+_commit='95514d569610f15ce49b4a7a1a6bfd3e7b3e7b4f'
+source=(
+  "$pkgname::git+https://github.com/hashicorp/nomad.git#commit=$_commit"
+  'systemd.service'
+  'tmpfiles.conf'
+  'defaults.hcl'
+)
+sha512sums=('SKIP'
+            '4fe233272e6872cb9ec0c594944a3c701d93ee59952688a4bc45b126442ecf973d23e50b3c4c9c5c62778d0c555ace2e2781955448239249d39fe21d184c8f1b'
+            '398724820ee6f1ffa7860b8dd0013b671ba97ffb001331a10e7795148e3e6ff711a06f2156187c23b71bfccb13dac70828df5a29d59441706753cc17afd1e3d7'
+            '9bc9dc93b2683c848e94d5d7a59102ceebd6c4b64f14c85591b9502bc44e3c74589425f1f278ef21407d10c4a9a82abd95e2c748d347d76836bdb741bbff7f7c')
+b2sums=('SKIP'
+        '0f931868e9d7465f3be176ab789b7c7b5a4c35713a82e4d3bb94460254011779d814d4708f4f8cc76ba0dd1928ac7eeda42e01ed43be675a5d26d0b75ba986b9'
+        '4142a758057382846b48e9bfc443c1218c8fde866544d56c6e773933d67a0824e365280d39864249f355aee6080e0b4b969fd8cc4c5826583821ad1843b07e35'
+        'abbf4c69d70e03b318f73ef84ccf258e39b25ac956ec68c82bebe277662ddd1677719c3b693c04a8cc38554c562a127aa2ba4061e20e594440d432d729bab3b3')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+	cd "$pkgname"
+
+  # create directory for build output
+  mkdir build
+
+  # download dependencies
+  go mod download
+}
+
+build() {
+	cd "$pkgname"
+
+  local GO_TAGS="ui release"
+
+  go build -v \
+    -buildmode=pie \
+    -trimpath \
+    -mod=readonly \
+    -modcacherw \
+    -ldflags "-extldflags ${LDFLAGS} \
+    -X main.GitCommit=${pkgver}" \
+    -tags "$GO_TAGS" \
+    -o build .
+}
+
+package() {
+  # binary
+  install -vDm755 -t "$pkgdir/usr/bin" "$pkgname/build/$pkgname"
+
+  # configuration
+  install -vDm644 -t "$pkgdir/etc/nomad.d" defaults.hcl
+
+  # systemd integration
+  install -vDm644 systemd.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+  install -vDm644 tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
+}

Copied: nomad/repos/community-staging-x86_64/defaults.hcl (from rev 1190622, nomad/trunk/defaults.hcl)
===================================================================
--- community-staging-x86_64/defaults.hcl	                        (rev 0)
+++ community-staging-x86_64/defaults.hcl	2022-04-26 01:23:52 UTC (rev 1190635)
@@ -0,0 +1,7 @@
+## https://www.nomadproject.io/docs/agent/configuration/index.html
+
+# state directory
+data_dir = "/var/lib/nomad"
+
+# binaries shouldn't go in /var/lib
+plugin_dir = "/usr/lib/nomad/plugins"

Copied: nomad/repos/community-staging-x86_64/systemd.service (from rev 1190623, nomad/trunk/systemd.service)
===================================================================
--- community-staging-x86_64/systemd.service	                        (rev 0)
+++ community-staging-x86_64/systemd.service	2022-04-26 01:23:52 UTC (rev 1190635)
@@ -0,0 +1,20 @@
+[Unit]
+Description=Nomad
+Documentation=https://www.nomadproject.io/docs/
+Wants=network-online.target consul.service
+After=network-online.target consul.service
+
+[Service]
+ExecReload=/bin/kill -HUP $MAINPID
+ExecStart=/usr/bin/nomad agent -config /etc/nomad.d
+KillMode=process
+KillSignal=SIGINT
+LimitNOFILE=65536
+LimitNPROC=infinity
+Restart=on-failure
+RestartSec=2
+TasksMax=infinity
+OOMScoreAdjust=-1000
+
+[Install]
+WantedBy=multi-user.target

Copied: nomad/repos/community-staging-x86_64/tmpfiles.conf (from rev 1190624, nomad/trunk/tmpfiles.conf)
===================================================================
--- community-staging-x86_64/tmpfiles.conf	                        (rev 0)
+++ community-staging-x86_64/tmpfiles.conf	2022-04-26 01:23:52 UTC (rev 1190635)
@@ -0,0 +1,2 @@
+d /var/lib/nomad 0700
+d /usr/lib/nomad/plugins



More information about the arch-commits mailing list