October 2018
Intermediate to advanced
248 pages
4h 46m
English
Now that we have explored the blue deployment technique, let's learn something about the green deployment via an example.
Let's go to our Marathon console, and then type the following command to get the total number of files present:
ls -rlt
Let's open the nginx.json file using the following commands:
$ sudo cp nginx.json apache.json$ ls -rlt
Now, let's open the apache.json file using the following command line:
vi apache.json
In this file, we need to change the image to httpd to create apache.json with HTTP, and save it with :wq!. Then we execute the cat Apache.json command to read the file.
Next we will go ahead and deploy the JSON file to see the results. As you can see in the following screenshot, once ...
Read now
Unlock full access