Skip to content

Commit bc14267

Browse files
committedJul 16, 2024·
docker-compose.yml: specify AMD64 platform
Several Docker images used by Segment do not work reliably on Mac M1 laptops, which use the ARM chipset. Commonly, these are images that were built several years ago, before M1 laptops were in widespread use, and behave unpredictably when run on an ARM chipset. The simplest workaround is to ensure that the Docker environment is always running on x86. This change should ensure that employees with M1 laptops will be able to reliably start and run Docker containers on this repository.
1 parent 9c21a4c commit bc14267

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed
 

‎docker-compose.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,17 @@ services:
55
command: make dev
66
image: jekyll/jekyll:latest
77
volumes:
8-
- '.:/srv/jekyll'
9-
- './vendor/bundle:/usr/local/bundle'
8+
- '.:/srv/jekyll'
9+
- './vendor/bundle:/usr/local/bundle'
1010
ports:
11-
- 4000:4000
11+
- 4000:4000
1212
container_name: jekyll
13+
# If you are on arm64 and experiencing issues with the tests (hangs,
14+
# connection reset) then try the following in order:
15+
16+
# - stopping and removing all downloaded container images
17+
# - ensuring you have the latest Docker Desktop version
18+
# - factory reset your Docker Desktop settings
19+
20+
# If you are still running into issues please post in #help-infra-seg.
21+
platform: linux/amd64

0 commit comments

Comments
 (0)
Please sign in to comment.