You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@submarine.apache.org by "Liu Xun (Jira)" <ji...@apache.org> on 2020/02/20 01:13:00 UTC

[jira] [Updated] (SUBMARINE-388) [k8s-e2e] Rebuild submarine image every run k8s-test

     [ https://issues.apache.org/jira/browse/SUBMARINE-388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Liu Xun updated SUBMARINE-388:
------------------------------
    Summary: [k8s-e2e] Rebuild submarine image every run k8s-test  (was: [k8s-e2e] Rebuild image every run k8s-test)

> [k8s-e2e] Rebuild submarine image every run k8s-test
> ----------------------------------------------------
>
>                 Key: SUBMARINE-388
>                 URL: https://issues.apache.org/jira/browse/SUBMARINE-388
>             Project: Apache Submarine
>          Issue Type: Sub-task
>          Components: E2E Test
>            Reporter: Liu Xun
>            Assignee: Liu Xun
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> ## k8s test
> k8s test: When the user submits the code to his/her repository or the `apache/submarine` git repository, the travis test task will automatically start.
> test-k8s runs test cases in travis. It will first create a k8s cluster by using the kind tool in travis,
> and then compile and package the submarine project in `submarine-dist` directory to build a docker image.
> Then use this latest code build docker image in k8s Deploy a submarine system. Then run test case in the `test-k8s/..` directory.
> ### Run k8s test in locally
> Executing the following command will perform the following actions:
> ```
> mvn -Phadoop-2.9 clean package install -DskipTests verify -DskipRat -am -pl submarine-test/test-k8s
> ```
> 1. The submarine project will be compiled and packaged to generate `submarine-dist/target/submarine-<version>.tar.gz`
> 2. Call the `submarine-cloud/hack/integration-test.sh` script
>     + Call the `build.sh` script under `submarine/dev-support/docker-images/` to generate the latest `submarine`, `database` and `operator` docker images.
>     + Call `submarine-cloud/hack/kind-cluster-build.sh` to create a k8s cluster
>     + Call `submarine-cloud/hack/deploy-submarine.sh` to deploy the submarine system in the k8s cluster using the latest `submarine`, `database` and `operator` docker images.
>     + Call the test cases in `submarine-test/test-k8s/` for testing.
> ### Run k8s test in travis
> Each time a code is submitted, travis is automatically triggered for testing.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@submarine.apache.org
For additional commands, e-mail: dev-help@submarine.apache.org