cmssw-docker merge requestshttps://gitlab.cern.ch/cms-cloud/cmssw-docker/-/merge_requests2020-07-14T18:19:05+02:00https://gitlab.cern.ch/cms-cloud/cmssw-docker/-/merge_requests/14CI move date into script2020-07-14T18:19:05+02:00Adelina Eleonora LintuluotoCI move date into scriptMove setting of `DATE` to inside script, since at `before_script` it didn't get picked up when setting variable values. Tested and finsihed successfully in https://gitlab.cern.ch/cms-cloud/cmssw-docker/pipelines/1796224.Move setting of `DATE` to inside script, since at `before_script` it didn't get picked up when setting variable values. Tested and finsihed successfully in https://gitlab.cern.ch/cms-cloud/cmssw-docker/pipelines/1796224.https://gitlab.cern.ch/cms-cloud/cmssw-docker/-/merge_requests/13CI for image building2020-07-14T14:23:39+02:00Adelina Eleonora LintuluotoCI for image buildingcloses #16
Add CI for building images.
Different ways of building images:
1. Changes pushed to cms/cvmfs folders
* Trigger build of `cms_cvmfs` template
2. Schedule including the variable `IMAGE_NAME`
* Trigger build ...closes #16
Add CI for building images.
Different ways of building images:
1. Changes pushed to cms/cvmfs folders
* Trigger build of `cms_cvmfs` template
2. Schedule including the variable `IMAGE_NAME`
* Trigger build of `cms_cvmfs` template
3. (e.g.) API call including variables `RELEASE`, `SCRAM_ARCH` and `OS`
* Trigger build of `standalone` template
Changes:
* Use build template for both `cms_cvfms` and `standalone`.
* Trigger `check_changed_files` only when new changes are pushed (avoid triggering on API/pipeline)https://gitlab.cern.ch/cms-cloud/cmssw-docker/-/merge_requests/12add pipeline for building docker images2020-06-19T09:52:19+02:00Adelina Eleonora Lintuluotoadd pipeline for building docker imagesThe pipeline contains two different build jobs, building a standalone or a cms/cvmfs version. In addition it contains a job for checking which files have been modified, enabling to trigger the build of the cms/cvmfs version that was chan...The pipeline contains two different build jobs, building a standalone or a cms/cvmfs version. In addition it contains a job for checking which files have been modified, enabling to trigger the build of the cms/cvmfs version that was changed. Only reason for there to be a separate script `check.sh` and not just a multi line script is because I didn't get the multi line syntax to work with a for loop
```
script:
- >
```
If you know how to fix it we can transfer the code in `check.sh` to the pipeline!
-----------------------------
The two build jobs:
* A standalone build is triggered when the variables `CMSSW_VERSION`, `SCRAM_ARCH` and `BASE_IMAGE` is passed, could be passed with a webhook.
* A cms/cvmfs version is built when there has been a change in the directory containing the Dockerfile corresponding to the image. Since there is only one job but five directories, before building, the job has to set the IMAGE_NAME variable to indicate which image to build (cc7-cms/cvmfs, slc6-cms/cvmfs, slc5-cms). This is set with the job `check changed files`
The file `check.sh` calls
```
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)
```
which returns a list of all files that has been modified. The directory of the file is checked and the pipeline is triggered again, this time with the variable IMAGE_NAME set to the directory name. (The reason why the job tags docker is because the runner has git installed).https://gitlab.cern.ch/cms-cloud/cmssw-docker/-/merge_requests/11Make base image configurable for standalone images2018-10-26T17:31:13+02:00Clemens LangeMake base image configurable for standalone images*Created by: clelange*
*Created by: clelange*
https://gitlab.cern.ch/cms-cloud/cmssw-docker/-/merge_requests/10add packages needed for CMS bootstrap script2018-10-26T15:32:13+02:00Clemens Langeadd packages needed for CMS bootstrap script*Created by: clelange*
*Created by: clelange*
https://gitlab.cern.ch/cms-cloud/cmssw-docker/-/merge_requests/9CC72018-10-25T17:36:01+02:00Clemens LangeCC7*Created by: clelange*
Add CERN Cent OS 7 container for CMS software.*Created by: clelange*
Add CERN Cent OS 7 container for CMS software.https://gitlab.cern.ch/cms-cloud/cmssw-docker/-/merge_requests/8SLC5 container2018-10-25T15:33:00+02:00Clemens LangeSLC5 container*Created by: clelange*
This PR adds an SLC5 container to be able to run CMSSW_4_X_Y.
The entrypoint.sh script is now also nicer and does still allow to start the container when CVMFS is not mounted.*Created by: clelange*
This PR adds an SLC5 container to be able to run CMSSW_4_X_Y.
The entrypoint.sh script is now also nicer and does still allow to start the container when CVMFS is not mounted.https://gitlab.cern.ch/cms-cloud/cmssw-docker/-/merge_requests/7update documentation2018-07-25T16:22:03+02:00Clemens Langeupdate documentation*Created by: clelange*
*Created by: clelange*
https://gitlab.cern.ch/cms-cloud/cmssw-docker/-/merge_requests/6Multistage build2018-07-25T15:53:47+02:00Clemens LangeMultistage build*Created by: clelange*
Overall restructuring of images, also adding grid certificates and vomses.
Closes #2 *Created by: clelange*
Overall restructuring of images, also adding grid certificates and vomses.
Closes #2 https://gitlab.cern.ch/cms-cloud/cmssw-docker/-/merge_requests/5Add entrypoint and change cmsusr ID to 10002018-07-25T15:53:31+02:00Clemens LangeAdd entrypoint and change cmsusr ID to 1000*Created by: clelange*
Closes #3
Closes #4
@tiborsimko - I've built `clelange/cmssw:5_3_32` with this already, my tests were successful, would be great if you tested it as well.*Created by: clelange*
Closes #3
Closes #4
@tiborsimko - I've built `clelange/cmssw:5_3_32` with this already, my tests were successful, would be great if you tested it as well.https://gitlab.cern.ch/cms-cloud/cmssw-docker/-/merge_requests/1Create LICENSE2018-07-07T09:38:43+02:00Clemens LangeCreate LICENSE*Created by: clelange*
*Created by: clelange*