Skip to content

Commit

Permalink
Merge pull request #106 from rasools/OMICSINT_H24
Browse files Browse the repository at this point in the history
Add session_ml_deep_learning_integration_amd workflow
  • Loading branch information
rasools authored Sep 13, 2024
2 parents bd886ac + 3e2a273 commit 5551989
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build and Push Docker Image for Session Gems
name: Build and Push Docker Image for lab deep learning integration

on:
push:
paths:
- 'session_gems/**'
- 'session_ml/DeepLearningDataIntegration/**'
branches:
- OMICSINT_H24

Expand Down Expand Up @@ -34,10 +34,10 @@ jobs:
uses: docker/build-push-action@v4
with:
context: ./session_gems
file: session_gems/Dockerfile
platforms: linux/arm64
file: session_ml/DeepLearningDataIntegration/Dockerfile
platforms: linux/amd64
push: true
tags: docker.io/rasoolsnbis/omicsint_h24:session_gems_arm
tags: docker.io/rasoolsnbis/omicsint_h24:session_ml_deep_learning_integration_amd

- name: Inspect Docker Image
run: docker buildx imagetools inspect docker.io/rasoolsnbis/omicsint_h24:session_gems_arm
run: docker buildx imagetools inspect docker.io/rasoolsnbis/omicsint_h24:session_ml_deep_learning_integration_amd
7 changes: 7 additions & 0 deletions session_ml/DeepLearningDataIntegration/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ USER root
RUN apt-get update && apt-get install curl -y --no-install-recommends && \
apt-get clean && rm -rf /var/lib/apt/lists/*

# Clone the data folder from GitHub
RUN git clone --depth=1 --filter=blob:none --sparse https://github.com/NBISweden/workshop_omics_integration.git /tmp/repo && \
cd /tmp/repo && \
git sparse-checkout set session_gems/lab/data && \
mv session_ml/DeepLearningDataIntegration/lab/data /home/jovyan/lab/data && \
rm -rf /tmp/repo

# Install pip requirements as root
RUN pip install --no-cache-dir -r /tmp/requirements.txt

Expand Down

0 comments on commit 5551989

Please sign in to comment.