This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo yum install -y yum-utils |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ terraform --version | |
Terraform v1.0.0 | |
on linux_amd64 | |
Your version of Terraform is out of date! The latest version | |
is 1.2.6. You can update by downloading from https://www.terraform.io/downloads.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_virtual_machine" "main" { | |
name = "${var.prefix}-vm" | |
location = azurerm_resource_group.example.location | |
resource_group_name = azurerm_resource_group.example.name | |
network_interface_ids = [azurerm_network_interface.main.id] | |
vm_size = "Standard_DS1_v2" | |
# Uncomment this line to delete the OS disk automatically when deleting the VM | |
# delete_os_disk_on_termination = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# syntax=docker/dockerfile:1 | |
FROM node:12-alpine | |
RUN apk add --no-cache python2 g++ make | |
WORKDIR /app | |
COPY . . | |
RUN yarn install --production | |
CMD ["node", "src/index.js"] | |
EXPOSE 3000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: learn-github-actions | |
on: [push] | |
jobs: | |
check-bats-version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '14' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wordpress/ | |
Chart.yaml # A YAML file containing information about the chart | |
LICENSE # OPTIONAL: A plain text file containing the license for the chart | |
README.md # OPTIONAL: A human-readable README file | |
values.yaml # The default configuration values for this chart | |
values.schema.json # OPTIONAL: A JSON Schema for imposing a structure on the values.yaml file | |
charts/ # A directory containing any charts upon which this chart depends. | |
crds/ # Custom Resource Definitions | |
templates/ # A directory of templates that, when combined with values, | |
# will generate valid Kubernetes manifest files. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tree webserver/ | |
webserver/ | |
├── charts | |
├── Chart.yaml | |
├── templates | |
│ ├── deployment.yaml | |
│ ├── _helpers.tpl | |
│ ├── hpa.yaml | |
│ ├── ingress.yaml | |
│ ├── NOTES.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# helm create webserver | |
Creating webserver |