Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make platform of image explicit #57

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@ HOST_DIR ?= $(shell pwd)
DOCKER_VOLUME_HOME ?= $(shell whoami)-home
DOCKER_VOLUME_ISABELLE ?= $(shell whoami)-isabelle

# Explicitly set the default platform for the image to x86_64 Linux.
# This is required for non-x86 hosts.
DOCKER_IMG_PLATFORM ?= linux/amd64

# Extra vars
DOCKER_BUILD ?= $(DOCKER) build
DOCKER_FLAGS ?= --force-rm=true
DOCKER_FLAGS ?= --force-rm=true --platform $(DOCKER_IMG_PLATFORM)
ifndef EXEC
EXEC := bash
DOCKER_RUN_FLAGS += -it
DOCKER_RUN_FLAGS += -it --platform $(DOCKER_IMG_PLATFORM)
endif

ETC_LOCALTIME := $(realpath /etc/localtime)
Expand Down