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

Extra image for AI with elyra #200

Merged
merged 2 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/egi-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ jobs:
"single-user/Dockerfile"
"single-user-panosc/Dockerfile"
"single-user-ai4pp/Dockerfile"
"single-user-ai/Dockerfile"

base-image:
name: Build base image
needs: detect-changes
needs: detect-changes
if: needs.detect-changes.outputs.build-base == 1
runs-on: ubuntu-latest
outputs:
Expand Down
31 changes: 31 additions & 0 deletions single-user-ai/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
ARG BASE_IMAGE=eginotebooks/base:latest
# hadolint ignore=DL3006
FROM $BASE_IMAGE

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

RUN mamba install -y --quiet \
tensorflow \
&& conda clean --all

# See https://github.com/mamba-org/mamba/issues/336
# pytorch is not installing properly with mamba
RUN mamba install -y pytorch torchvision torchaudio cpuonly -c pytorch -c anaconda -c conda-forge \
&& mamba install -y --quiet fastai -c fastai \
&& conda clean --all

# packages not in conda
RUN pip install --no-cache-dir \
tflearn

# not installable from mamba for now
RUN pip install --no-cache-dir \
eo-learn

# not installable from mamba for now
RUN pip install --no-cache-dir \
elyra

RUN jupyter lab build

RUN rmdir work
18 changes: 1 addition & 17 deletions single-user/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,6 @@ RUN mamba install -y --quiet \
jupyter-resource-usage \
&& conda clean --all

# not installable from mamba for now
RUN pip install --no-cache-dir \
eo-learn

# not installable from mamba for now
# XXX: problem with dependency: pydantic
RUN pip install --no-cache-dir \
elyra

# See https://github.com/mamba-org/mamba/issues/336
# pytorch is not installing properly with mamba
RUN mamba install -y pytorch torchvision torchaudio cpuonly -c pytorch -c anaconda -c conda-forge \
&& mamba install -y --quiet fastai -c fastai \
&& conda clean --all

# Octave, install on a different environment
# Octave from conda won't build packages
# see https://discourse.jupyter.org/t/installing-octave-packages-with-binder/4206
Expand Down Expand Up @@ -97,8 +82,7 @@ RUN pip install --no-cache-dir \
git+https://github.com/EGI-Foundation/[email protected] \
h5glance \
nbtop \
panel \
tflearn
panel

# EMSO
# python3.7, install on a different environment
Expand Down