Skip to content

Commit 7c19ae2

Browse files
committed
Use docker run to start fake-gcs-server
1 parent d5fbafa commit 7c19ae2

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/server.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,23 @@ jobs:
3737
ports:
3838
- 5432:5432
3939

40-
storage:
41-
image: fsouza/fake-gcs-server
42-
ports:
43-
- 4443:4443
44-
options: >-
45-
--entrypoint '/bin/fake-gcs-server -scheme http -port 4443'
46-
4740
strategy:
4841
max-parallel: 4
4942
matrix:
5043
python-version: [3.12]
5144

5245
steps:
46+
# Use docker run directly instead of the `services` key because otherwise it's not possible
47+
# to pass the `-scheme` flag.
48+
# See:
49+
# - https://github.com/fsouza/fake-gcs-server/issues/561
50+
# - https://github.com/orgs/community/discussions/26688
51+
- name: Start Fake GCS Server
52+
run: |
53+
docker run -d --name fake-gcs-server \
54+
-p 4443:4443 \
55+
- fsouza/fake-gcs-server \
56+
-scheme http
5357
- uses: actions/checkout@v4
5458
- name: Set up Python ${{ matrix.python-version }}
5559
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)