Skip to content

Commit

Permalink
Build updates. Can now build packages and binaries via build.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross McDonald authored and nathanielc committed Nov 3, 2015
1 parent 65cbe9d commit 8795327
Show file tree
Hide file tree
Showing 33 changed files with 969 additions and 165 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ kapacitor
kapacitord
kapacitor_linux*
kapacitord_linux*
*~
*#
kapacitor*.rpm
kapacitor*.deb
kapacitor*.tar
kapacitor*.zip
14 changes: 8 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,21 +137,23 @@ Make sure you have Go installed and the project structure as shown above. To the

```bash
cd $GOPATH/src/github.com/influxdb/kapacitor
make
go build ./cmd/kapacitor
go build ./cmd/kapacitord
```
Kapacitor builds two binares is named `kapacitor`, and `kapacitord`.

If you want to build packages run:
To run the tests, execute the following command:

```bash
make dist
go test ./...
```

To run the tests, execute the following command:

If you want to build packages run:
```bash
make test
./build.py --packages
```


Profiling
---------
When troubleshooting problems with CPU or memory the Go toolchain can be helpful. You can start InfluxDB with CPU or memory profiling turned on. For example:
Expand Down
31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This Dockerfile provides the needed environment to build Kapacitor.
FROM ubuntu:trusty

MAINTAINER [email protected]

# Install deps
RUN apt-get update
RUN apt-get install -y \
make \
wget \
git \
mercurial \
ruby \
ruby-dev \
rpm \
zip \
python
RUN gem install fpm

# Install go
RUN wget https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz; tar -C /usr/local/ -xf /go1.5.1.linux-amd64.tar.gz ; rm /go1.5.1.linux-amd64.tar.gz
ENV PATH $PATH:/usr/local/go/bin
ENV GOPATH /gopath
ENV PROJECT_PATH $GOPATH/src/github.com/influxdb/kapacitor
RUN mkdir -p $PROJECT_PATH

WORKDIR $PROJECT_PATH
ENTRYPOINT ["/usr/local/bin/build"]
CMD []

ADD ./build.py /usr/local/bin/build
49 changes: 0 additions & 49 deletions Makefile

This file was deleted.

Loading

0 comments on commit 8795327

Please sign in to comment.