Kubernetes:A Complete DevOps Cookbook
上QQ阅读APP看书,第一时间看更新

Importing an application

Let's perform the following steps to import an existing application into the Jenkins X environment:

  1. Clone or use an existing application. As an example, we will create a clone of the hello-world example:
$ mkdir import && cd import
$ git clone https://github.com/k8sdevopscookbook/hello-world.git
  1. Remove the Git files from the cloned directory. This will remove the Git history from the directory:
$ cd hello-world & sudo rm -r .git/
  1. Run the following command in the folder to import the source code into Jenkins X:
$ jx import