This repository was archived by the owner on Jun 21, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ cat /etc/nginx/conf.d/kafka-rest-ui.conf
41
41
echo " Building application..."
42
42
yarn build
43
43
44
+ if [[ " ${BUILD} " == " localhost" ]]; then
45
+ exit 0
46
+ fi
47
+
44
48
echo
45
49
echo " Starting server..."
46
50
echo " http://0.0.0.0:${HTTP_PORT} "
Original file line number Diff line number Diff line change
1
+ FROM node:alpine
2
+ MAINTAINER nodefluent
3
+
4
+ ENV KAFKA_REST_UI_VERSION=0.6.3
5
+ ENV REACT_APP_KAFKA_REST_URL=http://localhost:8082
6
+ ENV PROXY=true
7
+ ENV NODE_ENV=production
8
+ ENV BUILD=localhost
9
+ ENV DEBUG=-*babel*,-*eslint*,*
10
+ COPY . /usr/share/nginx/kafka-rest-ui/
11
+ COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
12
+ COPY ./nginx/kafka-rest-ui.template /etc/nginx/conf.d/kafka-rest-ui.template
13
+ COPY ./nginx/kafka-rest-ui-proxy-location.template /etc/nginx/conf.d/kafka-rest-ui-proxy-location.template
14
+ WORKDIR /usr/share/nginx/kafka-rest-ui/
15
+
16
+ RUN apk update \
17
+ && apk add --no-cache libcap bash curl nginx gettext apache2-utils \
18
+ && ln -sf /dev/stdout /var/log/nginx/access.log \
19
+ && ln -sf /dev/stderr /var/log/nginx/error.log \
20
+ && yarn install \
21
+ && /usr/share/nginx/kafka-rest-ui/entrypoint.sh \
22
+ && rm -rf /usr/share/nginx/kafka-rest-ui/node_modules/
23
+
24
+ STOPSIGNAL SIGTERM
25
+
26
+ CMD ["nginx" , "-g" , "daemon off;" ]
You can’t perform that action at this time.
0 commit comments