Sha256: 0354dc28890713ad11964341fb735da36d9b5ce240495e71fddfe8eb9c92603f

Contents?: true

Size: 1.2 KB

Versions: 22

Compression:

Stored size: 1.2 KB

Contents

#!/bin/bash

gem install bundler # upgrade bundler

set -exu

git config --global user.email "tonguerooo@gmail.com"
git config --global user.name "tung"

# https://unix.stackexchange.com/questions/1496/why-doesnt-my-bash-script-recognize-aliases
shopt -s expand_aliases
alias lono="$(pwd)/exe/lono"

bundle install --without development test

rm -rf infra

lono new infra
cd infra

# Rewrite the Gemfile to use the local lono gem for testing
cat << EOF > Gemfile
source "https://rubygems.org"
gem "lono", path: "$CODEBUILD_SRC_DIR", submodules: true
EOF
cat Gemfile

bundle # install lono gem in the infra project

# Create a demo blueprint
lono blueprint new demo
# Very simply template with just a security group
cp ../.cody/demo.rb app/blueprints/demo/app/templates/demo.rb

STACK_NAME="demo-$(date +%Y%m%d%H%M%S)"

# Configure lono registration
mkdir -p .lono
cat << EOF > .lono/registration.yml
---
name: <%= ssm("/lono/registration/name") %>
company: <%= ssm("/lono/registration/company") %>
email: <%= ssm("/lono/registration/email") %>
registration_key: <%= ssm("/lono/registration/registration_key") %>
EOF

lono cfn deploy $STACK_NAME --blueprint demo
lono cfn status $STACK_NAME
lono cfn delete $STACK_NAME --sure

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
lono-7.5.2 .cody/acceptance.sh
lono-7.5.1 .cody/acceptance.sh
lono-7.5.0 .cody/acceptance.sh
lono-7.4.11 .cody/acceptance.sh
lono-7.4.10 .cody/acceptance.sh
lono-7.4.9 .cody/acceptance.sh
lono-7.4.8 .cody/acceptance.sh
lono-7.4.7 .cody/acceptance.sh
lono-7.4.6 .cody/acceptance.sh
lono-7.4.5 .cody/acceptance.sh
lono-7.4.4 .cody/acceptance.sh
lono-7.4.3 .cody/acceptance.sh
lono-7.4.2 .cody/acceptance.sh
lono-7.4.1 .cody/acceptance.sh
lono-7.4.0 .cody/acceptance.sh
lono-7.3.2 .cody/acceptance.sh
lono-7.3.1 .cody/acceptance.sh
lono-7.3.0 .cody/acceptance.sh
lono-7.2.3 .cody/acceptance.sh
lono-7.2.2 .cody/acceptance.sh