Skip to content

Commit 4a9b81a

Browse files
committed
SCFF-16 firehose-to-remote-syslog files
1 parent c66269c commit 4a9b81a

419 files changed

Lines changed: 153662 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1-
# Add any directories, files, or patterns you don't want to be tracked by version control
1+
# Add any directories, files, or patterns you don't want to be tracked by version control
2+
internal-core
3+
firehose-to-syslog*
4+
events/events.test
5+
.project
6+
*.swp
7+
.#*
8+
\#*
9+
my.db
10+
start-firehose.sh
11+
dist
12+
*pprof
13+

Docker/build-dev.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
DIR=`dirname "$(readlink -f "$0")"`
3+
DEV_MAPPER=""
4+
[ -f /usr/lib/libdevmapper.so.1.02 ] && DEV_MAPPER="-v /usr/lib/libdevmapper.so.1.02:/usr/lib/libdevmapper.so.1.02"
5+
6+
7+
pushd $DIR
8+
9+
pushd ../
10+
tar -zcvf firehose-to-syslog.tgz --exclude="Docker*" \
11+
--exclude=".git" --exclude="my.db" --exclude="dist" \
12+
--exclude="firehose-to-syslog" ./
13+
popd
14+
mv ../firehose-to-syslog.tgz ./dev/
15+
docker build -t cloudfoundry-community/firehose-to-syslog-build-dev $(PWD)/dev/
16+
docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):$(which docker) $DEV_MAPPER -ti --name firehose-to-syslog-build-dev cloudfoundry-community/firehose-to-syslog-build-dev
17+
rm dev/firehose-to-syslog.tgz
18+
19+
popd
20+
21+
docker rm firehose-to-syslog-build-dev
22+
docker rmi cloudfoundry-community/firehose-to-syslog-build-dev

Docker/build.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
DIR=`dirname "$(readlink -f "$0")"`
3+
DEV_MAPPER=""
4+
[ -f /usr/lib/libdevmapper.so.1.02 ] && DEV_MAPPER="-v /usr/lib/libdevmapper.so$
5+
6+
7+
8+
9+
pushd $DIR
10+
docker build -t cloudfoundry-community/firehose-syslog-build ./github/
11+
docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):$(which docker) $DEV_MAPPER -ti --name firehose-syslog-build cloudfoundry-community/firehose-syslog-build
12+
docker rm firehose-syslog-build
13+
docker rmi cloudfoundry-community/firehose-syslog-build
14+
popd

Docker/dev/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM google/golang:1.4
2+
MAINTAINER Gwenn Etourneau <gwenn.etourneau@gmail.com>
3+
4+
RUN go get github.com/tools/godep
5+
ADD firehose-to-syslog.tgz $GOPATH/src/github.com/cloudfoundry-community/firehose-to-syslog/
6+
RUN cd $GOPATH/src/github.com/cloudfoundry-community/firehose-to-syslog \
7+
; CGO_ENABLED=0 godep go build -a --installsuffix cgo --ldflags="-s"
8+
RUN cd $GOPATH/src/github.com/cloudfoundry-community/firehose-to-syslog
9+
RUN cp $GOPATH/src/github.com/cloudfoundry-community/firehose-to-syslog/firehose-to-syslog /gopath/bin/
10+
COPY Dockerfile.final /gopath/bin/Dockerfile
11+
12+
CMD docker build --no-cache -t getourneau/firehose-to-syslog-dev /gopath/bin/

Docker/dev/Dockerfile.final

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM scratch
2+
3+
MAINTAINER GWENN ETOURNEAU <gwenn.etourneau@gmail.com>
4+
5+
COPY firehose-to-syslog /firehose-to-syslog
6+
7+
CMD []
8+
ENTRYPOINT ["/firehose-to-syslog"]

Docker/github/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM google/golang:1.4
2+
MAINTAINER Gwenn Etourneau <gwenn.etourneau@gmail.com>
3+
4+
RUN go get github.com/tools/godep
5+
RUN go get github.com/cloudfoundry-community/firehose-to-syslog
6+
RUN cd $GOPATH/src/github.com/cloudfoundry-community/firehose-to-syslog \
7+
; CGO_ENABLED=0 godep go build -a --installsuffix cgo --ldflags="-s"
8+
RUN cp $GOPATH/src/github.com/cloudfoundry-community/firehose-to-syslog/firehose-to-syslog /gopath/bin/
9+
COPY Dockerfile.final /gopath/bin/Dockerfile
10+
RUN ls -lah /gopath/bin/
11+
12+
CMD docker build -t getourneau/firehose-to-syslog /gopath/bin

Docker/github/Dockerfile.final

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM scratch
2+
3+
MAINTAINER GWENN ETOURNEAU <gwenn.etourneau@gmail.com>
4+
5+
ADD firehose-to-syslog /
6+
7+
CMD []
8+
ENTRYPOINT ["/firehose-to-syslog"]

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM ubuntu:trusty
2+
MAINTAINER Simon Johansson <simon.johansson@springer.com>
3+
4+
RUN apt-get update
5+
RUN apt-get install -y ca-certificates
6+
ADD dist/firehose-to-syslog-linux64 /
7+
8+
ENTRYPOINT ["/firehose-to-syslog-linux64"]
9+
CMD ["--help"]

Godeps/Godeps.json

Lines changed: 120 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Godeps/Readme

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)