add docker build scripts for testing-scheduler
[bottlenecks.git] / testing-scheduler / docker / plugin / Dockerfile
diff --git a/testing-scheduler/docker/plugin/Dockerfile b/testing-scheduler/docker/plugin/Dockerfile
new file mode 100644 (file)
index 0000000..d629793
--- /dev/null
@@ -0,0 +1,24 @@
+##############################################################################\r
+# Copyright (c) 2018 Huawei Technologies Co.,Ltd and others.\r
+#\r
+# All rights reserved. This program and the accompanying materials\r
+# are made available under the terms of the Apache License, Version 2.0\r
+# which accompanies this distribution, and is available at\r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+##############################################################################\r
+\r
+FROM java\r
+MAINTAINER x-lab/Leo\r
+RUN useradd -m noroot -s /bin/bash\r
+USER noroot\r
+WORKDIR /home/noroot\r
+ENV BUILD_DIR build_dir\r
+ENV REPO_DIR ${BUILD_DIR}/conductor\r
+\r
+RUN mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} && \\r
+    git clone http://github.com/Netflix/conductor.git && \\r
+    cd conductor && git checkout v1.10.4\r
+\r
+RUN cd ${REPO_DIR} && ./gradlew build\r
+\r
+CMD tail -f /dev/null
\ No newline at end of file