Skip to content

Commit

Permalink
Merge pull request #1 from courtois-neuromod/cneuromod
Browse files Browse the repository at this point in the history
changes for cneuromod actions
  • Loading branch information
bpinsard authored Jul 7, 2022
2 parents afa9787 + 5d940f5 commit 1b1ddda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

env:
REGISTRY: ghcr.io
IMAGE_NAME: templateflow/datalad
IMAGE_NAME: courtois-neuromod/datalad

jobs:
build-and-push-image:
Expand All @@ -29,7 +29,7 @@ jobs:
with:
registry: ${{ env.REGISTRY }}
username: cneuromod-bot
password: ${{ secrets.NIPREPS_BOT_PACKAGES }}
password: ${{ secrets.CNEUROMOD_BOT_REGISTRY_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
Expand Down
17 changes: 6 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
FROM python:3.8-slim
FROM python:3.8-alpine as builder

# Prepare environment
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl bzip2 git && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apk update && apk add --no-cache curl bzip2 gcc libffi-dev musl-dev

ENV GIT_ANNEX_PACKAGE=git-annex-10.20220505-nodep_h1234567_0.tar.bz2
RUN pip install datalad pytest ssh_agent_setup

RUN cd /usr/ && \
curl -sSL https://anaconda.org/conda-forge/git-annex/10.20220505/download/linux-64/$GIT_ANNEX_PACKAGE | \
tar -xj
FROM python:3.8-alpine
COPY --from=builder /usr/local /usr/local

RUN pip install datalad pytest ssh_agent_setup
RUN apk update && apk add --no-cache git openssh-client git-annex

0 comments on commit 1b1ddda

Please sign in to comment.