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
{ | |
"variables": { | |
"aws_access_key": "", | |
"aws_secret_key": "" | |
}, | |
"provisioners": [ | |
{ | |
"type": "shell", | |
"execute_command": "echo 'ubuntu' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'", |
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
--- | |
- hosts: all | |
tasks: | |
- name: Install the gpg key for nodejs LTS | |
become: true | |
apt_key: | |
url: "http://deb.nodesource.com/gpgkey/nodesource.gpg.key" | |
state: present |
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
variable "access_key" {} | |
variable "secret_key" {} | |
provider "aws" { | |
access_key = "${var.access_key}" | |
secret_key = "${var.secret_key}" | |
region = "us-east-1" | |
} | |
data "aws_ami" "node_app_ami" { |
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
pipeline { | |
agent { | |
docker { | |
image 'vireshdoshi/jen-build-node-app-aws:latest' | |
} | |
} | |
stages { | |
stage('Checkout and Build') { | |
steps { | |
sh 'git clone https://github.com/VireshDoshi/node-app .' |
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
pipeline { | |
agent { | |
docker { | |
image 'vireshdoshi/jen-build-node-app-aws:latest' | |
} | |
} | |
stages { | |
stage('pre-setup') { | |
steps { | |
sh 'echo "setup actions go here"' |
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
version: '3' | |
services: | |
concourse-db: | |
image: postgres:9.6 | |
environment: | |
POSTGRES_DB: concourse | |
POSTGRES_USER: concourse | |
POSTGRES_PASSWORD: changeme | |
PGDATA: /database |
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
(bdd_env1) [vdo023@localhost concourse]$ docker-compose up -d | |
Creating network "concourse_default" with the default driver | |
Pulling concourse-db (postgres:9.6)... | |
9.6: Pulling from library/postgres | |
4176fe04cefe: Pull complete | |
b3acc6da98ed: Pull complete | |
ef28401016a4: Pull complete | |
f53d3f24be68: Pull complete | |
faa03ed01c16: Pull complete | |
2bd2f4dc2cd2: Pull complete |
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
$ wget https://github.com/concourse/concourse/releases/download/v3.9.1/fly_linux_amd64 | |
$ sudo install ./fly_linux_amd64 /usr/local/bin/fly | |
$ fly --version |
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
jobs: | |
- name: hello-world | |
plan: | |
- task: say-hello | |
config: | |
platform: linux | |
image_resource: | |
type: docker-image | |
source: {repository: ubuntu} | |
run: |
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
$ fly -t lite login -c http://localhost:8082 | |
$ fly -t lite set-pipeline -p hello -c hello.yml | |
$ fly -t lite unpause-pipeline -p hello | |
$ fly -t lite pipelines | |
$ fly -t lite tj -j hello/hello-world |