Skip to content

Commit

Permalink
#11 Updated consul, nomad and other dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
towe75 committed May 24, 2020
1 parent fcc63f0 commit 055a57f
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 795 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Contributions are welcome, of course.

This project has a go.mod definition. So you can clone it to whatever directory you want.
It is not necessary to setup a go path at all.
Ensure that you use go 1.13 or newer.

```sh
$ git clone [email protected]:pascomnet/nomad-driver-podman
Expand Down
11 changes: 6 additions & 5 deletions driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ import (
"testing"
"time"

"github.com/hashicorp/consul/lib/freeport"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/nomad/client/taskenv"
ctestutil "github.com/hashicorp/nomad/client/testutil"
"github.com/hashicorp/nomad/helper/freeport"
"github.com/hashicorp/nomad/helper/testlog"
"github.com/hashicorp/nomad/helper/uuid"
"github.com/hashicorp/nomad/nomad/structs"
Expand Down Expand Up @@ -502,7 +502,8 @@ func TestPodmanDriver_PortMap(t *testing.T) {
if !tu.IsCI() {
t.Parallel()
}
ports := freeport.GetT(t, 2)
ports := freeport.MustTake(2)
defer freeport.Return(ports)

taskCfg := newTaskConfig("", busyboxLongRunningCmd)

Expand Down Expand Up @@ -830,9 +831,9 @@ func TestPodmanDriver_Tmpfs(t *testing.T) {

// see if tmpfs was propagated to podman
inspectData := inspectContainer(t, containerName)
expectedFilesystem := map[string]string {
"/tmpdata1" : "rw,rprivate,noexec,nosuid,nodev,tmpcopyup",
"/tmpdata2" : "rw,rprivate,noexec,nosuid,nodev,tmpcopyup",
expectedFilesystem := map[string]string{
"/tmpdata1": "rw,rprivate,noexec,nosuid,nodev,tmpcopyup",
"/tmpdata2": "rw,rprivate,noexec,nosuid,nodev,tmpcopyup",
}
require.Exactly(t, expectedFilesystem, inspectData.HostConfig.Tmpfs)

Expand Down
29 changes: 14 additions & 15 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,17 @@ go 1.14
replace (
// fix Sirupsen/logrus vs sirupsen/logrus problems
github.com/docker/docker v1.13.1 => github.com/docker/docker v0.7.3-0.20181219122643-d1117e8e1040
// following https://github.com/hashicorp/nomad-skeleton-driver-plugin/blob/master/go.mod: don't use ugorji/go, use the hashicorp fork
github.com/hashicorp/go-msgpack => github.com/hashicorp/go-msgpack v0.0.0-20191101193846-96ddbed8d05b
github.com/opencontainers/runc v0.1.1 => github.com/opencontainers/runc v1.0.0-rc2.0.20181210164344-f5b99917df9f
// following https://github.com/hashicorp/nomad-skeleton-driver-plugin/blob/master/go.mod: fix the version of hashicorp/go-msgpack to 96ddbed8d05b
github.com/ugorji/go => github.com/hashicorp/go-msgpack v0.0.0-20190927123313-23165f7bc3c2

launchpad.net/gocheck => github.com/go-check/check v0.0.0-20140225173054-eb6ee6f84d0a
)

require (
github.com/LK4D4/joincontext v0.0.0-20171026170139-1724345da6d5 // indirect
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d // indirect
github.com/TylerBrock/colorjson v0.0.0-20180527164720-95ec53f28296 // indirect
github.com/avast/retry-go v2.4.3+incompatible
github.com/container-storage-interface/spec v1.2.0 // indirect
github.com/containerd/console v1.0.0 // indirect
github.com/containernetworking/plugins v0.8.5 // indirect
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf // indirect
Expand All @@ -25,29 +24,29 @@ require (
github.com/fsouza/go-dockerclient v1.5.0 // indirect
github.com/go-ole/go-ole v1.2.4 // indirect
github.com/godbus/dbus v4.1.0+incompatible // indirect
github.com/hashicorp/consul v1.4.5
github.com/grpc-ecosystem/go-grpc-middleware v1.2.0 // indirect
github.com/hashicorp/consul v1.7.3
github.com/hashicorp/consul-template v0.20.0 // indirect
github.com/hashicorp/go-hclog v0.10.0
github.com/hashicorp/consul/sdk v0.4.0
github.com/hashicorp/cronexpr v1.1.0 // indirect
github.com/hashicorp/go-hclog v0.12.0
github.com/hashicorp/go-msgpack v1.1.5
github.com/hashicorp/hcl2 v0.0.0-20191002203319-fb75b3253c80 // indirect
github.com/hashicorp/nomad v0.10.1
github.com/hashicorp/nomad v0.11.2
github.com/hashicorp/nomad/api v0.0.0-20191203164002-b31573ae7206 // indirect
github.com/hashicorp/raft v1.1.2 // indirect
github.com/hashicorp/serf v0.8.5 // indirect
github.com/hashicorp/vault/api v1.0.5-0.20190730042357-746c0b111519 // indirect; indirectt
github.com/hashicorp/vault/api v1.0.5-0.20190730042357-746c0b111519 // indirect
github.com/mitchellh/go-ps v1.0.0 // indirect
github.com/mitchellh/hashstructure v1.0.0 // indirect
github.com/moby/moby v1.13.1 // indirect
github.com/mrunalp/fileutils v0.0.0-20200504145649-7be891c94fd3 // indirect
github.com/opencontainers/runc v0.1.1 // indirect
github.com/opencontainers/runtime-spec v1.0.1 // indirect
github.com/opencontainers/selinux v1.5.1 // indirect
github.com/shirou/gopsutil v2.18.12+incompatible // indirect
github.com/shirou/w32 v0.0.0-20160930032740-bb4de0191aa4 // indirect
github.com/sirupsen/logrus v1.4.2 // indirect
github.com/stretchr/testify v1.3.0
github.com/stretchr/testify v1.4.0
github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2 // indirect
github.com/ugorji/go v1.1.7 // indirect
github.com/varlink/go v0.3.0
github.com/vishvananda/netlink v1.1.0 // indirect
google.golang.org/grpc v1.29.1
gotest.tools/gotestsum v0.4.0 // indirect

)
Loading

0 comments on commit 055a57f

Please sign in to comment.