Skip to content

Commit

Permalink
Publish Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lecriste committed Nov 25, 2024
1 parent f0c38ee commit 89f11a7
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 25 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/on_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,26 @@ jobs:
- name: Publish distribution package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
#password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true

deploy_docker_image:
env:
REGISTRY_IMAGE_TAG: $GITHUB_REF_NAME
CI_REGISTRY_IMAGE: bluebrain/bbp-atlas-pipeline
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master

- name: Docker Hub Login
uses: docker/login-action@v3
with:
username: ${{ vars.BBPBUILDBOT_DOCKERHUB_USER }}
password: ${{ secrets.BBPBUILDBOT_DOCKERHUB_PASSWORD }}

- name: Build and Push Docker Image
uses: docker/build-push-action@v6
with:
push: true
tags: bluebrain/bbp-atlas-pipeline:$GITHUB_REF_NAME
43 changes: 19 additions & 24 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
FROM python:3.10-slim

ARG CI_JOB_TOKEN
ARG BBP_CA_CERT

RUN apt-get update && \
DEBIAN_FRONTEND="noninteractive" TZ="Europe/Zurich" apt-get install -y tzdata && \
apt-get install -y --no-install-recommends \
Expand All @@ -27,39 +24,25 @@ COPY .. .
# export PATH=$PATH:$PWD/build/bin

# Install the pipeline repository (along with the bbp-atlas CLI)
RUN pip install -i https://bbpteam.epfl.ch/repository/devpi/simple/ blue_brain_atlas_pipeline/
RUN pip install blue_brain_atlas_pipeline/

# For install dependencies
RUN git config --global --add url."https://gitlab-ci-token:${CI_JOB_TOKEN}@bbpgitlab.epfl.ch/".insteadOf https://bbpgitlab.epfl.ch/
# Install dependencies

# module load py-token-fetch
RUN pip install -i https://bbpteam.epfl.ch/repository/devpi/simple/ "blue-brain-token-fetch>=1.0.0"
RUN pip install "blue-brain-token-fetch>=1.0.0"

# module load py-bba-datafetch
RUN pip install -i https://bbpteam.epfl.ch/repository/devpi/simple/ "bba-data-fetch>=0.3.0"

# densities validation
RUN pip install -i https://bbpteam.epfl.ch/repository/devpi/simple/ "densities-validation>=0.1.1"

# leaves-only
RUN pip install -i https://bbpteam.epfl.ch/repository/devpi/simple/ "cell-densities>=0.2.1"
RUN pip install git+https://github.com/BlueBrain/[email protected]

# module load py-bba-webexporter
RUN pip install -i https://bbpteam.epfl.ch/repository/devpi/simple/ "blue-brain-atlas-web-exporter>=3.0.0"

# module load py-data-integrity-check
RUN pip install -i https://bbpteam.epfl.ch/repository/devpi/simple/ "bba-data-integrity-check>=0.2.0"
RUN pip install git+https://github.com/BlueBrain/[email protected]

RUN pip install blue-cwl

# module load py-bba-data-push
RUN pip install -i https://bbpteam.epfl.ch/repository/devpi/simple/ "bba-data-push>=4.3.0"
RUN pip install "blue-brain-data-push>=4.3.0"

RUN pip install git+https://bbpgitlab.epfl.ch/dke/users/jonathanlurie/[email protected]

RUN pip install -i https://bbpteam.epfl.ch/repository/devpi/simple/ "pipeline-validator>=0.3.1"

RUN git config --global --remove-section url."https://gitlab-ci-token:${CI_JOB_TOKEN}@bbpgitlab.epfl.ch/"
RUN pip install "bbp-atlas-pipeline-validator>=0.3.1"

RUN pip install "atlas-commons>=0.1.5"

Expand All @@ -72,3 +55,15 @@ RUN pip install "atlas-placement-hints>=0.1.4"
RUN pip install "atlas-densities>=0.2.5"

RUN pip install "snakemake==7.32.3"


ARG CI_JOB_TOKEN
RUN git config --global --add url."https://gitlab-ci-token:${CI_JOB_TOKEN}@bbpgitlab.epfl.ch/".insteadOf https://bbpgitlab.epfl.ch/

# densities validation
RUN pip install -i https://bbpteam.epfl.ch/repository/devpi/simple/ "densities-validation>=0.1.1"

# leaves-only
RUN pip install -i https://bbpteam.epfl.ch/repository/devpi/simple/ "cell-densities>=0.2.1"

RUN git config --global --remove-section url."https://gitlab-ci-token:${CI_JOB_TOKEN}@bbpgitlab.epfl.ch/"

0 comments on commit 89f11a7

Please sign in to comment.