-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add base image for batch execution (#173)
- Loading branch information
1 parent
35900b0
commit 141a832
Showing
2 changed files
with
62 additions
and
0 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
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,34 @@ | ||
# define build arguments | ||
ARG RENKU_BASE=renku/renkulab-py:latest | ||
ARG BASE_IMAGE=python:3.9-slim | ||
|
||
# define base images | ||
FROM $RENKU_BASE as renku_base | ||
FROM $BASE_IMAGE | ||
|
||
LABEL maintainer="Swiss Data Science Center <[email protected]>" | ||
|
||
# install dependencies | ||
RUN apt-get update -y && \ | ||
apt-get install -y curl && \ | ||
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && \ | ||
apt-get update -y && \ | ||
apt-get install -y git git-lfs nodejs && \ | ||
apt-get purge && \ | ||
apt-get clean && \ | ||
apt autoremove --yes && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip install pipx | ||
|
||
# override default locations of pipx and app installation | ||
ENV PIPX_BIN_DIR /share/bin | ||
ENV PIPX_HOME /share/pipx | ||
ENV PATH /share/bin:$PATH | ||
|
||
# install renku-python | ||
RUN pipx install --pip-args="--no-cache" renku | ||
|
||
# inject entrypoint.sh | ||
COPY --from=renku_base /entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] |