Skip to content

Commit 31764b6

Browse files
committed
fix: Try to get original command dynamically
1 parent 0b25e27 commit 31764b6

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/e2e-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ jobs:
370370

371371
- name: Start docker containers
372372
run: |
373+
export ORIGINAL_CMD=$(docker inspect --format='{{join .Config.Cmd " "}}' etherpad/etherpad:${{ matrix.versions.tag }})
373374
EP_VERSION=${{ matrix.versions.tag }} docker compose -f ./tests/e2e/docker/docker-compose.plugins.yml up -d --wait
374375
375376
- name: Dump docker compose logs on failure
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
etherpad:
33
image: etherpad/etherpad:$EP_VERSION
4-
command: ["sh", "-c", "pnpm run plugins i ep_align ep_headings2 ep_font_color ep_adminpads2 ep_comments_page ep_font_size ep_markdown && pnpm run prod"]
4+
entrypoint: /bin/sh -c "pnpm run plugins i ep_align ep_headings2 ep_font_color ep_adminpads2 ep_comments_page ep_font_size ep_markdown && ${ORIGINAL_CMD}"
55
ports:
66
- 9001:9001

0 commit comments

Comments
 (0)