Skip to content

Commit 16a2347

Browse files
committed
[DOP-25282] Add frontenv service to docker-compose
1 parent 67e3f4a commit 16a2347

File tree

6 files changed

+28
-3
lines changed

6 files changed

+28
-3
lines changed

.env.docker

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,6 @@ SYNCMASTER__HWM_STORE__URL=http://horizon:8000
4545
SYNCMASTER__HWM_STORE__NAMESPACE=syncmaster_namespace
4646
SYNCMASTER__HWM_STORE__USER=admin
4747
SYNCMASTER__HWM_STORE__PASSWORD=123UsedForTestOnly@!
48+
49+
# Frontend options
50+
SYNCMASTER__UI__API_BROWSER_URL=http://localhost:8000

.env.local

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,6 @@ export SYNCMASTER__HWM_STORE__URL=http://localhost:8020
4545
export SYNCMASTER__HWM_STORE__NAMESPACE=syncmaster_namespace
4646
export SYNCMASTER__HWM_STORE__USER=admin
4747
export SYNCMASTER__HWM_STORE__PASSWORD=123UsedForTestOnly@!
48+
49+
# Frontend options
50+
export SYNCMASTER__UI__API_BROWSER_URL=http://localhost:8000

docker-compose.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,25 @@ services:
120120
- scheduler
121121
- all
122122

123+
frontend:
124+
image: mtsrus/syncmaster-ui:${VERSION:-develop}
125+
restart: unless-stopped
126+
env_file: .env.docker
127+
ports:
128+
- 3000:3000
129+
healthcheck:
130+
test: [CMD-SHELL, curl -f http://localhost:3000/]
131+
interval: 30s
132+
timeout: 5s
133+
retries: 3
134+
start_period: 5s
135+
depends_on:
136+
server:
137+
condition: service_healthy
138+
profiles:
139+
- frontend
140+
- all
141+
123142
volumes:
124143
postgres_data:
125144
rabbitmq_data:

docker/Dockerfile.scheduler

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ RUN --mount=type=cache,target=/root/.cache/pypoetry \
2323
--extras "server" \
2424
--extras "scheduler" \
2525
--without test,docs,dev \
26-
&& python -m compileall .venv
26+
&& python -m compileall -j 4 .venv
2727

2828

2929
FROM base AS prod

docker/Dockerfile.server

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ RUN --mount=type=cache,target=/root/.cache/pypoetry \
4242
--no-root \
4343
--extras "server" \
4444
--without test,docs,dev \
45-
&& python -m compileall .venv
45+
&& python -m compileall -j 4 .venv
4646

4747

4848
FROM base AS prod

docker/Dockerfile.worker

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ RUN --mount=type=cache,target=/root/.cache/pypoetry \
5757
--all-extras \
5858
--with test \
5959
--without docs,dev \
60-
&& python -m compileall .venv
60+
&& python -m compileall -j 4 .venv
6161

6262
RUN sed -i 's/python -m/coverage run -m/g' /app/entrypoint.sh
6363
ENV SYNCMASTER__WORKER__CREATE_SPARK_SESSION_FUNCTION=tests.spark.get_worker_spark_session

0 commit comments

Comments
 (0)