Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shafreeck committed Nov 6, 2018
0 parents commit d7eb566
Show file tree
Hide file tree
Showing 1,198 changed files with 713,151 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Checklist.md
@@ -0,0 +1,13 @@
- [ ] zap + rollingwriter
- [ ] unit test
- [ ] auto test
- [ ] ci/cd
- [ ] metrics
- [ ] status/pprof
- [ ] continuous
- [ ] list/zlist
- [ ] strings
- [ ] keys
- [ ] conf
- [ ] gc/expire/zt
- [ ] token
23 changes: 23 additions & 0 deletions Dockerfile
@@ -0,0 +1,23 @@
# Builder image
FROM golang:1.10.1-alpine as builder

RUN apk add --no-cache \
make \
git

COPY . /go/src/gitlab.meitu.com/platform/thanos

WORKDIR /go/src/gitlab.meitu.com/platform/thanos

RUN env GOOS=linux CGO_ENABLED=0 go build ./bin/thanos/

## Executable image
FROM scratch

COPY --from=builder /go/src/gitlab.meitu.com/platform/thanos/thanos /thanos

WORKDIR /

EXPOSE 6380

ENTRYPOINT ["/thanos"]

0 comments on commit d7eb566

Please sign in to comment.