Commit b018a8a6 authored by Dan Plumbley's avatar Dan Plumbley Committed by Ian Ernst
Browse files

Resolve "Some Improvements to Advanced CI/CD Labs as Noted During a Recent Training Session"

parent 5e86fde3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ To start, let's create a new project in the lab environment:

1. Click the arrow next to **Runners** to expand the Runners section.

1. Select **New project runner**.
1. Select **Create project runner**.

1. Select **Run untagged jobs**, leave all other settings as default, and select **Create runner**.

@@ -162,6 +162,8 @@ When this runner is created, it will have a `config.toml` file that defines the
          network_mtu = 0
      ```

1. Make a note of this output, as you will need it in the next task.

## Task E. Editing your runner configuration

For our configuration, we want to be able to run our job with Docker in Docker. To do this, we need to change two default configurations:
+2 −1
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ For this task, we will be creating a web application to run in our review enviro
          - ssh root@$ip 'cd /www/ && npm i express'
          - ssh root@$ip 'cd /www/ && npm i -g pm2'
          - scp index.js root@$ip:/www
          - ssh root@$ip 'pm2 start /www/index.js'
          - ssh root@$ip 'pm2 start -f /www/index.js'
      ```

1. Here is what your final job script should look like:
@@ -223,6 +223,7 @@ For this task, we will be creating a web application to run in our review enviro
        script:
          - ssh-keyscan -t rsa,ed25519 $ip >> ~/.ssh/known_hosts
          - ssh root@$ip 'mkdir -p /www'
          - ssh root@$ip 'sudo apt-get update'
          - ssh root@$ip 'sudo apt-get install nodejs npm -y'
          - ssh root@$ip 'cd /www/ && npm init -y'
          - ssh root@$ip 'cd /www/ && npm i express'