You are viewing a plain text version of this content. The canonical link for it is here.
Posted to submarine-dev@hadoop.apache.org by zt...@apache.org on 2019/09/25 02:45:29 UTC

[hadoop-submarine] branch master updated: SUBMARINE-196. Add a script for building the CICD image.

This is an automated email from the ASF dual-hosted git repository.

ztang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hadoop-submarine.git


The following commit(s) were added to refs/heads/master by this push:
     new 193321a  SUBMARINE-196. Add a script for building the CICD image.
193321a is described below

commit 193321ad823a4eaf503a3fec8f67bf5e13499693
Author: Zhankun Tang <zt...@apache.org>
AuthorDate: Wed Sep 25 10:41:03 2019 +0800

    SUBMARINE-196. Add a script for building the CICD image.
    
    ### What is this PR for?
    Add a script for building the CICD image.
    
    ### What type of PR is it?
    Improvement
    
    ### What is the Jira issue?
    https://issues.apache.org/jira/browse/SUBMARINE-196
    
    ### How should this be tested?
    committer use this script to try to merge a PR
    
    ### Questions:
    * Does the licenses files need update? No
    * Is there breaking changes for older versions? No
    * Does this needs documentation? Yes
    
    Author: Zhankun Tang <zt...@apache.org>
    
    Closes #9 from tangzhankun/SUBMARINE-196 and squashes the following commits:
    
    1d8b8d0 [Zhankun Tang] SUBMARINE-196. Add a script for building the CICD image.
---
 dev-support/cicd/README.md                     | 4 ++++
 dev-support/cicd/build_and_start_cicd_image.sh | 5 +++++
 2 files changed, 9 insertions(+)

diff --git a/dev-support/cicd/README.md b/dev-support/cicd/README.md
index b144007..bb5a188 100644
--- a/dev-support/cicd/README.md
+++ b/dev-support/cicd/README.md
@@ -20,6 +20,10 @@ cd <path-to-submarine-home>/dev-support/cicd
 docker build -t submarine-cicd .
 docker run -it --rm submarine-cicd
 ```
+Or
+```
+./build_and_start_cicd_image.sh
+```
 
 And you'll see output like below and then you can decide what to accomplish.
 ```
diff --git a/dev-support/cicd/build_and_start_cicd_image.sh b/dev-support/cicd/build_and_start_cicd_image.sh
new file mode 100755
index 0000000..91cdd34
--- /dev/null
+++ b/dev-support/cicd/build_and_start_cicd_image.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+printf "Building Submarine CI/CD Image.\n"
+docker build -t submarine-cicd .
+printf "Start Submarine CI/CD.\n"
+docker run -it --rm submarine-cicd