1
0
mirror of https://github.com/containous/traefik.git synced 2024-12-22 13:34:03 +03:00

feat: allows to change the Pilot URL in the web UI in dev mode

This commit is contained in:
Pierre Erraud 2020-09-07 10:22:03 +02:00 committed by GitHub
parent 3678bd5a93
commit 1dbee90d34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -37,6 +37,8 @@ DOCKER_RUN_TRAEFIK_NOTTY := docker run $(INTEGRATION_OPTS) $(if $(DOCKER_NON_INT
PRE_TARGET ?= build-dev-image PRE_TARGET ?= build-dev-image
PLATFORM_URL := $(if $(PLATFORM_URL),$(PLATFORM_URL),"https://pilot.traefik.io")
default: binary default: binary
## Build Dev Docker image ## Build Dev Docker image
@ -53,7 +55,7 @@ dist:
## Build WebUI Docker image ## Build WebUI Docker image
build-webui-image: build-webui-image:
docker build -t traefik-webui -f webui/Dockerfile webui docker build -t traefik-webui --build-arg ARG_PLATFORM_URL=$(PLATFORM_URL) -f webui/Dockerfile webui
## Generate WebUI ## Generate WebUI
generate-webui: build-webui-image generate-webui: build-webui-image

View File

@ -1,6 +1,8 @@
FROM node:12.18 FROM node:12.18
ENV WEBUI_DIR /src/webui ENV WEBUI_DIR /src/webui
ARG ARG_PLATFORM_URL=https://pilot.traefik.io
ENV PLATFORM_URL=${ARG_PLATFORM_URL}
RUN mkdir -p $WEBUI_DIR RUN mkdir -p $WEBUI_DIR
COPY package.json $WEBUI_DIR/ COPY package.json $WEBUI_DIR/