-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to work with the ETOS controller (#106)
* Make environment provider compatible with the kubernetes controller
- Loading branch information
Showing
19 changed files
with
924 additions
and
430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Dockerfile to use with the controller environment where we run the environment provider as a Job | ||
# instead of running it as an imported service in the suite runner. | ||
FROM python:3.9-bookworm AS build | ||
|
||
COPY . /src | ||
WORKDIR /src | ||
RUN pip install --no-cache-dir build && python3 -m build | ||
|
||
FROM python:3.9-slim-bookworm | ||
|
||
COPY --from=build /src/dist/*.whl /tmp | ||
# hadolint ignore=DL3013 | ||
|
||
RUN pip install --no-cache-dir /tmp/*.whl && groupadd -r etos && useradd -r -m -s /bin/false -g etos etos | ||
|
||
USER etos | ||
|
||
LABEL org.opencontainers.image.source=https://github.com/eiffel-community/etos-environment-provider | ||
LABEL org.opencontainers.image.authors=etos-maintainers@googlegroups.com | ||
LABEL org.opencontainers.image.licenses=Apache-2.0 | ||
|
||
CMD ["python", "-u", "-m", "environment_provider.environment_provider"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.