Skip to content

Commit

Permalink
fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilien Le Clei committed Oct 15, 2023
1 parent ff6b00d commit 72fb536
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/container-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
uses: actions/checkout@v3
- name: Build the CNeuroMax image
run: podman build -t cneuromod/cneuromax:latest -f Containerfile .
- name: Remove dangling images
run: podman image prune
- name: Push the CNeuroMax image to Docker Hub
run: podman push docker.io/cneuromod/cneuromax:latest
- name: Remove Buildah containers
run: buildah rm --all
- name: Remove dangling images
run: podman image prune -f
6 changes: 2 additions & 4 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ RUN apt update && apt install -y \
python3-dev \
# Python package manager
python3-pip \
# OpenCV requires system packages, best to install through Ubuntu
python3-opencv \
# To pip install GitHub packages
git \
# Java (to build our fork of Hydra)
Expand All @@ -35,6 +33,6 @@ ADD pyproject.toml /cneuromax/pyproject.toml
ADD cneuromax /cneuromax/cneuromax

# Install Python dependencies
RUN pip install --user --no-cache-dir --upgrade pip \
&& pip install --user --no-cache-dir -e cneuromax \
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -e cneuromax \
&& pip uninstall -y cneuromax
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ dependencies = [
# Required for cneuromax/fitting/deeplearning/
"torch==2.1.0",
"lightning==2.1.0",
"transformers==4.34.0",
# Required for cneuromax/fitting/neuroevolution/
"mpi4py==3.1.5",
# Computer Vision packages
"torchvision==0.16.0",
"transformers==4.34.0",
"opencv-python==4.8.1.78",
# Torch shapes
"jaxtyping==0.2.22",
"beartype==0.16.3",
Expand All @@ -51,7 +53,6 @@ dependencies = [
"pytest==7.4.2",
"pytest-cov==4.1.0",
# W&B
"protobuf==3.20.3",
"wandb==0.15.12",
"wandb-osh==1.1.2",
]
Expand Down

0 comments on commit 72fb536

Please sign in to comment.