forked from elastest/elastest-monitoring-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile_min
25 lines (23 loc) · 903 Bytes
/
Dockerfile_min
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM quay.io/goswagger/swagger:0.13.0 as swaggerbuilder
WORKDIR /go/src/swagger-go
ENV GOPATH /go
COPY swagger-go ./
COPY api.yaml ./swagger.yaml
RUN swagger generate server
RUN sh ./convertpaths.sh
FROM golang:1.7.3 as builder
WORKDIR /go
COPY --from=swaggerbuilder /go/src/swagger-go ./
RUN go get github.com/go-openapi/runtime/flagext
RUN go get github.com/jessevdk/go-flags
COPY vendor /go/src
RUN CGO_ENABLED=0 GOOS=linux go build -o swagger cmd/monitoring-as-a-service-server/main.go
FROM docker.elastic.co/logstash/logstash:6.2.1
WORKDIR /root/
COPY --from=builder /go/swagger /usr/local/bin/swagger
COPY startmeup_min.sh /startmeup.sh
COPY logstashcfgs/minlogstash.conf /usr/share/logstash/pipeline/outlogstash.conf
USER root
RUN chmod 666 /usr/share/logstash/pipeline/outlogstash.conf
RUN /usr/share/logstash/bin/logstash-plugin install logstash-output-websocket
ENTRYPOINT ["/startmeup.sh"]