Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
Commit of remaining features since initial import
Browse files Browse the repository at this point in the history
This commit provides the remaining features required for the initial
demonstration of ToDD:

- Grouping
- Testrun functionality
- Integration with TSDB
- Various bugfixes and improvements

Signed-off-by: Matt Oswalt <[email protected]>
  • Loading branch information
Mierdin committed Mar 14, 2016
1 parent 0f9a325 commit 7661892
Show file tree
Hide file tree
Showing 436 changed files with 333,883 additions and 1,948 deletions.
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
*temp*
assets/
build/
.vagrant/
agent-dev.cfg
server-dev.cfg
docs/.Python
docs/bin/
docs/include/
docs/lib/
preso_secret/
client/repeattest.sh
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
language: go
go:
- 1.4.2
go:
- 1.5.1
- release
- tip
notifications:
email: false
install: make install-deps build-no-docker
install:
- make
- make test
sudo: false
15 changes: 15 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ToDD Contribution Guide
====

If you're thinking about contributing, then before you write any code, please contact me first, preferably by opening a Github Issue on this repository. In these early days, ToDD is going through a lot of changes, and I would hate for you to waste your time writing code that I may already be writing, or that I no longer need.

I am still building out the CI pipeline, but I will be fairly strict about contributions with respect to Golang idioms and proper unit/integration testing. Now that ToDD is open sourced, I want to focus on these much more, and as a result I want to make sure contributions help, not hurt this effort. Here are some resources that may help you in this regard:

- [https://golang.org/doc/code.html](https://golang.org/doc/code.html)
- [https://blog.golang.org/package-names](https://blog.golang.org/package-names)

My preferred methodology for contributing is still being worked out, so for the time being, err on the side of caution and start a conversation with me via a github issue first. I'll do my best to be responsive towards that medium.

Please refer to the .travis.yml file in the root of the repository in order to see the build steps being performed. I will not look at a PR until it produces a passing build, so to save time, try to run these build steps yourself on your own machine first.

If you're wondering what there is to work on, I try to keep the [issues for this project](https://github.com/Mierdin/todd/issues) populated with any known issues, so feel free to peruse that list.
41 changes: 21 additions & 20 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
FROM golang:1.5
# This dockerfile is intended to build a minimal version of the todd container.
# It should be built using the provided makefile ("make build"), to ensure the
# binaries are compiled properly.

FROM debian:jessie
MAINTAINER Matt Oswalt <[email protected]> (@mierdin)

LABEL version="0.1"

# Install godep
RUN go get github.com/tools/godep

RUN mkdir -p /tmp/factcollectors
RUN mkdir -p /tmp/agentfactcollectors

# Upload ToDD source
COPY . /go/src/github.com/mierdin/todd

COPY etc/agent_config.cfg /etc/agent_config.cfg
COPY etc/server_config.cfg /etc/server_config.cfg
env PATH /go/bin:$PATH

# (set an explicit GOARM of 5 for maximum compatibility)
ENV GOARM 5
RUN mkdir /etc/todd

WORKDIR /go/src/github.com/mierdin/todd
RUN mkdir -p /opt/todd/agent/assets/factcollectors
RUN mkdir -p /opt/todd/server/assets/factcollectors
RUN mkdir -p /opt/todd/agent/assets/testlets
RUN mkdir -p /opt/todd/server/assets/testlets

RUN godep restore
RUN apt-get update \
&& apt-get install -y vim curl iperf

# Copy ToDD binaries
COPY ./build/todd /go/bin/
COPY ./build/todd-server /go/bin/
COPY ./build/todd-agent /go/bin/

# Remove all this - only copy the binaries, and leave the building to the makefile
RUN cd server && go build -o /go/bin/todd-server
RUN cd client && go build -o /go/bin/todd-client
RUN cd agent && go build -o /go/bin/todd-agent
COPY ./etc/agent.cfg /etc/todd/agent.cfg
COPY ./etc/server.cfg /etc/todd/server.cfg
COPY ./etc/agent-dev.cfg /etc/todd/agent-dev.cfg
COPY ./etc/server-dev.cfg /etc/todd/server-dev.cfg
37 changes: 33 additions & 4 deletions Godeps/Godeps.json

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

7 changes: 7 additions & 0 deletions Godeps/_workspace/src/github.com/Sirupsen/logrus/.travis.yml

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

55 changes: 55 additions & 0 deletions Godeps/_workspace/src/github.com/Sirupsen/logrus/CHANGELOG.md

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

21 changes: 21 additions & 0 deletions Godeps/_workspace/src/github.com/Sirupsen/logrus/LICENSE

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

Loading

0 comments on commit 7661892

Please sign in to comment.