Illyoung Choi | d1e4f5d | 2019-07-22 16:49:20 -0700 | [diff] [blame^] | 1 | # opencord/cord-workflow-airflow |
| 2 | # To build use: docker build -t opencord/cord-workflow-airflow . |
| 3 | # To run use: docker run -p 8080:8080 -d opencord/cord-workflow-airflow |
| 4 | FROM puckel/docker-airflow:1.10.2 |
| 5 | |
| 6 | USER root |
| 7 | |
| 8 | # install dependencies of our plugin |
| 9 | RUN set -ex \ |
| 10 | && pip install multistructlog~=2.1.0 \ |
| 11 | && pip install cord-workflow-controller-client~=0.2.0 \ |
| 12 | && pip install pyfiglet~=0.7 \ |
| 13 | && pip install xossynchronizer~=3.2.6 \ |
| 14 | && pip install xosapi~=3.2.6 \ |
| 15 | && apt-get purge --auto-remove -yqq $buildDeps \ |
| 16 | && apt-get autoremove -yqq --purge \ |
| 17 | && apt-get clean \ |
| 18 | && rm -rf \ |
| 19 | /var/lib/apt/lists/* \ |
| 20 | /tmp/* \ |
| 21 | /var/tmp/* \ |
| 22 | /usr/share/man \ |
| 23 | /usr/share/doc \ |
| 24 | /usr/share/doc-base |
| 25 | |
| 26 | # drop plugin to plugin dir of airflow |
| 27 | COPY src/cord_workflow_airflow_extensions/cord_workflow_plugin.py /usr/local/airflow/plugins/ |
| 28 | |
| 29 | USER airflow |
| 30 | |
| 31 | # Label image |
| 32 | ARG org_label_schema_schema_version=1.0 |
| 33 | ARG org_label_schema_name=cord-workflow-airflow |
| 34 | ARG org_label_schema_version=unknown |
| 35 | ARG org_label_schema_vcs_url=unknown |
| 36 | ARG org_label_schema_vcs_ref=unknown |
| 37 | ARG org_label_schema_build_date=unknown |
| 38 | ARG org_opencord_vcs_commit_date=unknown |
| 39 | |
| 40 | LABEL org.label-schema.schema-version=$org_label_schema_schema_version \ |
| 41 | org.label-schema.name=$org_label_schema_name \ |
| 42 | org.label-schema.version=$org_label_schema_version \ |
| 43 | org.label-schema.vcs-url=$org_label_schema_vcs_url \ |
| 44 | org.label-schema.vcs-ref=$org_label_schema_vcs_ref \ |
| 45 | org.label-schema.build-date=$org_label_schema_build_date \ |
| 46 | org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date |
| 47 | |