This repository has been archived by the owner on Jan 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
51 lines (44 loc) · 2.14 KB
/
Dockerfile
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM registry.opensource.zalan.do/library/node-12.20-alpine:latest as builder
WORKDIR /src
COPY client client
COPY server server
COPY package.json package.json
COPY package-lock.json package-lock.json
COPY webpack.config.prod.js webpack.config.prod.js
COPY elm.json elm.json
RUN npm install && npm run build
FROM registry.opensource.zalan.do/library/node-12.20-alpine:latest
MAINTAINER Sergii Kamenskyi <sergukam@sergukam.com>
LABEL Description="This Nakadi UI does not check auth by default. Please use Auth plugins for use in production."
WORKDIR /app
COPY --from=builder /src/dist dist
COPY --from=builder /src/server server
COPY --from=builder /src/package.json .
RUN npm install --only=production
EXPOSE 3000/tcp
ENV HTTP_PORT="3000"
ENV NODE_ENV="prod"
ENV BASE_URL="http://localhost:3000"
ENV NAKADI_API_URL="http://localhost:8080"
ENV APPS_INFO_URL="https://yourturn.example.com/application/detail/"
ENV USERS_INFO_URL="https://people.example.com/details/"
ENV SCALYR_URL="https://eu.scalyr.com/api/"
ENV SCALYR_KEY="022222200000000000000-"
ENV EVENT_TYPE_MONITORING_URL="https://zmon.example.com/grafana/dashboard/db/nakadi-et/?var-stack=nakadi-staging&var-et={et}"
ENV SUBSCRIPTION_MONITORING_URL="https://zmon.example.com/grafana/dashboard/db/nakadi-subscription/?var-stack=nakadi-staging&var-id={id}"
ENV MONITORING_URL="https://zmon.example.com/grafana/dashboard/db/nakadi-live"
ENV SLO_MONITORING_URL="https://zmon.example.com/grafana/dashboard/db/nakadi-slos"
ENV DOCS_URL=https://nakadi-faq.docs.example.com/
ENV SCHEMA_EVOLUTION_DOCS="https://nakadi.io/manual.html#compatibility-modes"
ENV SUPPORT_URL=https://hipchat.example.com/chat/room/12345
ENV ALLOW_DELETE_EVENT_TYPE=yes
ENV DISALLOW_DELETE_URL=https://nakadi-faq.docs.example.com/#how-to-delete-et
ENV AUTH_STRATEGY="./nullPassportStrategy.js"
ENV COOKIE_SECRET="1lzz-jskjdfsd78bnc*&0$765"
ENV CREDENTIALS_DIR="deploy/OAUTH"
ENV HTTPS_ENABLE=0
ENV NODE_TLS_REJECT_UNAUTHORIZED=0
ENV SHOW_NAKADI_SQL=yes
ENV NAKADI_SQL_API_URL="http://nakadi-sql.example.com"
ENV QUERY_MONITORING_URL="https://zmon.example.com/grafana/dashboard/db/nakadi-et/?var-stack=live&var-$queryId={query}"
ENTRYPOINT npm run start:prod