-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from kreczko/testing-PR-60
Docker for HTCondor testing
- Loading branch information
Showing
8 changed files
with
237 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*,cover | ||
.hypothesis/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# IPython Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# dotenv | ||
.env | ||
|
||
# virtualenv | ||
venv/ | ||
ENV/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# Eclipse project files | ||
.*project | ||
|
||
# Vagrant folder | ||
.vagrant | ||
|
||
# common editor backup files | ||
~* | ||
.*sw[po] | ||
|
||
# Custom ignores | ||
external | ||
workspace | ||
data | ||
benchmark |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
root>=6.04 | ||
root-numpy | ||
numpy | ||
matplotlib | ||
pytables | ||
rootpy | ||
pandas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: '3' | ||
services: | ||
cmsl1t: | ||
build: | ||
context: . | ||
dockerfile: docker/Dockerfile | ||
image: kreczko/cms-l1t-analysis | ||
volumes: | ||
- .:/code | ||
environment: | ||
DISPLAY: ${DISPLAY} | ||
TERM: ${TERM} | ||
working_dir: /code | ||
tty: true | ||
domainname: foo.bar | ||
hostname: cmsl1t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM kreczko/htcondor-in-a-box | ||
|
||
ENV CMSL1T_CONDA_PATH /software/cmsl1t/miniconda | ||
|
||
# ROOT requirements | ||
RUN sudo apt install -y libxpm-dev libxft-dev | ||
|
||
RUN sudo mkdir -p ${CMSL1T_CONDA_PATH};\ | ||
cd ${CMSL1T_CONDA_PATH};\ | ||
cd ..;\ | ||
sudo chown `whoami` $PWD;\ | ||
sudo rmdir ${CMSL1T_CONDA_PATH}; | ||
|
||
RUN wget -nv https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O /tmp/miniconda.sh && \ | ||
bash /tmp/miniconda.sh -b -p ${CMSL1T_CONDA_PATH} && \ | ||
rm -f miniconda.sh | ||
ENV PATH="${CMSL1T_CONDA_PATH}/bin:$PATH" | ||
|
||
RUN echo "Finished conda installation, updating conda and pip" && \ | ||
conda update conda -yq && \ | ||
conda update pip -yq && \ | ||
conda install psutil -yq && \ | ||
conda config --add channels http://conda.anaconda.org/NLeSC && \ | ||
conda config --set show_channel_urls yes && \ | ||
conda clean -t -y | ||
|
||
COPY conda_requirements.txt /tmp/conda_requirements.txt | ||
|
||
RUN conda create -n cms python=2.7 -yq &&\ | ||
echo "Created conda environment, installing basic dependencies" && \ | ||
/bin/bash -c "source activate cms && \ | ||
conda install -yq --file /tmp/conda_requirements.txt" && \ | ||
conda clean -t -y | ||
|
||
COPY requirements.txt /tmp/requirements.txt | ||
|
||
RUN /bin/bash -c "source activate cms && \ | ||
pip install --no-cache-dir -r /tmp/requirements.txt" | ||
|
||
COPY docker/cdw /usr/local/bin/cdw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
cd /code | ||
export NO_CVMFS=1 | ||
source bin/env.sh | ||
stty rows 256 cols 256 | ||
bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
memory_profiler | ||
#tqdm? | ||
flake8 | ||
pep8 | ||
nose | ||
|
@@ -10,3 +9,4 @@ pyfakefs | |
htcondor | ||
pyaml | ||
rootpy | ||
dill |