Skip to content

Commit

Permalink
Sunset cc7 images.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Oct 18, 2024
1 parent 204a20a commit 955231c
Show file tree
Hide file tree
Showing 2 changed files with 142 additions and 158 deletions.
270 changes: 135 additions & 135 deletions .github/workflows/deploy_images_c7.yml
Original file line number Diff line number Diff line change
@@ -1,150 +1,150 @@
name: Deploy images CentOS7
# name: Deploy images CentOS7

on:
workflow_dispatch:
inputs:
push_image:
description: "Push to DockerHub"
type: boolean
default: false
# on:
# workflow_dispatch:
# inputs:
# push_image:
# description: "Push to DockerHub"
# type: boolean
# default: false

specific_job:
description: "Specific job to run"
type: choice
default: none
options:
- none
- py27
- py36
- py37
- py38
- py39
- py310
# specific_job:
# description: "Specific job to run"
# type: choice
# default: none
# options:
# - none
# - py27
# - py36
# - py37
# - py38
# - py39
# - py310

platforms:
description: Platforms to build for
type: choice
default: linux/amd64,linux/arm64
options:
- linux/amd64,linux/arm64
- linux/amd64
- linux/arm64
# platforms:
# description: Platforms to build for
# type: choice
# default: linux/amd64,linux/arm64
# options:
# - linux/amd64,linux/arm64
# - linux/amd64
# - linux/arm64

jobs:
# still existing for legacy support, to be removed soon
c7-py27:
if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py27') }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
# jobs:
# # still existing for legacy support, to be removed soon
# c7-py27:
# if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py27') }}
# runs-on: ubuntu-latest
# steps:
# - name: Checkout 🛎️
# uses: actions/checkout@v4
# with:
# persist-credentials: false

- name: Build and deploy image 🐳
uses: docker/build-push-action@v1
with:
path: docker
dockerfile: docker/Dockerfile_centos7_py27
repository: riga/law
tags: c7-py27,py27,py2
push: ${{ github.event.inputs.build_only != 'true' }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Build and deploy image 🐳
# uses: docker/build-push-action@v1
# with:
# path: docker
# dockerfile: docker/Dockerfile_centos7_py27
# repository: riga/law
# tags: c7-py27,py27,py2
# push: ${{ github.event.inputs.build_only != 'true' }}
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

# still existing for legacy support, to be removed soon
c7-py36:
if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py36') }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
# # still existing for legacy support, to be removed soon
# c7-py36:
# if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py36') }}
# runs-on: ubuntu-latest
# steps:
# - name: Checkout 🛎️
# uses: actions/checkout@v4
# with:
# persist-credentials: false

- name: Build and deploy image 🐳
uses: docker/build-push-action@v1
with:
path: docker
dockerfile: docker/Dockerfile_centos7_py36
repository: riga/law
tags: c7-py36,py36
push: ${{ github.event.inputs.build_only != 'true' }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Build and deploy image 🐳
# uses: docker/build-push-action@v1
# with:
# path: docker
# dockerfile: docker/Dockerfile_centos7_py36
# repository: riga/law
# tags: c7-py36,py36
# push: ${{ github.event.inputs.build_only != 'true' }}
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

c7-py37:
if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py37') }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
# c7-py37:
# if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py37') }}
# runs-on: ubuntu-latest
# steps:
# - name: Checkout 🛎️
# uses: actions/checkout@v4
# with:
# persist-credentials: false

- name: Build and deploy image 🐳
uses: ./.github/actions/build-image
with:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
docker_file: docker/Dockerfile_centos7_py37
platforms: ${{ github.event.inputs.platforms }}
tags: riga/law:c7-py37
push_image: ${{ github.event.inputs.push_image == 'true' }}
# - name: Build and deploy image 🐳
# uses: ./.github/actions/build-image
# with:
# dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
# dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
# docker_file: docker/Dockerfile_centos7_py37
# platforms: ${{ github.event.inputs.platforms }}
# tags: riga/law:c7-py37
# push_image: ${{ github.event.inputs.push_image == 'true' }}

c7-py38:
if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py38') }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
# c7-py38:
# if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py38') }}
# runs-on: ubuntu-latest
# steps:
# - name: Checkout 🛎️
# uses: actions/checkout@v4
# with:
# persist-credentials: false

- name: Build and deploy image 🐳
uses: ./.github/actions/build-image
with:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
docker_file: docker/Dockerfile_centos7_py38
platforms: ${{ github.event.inputs.platforms }}
tags: riga/law:c7-py38
push_image: ${{ github.event.inputs.push_image == 'true' }}
# - name: Build and deploy image 🐳
# uses: ./.github/actions/build-image
# with:
# dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
# dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
# docker_file: docker/Dockerfile_centos7_py38
# platforms: ${{ github.event.inputs.platforms }}
# tags: riga/law:c7-py38
# push_image: ${{ github.event.inputs.push_image == 'true' }}

c7-py39:
if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py39') }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
# c7-py39:
# if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py39') }}
# runs-on: ubuntu-latest
# steps:
# - name: Checkout 🛎️
# uses: actions/checkout@v4
# with:
# persist-credentials: false

- name: Build and deploy image 🐳
uses: ./.github/actions/build-image
with:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
docker_file: docker/Dockerfile_centos7_py39
platforms: ${{ github.event.inputs.platforms }}
tags: riga/law:c7-py39
push_image: ${{ github.event.inputs.push_image == 'true' }}
# - name: Build and deploy image 🐳
# uses: ./.github/actions/build-image
# with:
# dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
# dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
# docker_file: docker/Dockerfile_centos7_py39
# platforms: ${{ github.event.inputs.platforms }}
# tags: riga/law:c7-py39
# push_image: ${{ github.event.inputs.push_image == 'true' }}

c7-py310:
if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py310') }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
# c7-py310:
# if: ${{ github.event.inputs.specific_job == 'none' || contains(github.event.inputs.specific_job, 'py310') }}
# runs-on: ubuntu-latest
# steps:
# - name: Checkout 🛎️
# uses: actions/checkout@v4
# with:
# persist-credentials: false

- name: Build and deploy image 🐳
uses: ./.github/actions/build-image
with:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
docker_file: docker/Dockerfile_centos7_py310
platforms: ${{ github.event.inputs.platforms }}
tags: riga/law:c7-py310,riga/law:c7-py3,riga/law:c7
push_image: ${{ github.event.inputs.push_image == 'true' }}
# - name: Build and deploy image 🐳
# uses: ./.github/actions/build-image
# with:
# dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
# dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
# docker_file: docker/Dockerfile_centos7_py310
# platforms: ${{ github.event.inputs.platforms }}
# tags: riga/law:c7-py310,riga/law:c7-py3,riga/law:c7
# push_image: ${{ github.event.inputs.push_image == 'true' }}
30 changes: 7 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

<!-- marker-before-header -->

> [!NOTE]
> [!NOTE]
> This project is currently under development.
> - Version 1.0.0 will support Python ≥3.7 and is developed in the [release_prep branch](https://github.com/riga/law/tree/release_prep).
> - There will be a legacy branch with Python 2.7 and ≤3.6 support that, however, won't receive any new features.
Expand All @@ -57,26 +57,24 @@ Key features:

<!-- marker-after-header -->


## Contents

<!-- marker-before-contents -->

- [First steps](#first-steps)
- [Installation and dependencies](#installation-and-dependencies)
- [Usage at CERN](#usage-at-cern)
- [Overcomplete example config](#overcomplete-example-config)
- [Installation and dependencies](#installation-and-dependencies)
- [Usage at CERN](#usage-at-cern)
- [Overcomplete example config](#overcomplete-example-config)
- [Projects using law](#projects-using-law)
- [Examples](#examples)
- [Further topics](#further-topics)
- [Auto completion on the command-line](#auto-completion-on-the-command-line)
- [Auto completion on the command-line](#auto-completion-on-the-command-line)
- [Development](#development)
- [Tests](#tests)
- [Contributors](#contributors)
- [Tests](#tests)
- [Contributors](#contributors)

<!-- marker-after-contents -->


<!-- marker-before-body -->

## First steps
Expand All @@ -101,17 +99,14 @@ If you plan to use remote targets, the (default) implementation also requires [g
conda install -c conda-forge gfal2 gfal2-util
```


### Usage at CERN

See the [wiki](https://github.com/riga/law/wiki/Usage-at-CERN).


### Overcomplete example config

See [law.cfg.example](https://github.com/riga/law/tree/master/law.cfg.example).


## Projects using law

- CMS Di-Higgs Inference Tools:
Expand Down Expand Up @@ -150,7 +145,6 @@ See [law.cfg.example](https://github.com/riga/law/tree/master/law.cfg.example).

If your project uses law but is not yet listed here, feel free to open a pull request or mention your project details in a new [issue](https://github.com/riga/law/issues/new?assignees=riga&labels=docs&template=register-project.md) and it will be added.


## Examples

All examples can be run either in a Jupyter notebook or a dedicated docker container.
Expand Down Expand Up @@ -181,7 +175,6 @@ docker run -ti riga/law:example <example_name>
- [notifications](https://github.com/riga/law/tree/master/examples/notifications): Demonstration of slack and telegram task status notifications..
- [CMS Single Top Analysis](https://github.com/riga/law_example_CMSSingleTopAnalysis): Simple physics analysis using law.


## Further topics

### Auto completion on the command-line
Expand Down Expand Up @@ -218,13 +211,11 @@ If this is the case, just source the law completion script (which internally ena
source "$( law completion )"
```


## Development

- Source hosted at [GitHub](https://github.com/riga/law)
- Report issues, questions, feature requests on [GitHub Issues](https://github.com/riga/law/issues)


### Tests

To run and test law, there are various docker `riga/law` images available on the [DockerHub](https://cloud.docker.com/u/riga/repository/docker/riga/law), corresponding to different OS and Python versions (based on [micromamba](https://mamba.readthedocs.io/en/latest/user_guide/micromamba.html)).
Expand All @@ -246,13 +237,6 @@ docker run -ti riga/law:<the_tag>
| CentOS 8 | 3.9 | c8-py39 |
| CentOS 8 | 3.8 | c8-py38 |
| CentOS 8 | 3.7 | c8-py37 |
| CentOS 7 | 3.10 | c7-py310, c7-py3, c7 |
| CentOS 7 | 3.9 | c7-py39 |
| CentOS 7 | 3.8 | c7-py38 |
| CentOS 7 | 3.7 | c7-py37 |
| CentOS 7 | 3.6 | c7-py36, py36 (removed soon) |
| CentOS 7 | 2.7 | c7-py27, c7-py2, py27, py2 (removed soon) |


### Contributors

Expand Down

0 comments on commit 955231c

Please sign in to comment.