-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3037 from reportportal/5.7
Release 5.7
- Loading branch information
Showing
369 changed files
with
10,903 additions
and
5,984 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
FROM alpine:3.10 | ||
FROM nginx:alpine | ||
|
||
LABEL maintainer="Andrei Varabyeu <[email protected]>" | ||
LABEL version=5.6.0 | ||
|
||
ENV APP_DOWNLOAD_URL https://github.com/reportportal/service-ui/releases/download/v5.6.0 | ||
|
||
ADD ${APP_DOWNLOAD_URL}/service-ui_linux_amd64 /service-ui | ||
ADD ${APP_DOWNLOAD_URL}/ui.tar.gz / | ||
|
||
RUN mkdir /public | ||
RUN chmod +x /service-ui | ||
RUN tar -zxvf ui.tar.gz -C /public && rm -f ui.tar.gz | ||
|
||
ENV RP_STATICS_PATH=/public | ||
|
||
RUN tar -zxvf ui.tar.gz -C /usr/share/nginx/html && rm -f ui.tar.gz | ||
RUN rm /etc/nginx/conf.d/default.conf | ||
COPY nginx.conf /etc/nginx/nginx.conf | ||
|
||
EXPOSE 8080 | ||
ENTRYPOINT ["/service-ui"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,23 @@ | ||
FROM golang:1.15.7 as build-backend | ||
WORKDIR /go/src/github.com/reportportal/service-ui/ | ||
|
||
ENV GO111MODULE=on | ||
COPY ./Makefile ./go.mod .golangci.yml ./ | ||
RUN make get-build-deps | ||
|
||
FROM alpine:3.10.9 as generate-build-info | ||
RUN apk add git | ||
RUN apk add make | ||
RUN mkdir -p /usr/src/app/build | ||
COPY ./Makefile /usr/src/ | ||
WORKDIR /usr/src | ||
ARG version | ||
RUN make generate-build-info v=$version | ||
|
||
COPY ./main.go ./ | ||
RUN make fmt | ||
RUN make build-server v=$version | ||
|
||
FROM node:11-alpine as build-frontend | ||
FROM node:12-alpine as build-frontend | ||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
COPY ./app/ /usr/src/app/ | ||
RUN npm ci | ||
RUN NODE_OPTIONS=--max_old_space_size=4096 npm run build && npm run test | ||
|
||
FROM alpine:latest | ||
RUN apk --no-cache add ca-certificates | ||
WORKDIR /root/ | ||
COPY --from=build-backend /go/src/github.com/reportportal/service-ui/bin/service-ui / | ||
COPY --from=build-frontend /usr/src/app/build /public | ||
RUN export NODE_OPTIONS="--max-old-space-size=4096" | ||
RUN npm ci && npm run build && npm run test | ||
|
||
ENV RP_STATICS_PATH=/public | ||
FROM nginx:alpine | ||
COPY --from=build-frontend /usr/src/app/build /usr/share/nginx/html | ||
COPY --from=generate-build-info /usr/src/app/build /usr/share/nginx/html | ||
RUN rm /etc/nginx/conf.d/default.conf | ||
COPY nginx.conf /etc/nginx/nginx.conf | ||
|
||
EXPOSE 8080 | ||
ENTRYPOINT ["/service-ui"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.