Adds reference to the virtual machine it's running (#11952)

* Adds reference to the virtual machine it's running

This will help prepare more powerful hooks.

* Clarify name and grammar

* jq is definitely not there

(although it's listed as part of the AMI Linux distro).

* Updated the AWS URL

The URL previously pointed to Spanish docs.

* Update URL to Amazon Linux 2

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
This commit is contained in:
Juan Julián Merelo Guervós 2021-01-12 16:21:13 +01:00 committed by GitHub
parent 72f7f2481c
commit 3aa6f39660
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@ repository at the same directory level as your Dockerfile. Create a file called
`hooks/build`, `hooks/test`, or `hooks/push` and include commands that the
builder process can execute, such as `docker` and `bash` commands (prefixed appropriately with `#!/bin/bash`).
These hooks will be running on an instance of [Amazon Linux 2](https://aws.amazon.com/amazon-linux-2/){:target="_blank" rel="noopener" class="_"}, a distro based on Ubuntu, which includes interpreters such as Perl and Python and utilities such as `git` or `curl`. Please check the link above for the full list.
## Custom build phase hooks
You can run custom commands between phases of the build process by creating