-
Notifications
You must be signed in to change notification settings - Fork 164
chore(BA-2328): Add Dockerfile and entrypoint for Backend.AI Manager #5913
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,27 @@ | ||||||
| ARG PYTHON_VERSION | ||||||
| FROM python:${PYTHON_VERSION} AS builder | ||||||
| ARG PKGVER | ||||||
| COPY dist /dist | ||||||
| RUN pip wheel --wheel-dir=/wheels --no-cache-dir backend.ai-manager==${PKGVER} --find-links=/dist | ||||||
|
|
||||||
| FROM python:${PYTHON_VERSION} | ||||||
| COPY --from=builder /wheels /wheels | ||||||
| RUN mkdir -p /root/.ssh | ||||||
| RUN apt-get update && apt-get install -y vim && rm -rf /var/lib/apt/lists/* | ||||||
|
||||||
| RUN apt-get update && apt-get install -y vim && rm -rf /var/lib/apt/lists/* | |
| # Removed vim installation to reduce image bloat |
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the purpose of this script?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the RPC key doesn't exist, you'll need to create it. The execution part has become complicated, so I separated it into an sh file. |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,27 @@ | ||||
| #!/bin/bash | ||||
| set -e | ||||
|
|
||||
| echo "=== Backend.AI Manager Container starting ===" | ||||
|
|
||||
| # fixtures directory creation (default path structure) | ||||
| mkdir -p /app/fixtures/manager | ||||
|
|
||||
| # RPC keypair not found. Generating... | ||||
|
||||
| # RPC keypair not found. Generating... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like we need to do the wheel build inside the dockerfile.