Skip to content

Commit

Permalink
docker-compose.yml: specify AMD64 platform
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kevinburkesegment committed Jul 16, 2024
1 parent 9c21a4c commit bc14267
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,17 @@ services:
command: make dev
image: jekyll/jekyll:latest
volumes:
- '.:/srv/jekyll'
- './vendor/bundle:/usr/local/bundle'
- '.:/srv/jekyll'
- './vendor/bundle:/usr/local/bundle'
ports:
- 4000:4000
- 4000:4000
container_name: jekyll
# If you are on arm64 and experiencing issues with the tests (hangs,
# connection reset) then try the following in order:

# - stopping and removing all downloaded container images
# - ensuring you have the latest Docker Desktop version
# - factory reset your Docker Desktop settings

# If you are still running into issues please post in #help-infra-seg.
platform: linux/amd64

0 comments on commit bc14267

Please sign in to comment.