Skip to content

Commit

Permalink
Update plugin to use SDK 1.0 (#12)
Browse files Browse the repository at this point in the history
* update ipmi plugin to use sdk1.0

* fix bug - write data is no longer a list of bytes

* update build args, update readme

* fmt

* sdk updates

* dep
  • Loading branch information
edaniszewski authored Jul 5, 2018
1 parent 667cad2 commit 81038e6
Show file tree
Hide file tree
Showing 24 changed files with 391 additions and 425 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ RUN apk --update --no-cache add ipmitool

COPY --from=builder /go/src/github.com/vapor-ware/synse-ipmi-plugin/build/plugin ./plugin
COPY config.yml .
COPY config/proto /etc/synse/plugin/config/proto

EXPOSE 5001

Expand Down
108 changes: 24 additions & 84 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@

[[constraint]]
branch = "master"
name = "github.com/mitchellh/mapstructure"

[[constraint]]
branch = "master"
name = "github.com/vapor-ware/goipmi"

[[constraint]]
name = "github.com/vapor-ware/synse-sdk"
version = "1.0.1"

[prune]
go-tests = true
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
#

PLUGIN_NAME := ipmi
PLUGIN_VERSION := 0.1.1-alpha
PLUGIN_VERSION := 0.2.0-alpha
IMAGE_NAME := vaporio/ipmi-plugin

GIT_COMMIT ?= $(shell git rev-parse --short HEAD 2> /dev/null || true)
GIT_TAG ?= $(shell git describe --tags 2> /dev/null || true)
BUILD_DATE := $(shell date -u +%Y-%m-%dT%T 2> /dev/null)
GO_VERSION := $(shell go version | awk '{ print $$3 }')

PKG_CTX := main
PKG_CTX := github.com/vapor-ware/synse-ipmi-plugin/vendor/github.com/vapor-ware/synse-sdk/sdk
LDFLAGS := -w \
-X ${PKG_CTX}.BuildDate=${BUILD_DATE} \
-X ${PKG_CTX}.GitCommit=${GIT_COMMIT} \
-X ${PKG_CTX}.GitTag=${GIT_TAG} \
-X ${PKG_CTX}.GoVersion=${GO_VERSION} \
-X ${PKG_CTX}.VersionString=${PLUGIN_VERSION}
-X ${PKG_CTX}.PluginVersion=${PLUGIN_VERSION}


HAS_LINT := $(shell which gometalinter)
Expand Down Expand Up @@ -78,7 +78,7 @@ endif
--disable=gotype --disable=gocyclo \
--tests \
--vendor \
--sort=severity \
--sort=path --sort=line \
--aggregate \
--deadline=5m

Expand Down
Loading

0 comments on commit 81038e6

Please sign in to comment.