Skip to content

Commit

Permalink
ARCH = amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
drernie committed Aug 18, 2024
1 parent 343979b commit c94e2f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN ls -R ./
# Only needed if you, e.g., install a script
# RUN poetry install --without dev

ENTRYPOINT ["poetry", "run", "python", "-m", "example.handler.sample_handler"]
# ENTRYPOINT ["poetry", "run", "python", "-m", "example.handler.sample_handler"]

# CMD [ "example.handler.sample_handler" ]
# ENTRYPOINT ["poetry", "run", "python", "-m", "athena_federation.sample_handler"]
ENTRYPOINT ["poetry", "run", "python", "-m", "athena_federation.main"]
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
#

PROJ = athena_federation
IMG = local/athena-federation
CONTAINER = athena-federation
VERSION = $(shell poetry version | cut -d' ' -f2)
IMG = local/$(CONTAINER):$(VERSION)
CLIENT_PORT = 9000
SERVER_PORT = 8080
PORTMAP = -p $(CLIENT_PORT):$(SERVER_PORT)
ARCH = $(shell uname -m)
ARCH = amd64 # force to standard platform
PLAT = --platform=linux/$(ARCH)
BUILD = image build $(PLAT)
RUN = container run $(PLAT)
Expand Down Expand Up @@ -67,7 +69,7 @@ docker-status:
# Build Docker image
docker-build:
docker $(BUILD) -t $(IMG) .
docker images | grep $(IMG)
docker images | grep $(CONTAINER)

docker-debug:
docker $(BUILD) . --no-cache --build-arg DEBUG=true
Expand Down

0 comments on commit c94e2f4

Please sign in to comment.