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:
parent
3678bd5a93
commit
1dbee90d34
4
Makefile
4
Makefile
@ -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
|
||||||
|
@ -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/
|
||||||
|
Loading…
Reference in New Issue
Block a user