Skip to content

Commit

Permalink
add misc files
Browse files Browse the repository at this point in the history
  • Loading branch information
ydkn committed May 8, 2019
1 parent 7fc1ba4 commit 9e12cce
Show file tree
Hide file tree
Showing 7 changed files with 351 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# docker
Dockerfile
docker-compose.yml

# git
/.git

# dep
/vendor

# deploy
/dist

# misc
/.data
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,12 @@

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# dep
/vendor

# deploy
/dist

# misc
/.data
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
41 changes: 41 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Build image
FROM golang:1.12-alpine

# Maintainer
MAINTAINER Florian Schwab <me@ydkn.de>

# Upgrade system
RUN apk --no-cache --no-progress --update upgrade

# Install dependencies
RUN apk --no-cache --no-progress --update add bash build-base git ca-certificates

# Install dep
RUN go get github.com/golang/dep/cmd/dep

# Install cobra
RUN go get github.com/spf13/cobra/cobra

# Install golint
RUN go get golang.org/x/lint/golint

# Install errcheck
RUN go get github.com/kisielk/errcheck

# Install goconst
RUN go get github.com/jgautheron/goconst/cmd/goconst

# Install ineffassign
RUN go get github.com/gordonklaus/ineffassign

# Set the working directory
WORKDIR /go/src/sensu-sic-handler

# Copy in the application code
COPY ./ /go/src/sensu-sic-handler

# Install dependencies
RUN dep ensure

# Default command
CMD ["bash"]
244 changes: 244 additions & 0 deletions Gopkg.lock

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

18 changes: 18 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[prune]
go-tests = true

[[constraint]]
name = "github.com/go-redis/redis"
version = "6.15.2"

[[constraint]]
branch = "master"
name = "github.com/mattn/go-redmine"

[[constraint]]
name = "github.com/sensu/sensu-go"
version = "5.7.0"

[[constraint]]
name = "github.com/spf13/cobra"
version = "0.0.3"
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Sensu Go SIC Handler

The Sensu SIC handler is a [Sensu Event Handler][1] that is used by SIC! Software for dispatching events based on entity annotations.

## Installation

TODO

## Configuration

TODO

## Usage examples

TODO

[1]: https://docs.sensu.io/sensu-go/5.0/reference/handlers/#how-do-sensu-handlers-work

0 comments on commit 9e12cce

Please sign in to comment.