1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

sysutils/nomad: update to version 1.1.0

This commit is contained in:
John Hixson 2021-05-26 19:02:24 -07:00
parent e50ee05d5e
commit 6d3a5e1ad3
4 changed files with 41 additions and 4 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= nomad
DISTVERSIONPREFIX= v
DISTVERSION= 1.0.5
DISTVERSION= 1.1.0
CATEGORIES= sysutils
MAINTAINER= jhixson@FreeBSD.org

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1621045447
SHA256 (hashicorp-nomad-v1.0.5_GH0.tar.gz) = e911f973a835adcd987fce9b7e75d1961645c716b1fce9b3203ac7c245cf47f5
SIZE (hashicorp-nomad-v1.0.5_GH0.tar.gz) = 39542943
TIMESTAMP = 1622079765
SHA256 (hashicorp-nomad-v1.1.0_GH0.tar.gz) = cb9bb49a266b1720e78e6899e48e9dbfadd927d6a356e378980e4e398cfb4c78
SIZE (hashicorp-nomad-v1.1.0_GH0.tar.gz) = 41044566

View File

@ -0,0 +1,8 @@
--- /dev/null 2021-05-26 18:56:01.401092000 -0700
+++ drivers/docker/driver_freebsd.go 2021-05-26 18:54:15.075568000 -0700
@@ -0,0 +1,5 @@
+package docker
+
+func setCPUSetCgroup(path string, pid int) error {
+ return nil
+}

View File

@ -0,0 +1,29 @@
--- /dev/null 2021-05-26 18:56:22.470788000 -0700
+++ drivers/docker/driver_freebsd_test.go 2021-05-26 18:54:25.182401000 -0700
@@ -0,0 +1,26 @@
+package docker
+
+import (
+ "fmt"
+ "os"
+ "testing"
+ "time"
+)
+
+// TestMain is a hacky test entrypoint to set temp directory to a path that can
+// be mounted into Docker containers on macOS without needing dev performing
+// special setup.
+//
+// macOS sets tempdir as `/var`, which Docker does not allowlist as a path that
+// can be bind-mounted.
+func TestMain(m *testing.M) {
+ tmpdir := fmt.Sprintf("/tmp/nomad-docker-tests-%d", time.Now().Unix())
+
+ defer os.Setenv("TMPDIR", os.Getenv("TMPDIR"))
+ os.Setenv("TMPDIR", tmpdir)
+
+ os.MkdirAll(tmpdir, 0700)
+ defer os.RemoveAll(tmpdir)
+
+ os.Exit(m.Run())
+}