Build docker image
Package to a single plugin file to follow airflow plugin structure
Change-Id: I53765c6d399f8d8e9eeed28901132953c1cf7df6
diff --git a/docker-compose-LocalExecutor.yml b/docker-compose-LocalExecutor.yml
new file mode 100644
index 0000000..13d480b
--- /dev/null
+++ b/docker-compose-LocalExecutor.yml
@@ -0,0 +1,44 @@
+# Copyright Matthieu "Puckel_" Roisil (https://github.com/puckel)
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# this file is copied from following link
+# https://github.com/puckel/docker-airflow/blob/master/docker-compose-LocalExecutor.yml
+
+version: '2.1'
+services:
+ postgres:
+ image: postgres:9.6
+ environment:
+ - POSTGRES_USER=airflow
+ - POSTGRES_PASSWORD=airflow
+ - POSTGRES_DB=airflow
+
+ webserver:
+ image: opencord/cord-workflow-airflow
+ restart: always
+ depends_on:
+ - postgres
+ environment:
+ - LOAD_EX=n
+ - EXECUTOR=Local
+ volumes:
+ - ./dags:/usr/local/airflow/dags
+ ports:
+ - "8080:8080"
+ command: webserver
+ healthcheck:
+ test: ["CMD-SHELL", "[ -f /usr/local/airflow/airflow-webserver.pid ]"]
+ interval: 30s
+ timeout: 30s
+ retries: 3