Skip to content
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

Add batch version image #172

Closed
TaoSunVoyage opened this issue Jul 7, 2021 · 0 comments · Fixed by #173
Closed

Add batch version image #172

TaoSunVoyage opened this issue Jul 7, 2021 · 0 comments · Fixed by #173
Assignees
Labels
kind/enhancement New feature or request

Comments

@TaoSunVoyage
Copy link
Contributor

We need an image for batch execution:

  • with out conda and jupyter stack
  • pipx should install packages (including renku) in /share not in ~

A working example can be found below:

FROM renku/renkulab-py:3.8-0.7.7 as source

FROM python:3.8-slim

COPY --from=source /entrypoint.sh /entrypoint.sh

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/* 

COPY requirements.txt /tmp/
RUN pip install -r /tmp/requirements.txt && \
    pip install pipx 

# Override default location of pipx and app installation
ENV PIPX_BIN_DIR /share/bin
ENV PIPX_HOME /share/pipx
ENV PATH /share/bin:$PATH

RUN pipx install renku==0.15.1

ENTRYPOINT ["/entrypoint.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant