Skip to content

add redis and executor services into docker-compose files#12

Open
ra2y wants to merge 3 commits intodevfrom
rachel/add-services
Open

add redis and executor services into docker-compose files#12
ra2y wants to merge 3 commits intodevfrom
rachel/add-services

Conversation

@ra2y
Copy link
Copy Markdown
Collaborator

@ra2y ra2y commented Apr 10, 2026

for numba 1 in issue #11. tbh how do you even test dis.

Dockerfile Outdated
Comment on lines +27 to +35


FROM python3.12-slim

WORKDIR /app

# entrypoint lets us pipe stdin and returns stdout

ENTRYPOINT ["python", "/code/solution.py"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this stuff should be in its own file Dockerfile.python since the runner is a separate service from the Go backend

retries: 5
executor:
build:
context: ./executor
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
context: ./executor
context: .

typo in the issue

executor:
# docker can only access files in /executor
build:
context: ./executor
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
context: ./executor
context: .

typo in the issue

Copy link
Copy Markdown
Contributor

@adarshm11 adarshm11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also create a new Dockerfile for building and running the executor service, assume this is at cmd/runner/main.go and is done like any normal Go service. then this Dockerfile.executor can be referenced in the docker-compose as how to run the executor service

Comment on lines +2 to +7

WORKDIR /app

# entrypoint lets us pipe stdin and returns stdout

ENTRYPOINT ["python", "/code/solution.py"] No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all of this stuff will be invoked by the Go service when queried, all this file needs to have is the image line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants