Balaji Vajjala's Blog

A DevOps Blog from Trenches

01.07

  • 1.7 Make a change to a simple build script
    • Learning Objectives
    • Build
    • EXERCISE: Make a change to a simple build script and commit to GitHub.
    • EXERCISE: Make a change to a simple build script and commit to GitHub (OPTIONAL).

1.7 Make a change to a simple build script

Learning Objectives

By the end of this lesson you will be able to:

  • Change an existing build script and commit it to GitHub.

Build

Slide1

EXERCISE: Make a change to a simple build script and commit to GitHub.

  1. From the AWSCLI, go to the software directory.
  2. Open the build file as shown below.

    “` $ sudo vim build.xml

    “`

  3. Make a modification to the contents of the file and save it.

  4. Add the file in Git

    “` $ git add .

    “`

  5. Commit the file to Git

    “` $ git commit -m “Modified build script”

    “`

  6. Push it to the Git master.

    “` $ git push

    “`

EXERCISE: Make a change to a simple build script and commit to GitHub (OPTIONAL).

  1. From the AWSCLI, go to sample_app.
  2. Open the build file as shown below.

    “` $ sudo vim sample_data.rake

    “`

  3. Make a modification to the contents of the file and save it.

  4. From the root directory of your EC2 instance change directory to sample_app.
  5. Add the file in Git

    “` $ git add .

    “`

  6. Commit the file to Git

    “` $ git commit -m “Modified build script”

    “`

  7. Push it to the Git master.

    “` $ git push

    “`