Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/bin/bash | |
| # USAGE: | |
| # ./build.sh [option] | |
| # | |
| # DESCRIPTION | |
| # This is a helper script to manage the life cycle of the application | |
| # | |
| # OPTIONS | |
| # --requirements Sets up all the requirements needed for the application lifecycle | |
| # --upload Builds the docker image and push it to ecr |
| { | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "title": "EKS add-on workflow - Issue creation", | |
| "type": "object", | |
| "definitions": { | |
| "basicSemver": { | |
| "type": "string", | |
| "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$" | |
| }, | |
| "serviceAccount": { |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| function delete-s3-bucket { | |
| for arg; do | |
| bucketstatus=$(aws s3api head-bucket --bucket “${s3_bucket}” 2>&1) | |
| if echo “${bucketstatus}” | grep ‘Not Found’; | |
| then | |
| echo “bucket doesn’t exist”; | |
| elif echo “${bucketstatus}” | grep ‘Forbidden’; | |
| then | |
| echo “Bucket exists but not owned” | |
| elif echo “${bucketstatus}” | grep ‘Bad Request’; |
| #!/usr/bin/env bash | |
| # https://sharats.me/posts/shell-script-best-practices/ | |
| set -o errexit | |
| set -o nounset | |
| set -o pipefail | |
| if [[ "${TRACE-0}" == "1" ]]; then | |
| set -o xtrace | |
| fi |
| # https://amp-demo-artifacts.s3.eu-west-1.amazonaws.com/amp.demo-0.1.0-SNAPSHOT.jar | |
| # https://amp-demo-artifacts.s3.eu-west-1.amazonaws.com/amp.training-0.1.0-SNAPSHOT.jar | |
| # https://amp-demo-artifacts.s3.eu-west-1.amazonaws.com/java-web-chat.sql | |
| # https://amp-demo-artifacts.s3.eu-west-1.amazonaws.com/web-chat-1.0.0-SNAPSHOT.war | |
| brooklyn.config: | |
| db.user: db_user | |
| db.password: abcd1234 | |
| db.name: web_chat |
| # Resources | |
| WAR: | |
| http://bit.ly/2dcaKIV | |
| schema generation: | |
| https://bit.ly/brooklyn-visitors-creation-script | |
| java system property: | |
| key: brooklyn.example.db.url | |
| value: DSL format string |
| for bucket in $(aws --profile qa-test s3 ls | awk '{print $3}' | grep test-persistence-); do aws s3 --profile qa-test rb "s3://${bucket}" --force ; done |
| <plugin> | |
| <groupId>org.apache.felix</groupId> | |
| <artifactId>maven-bundle-plugin</artifactId> | |
| <extensions>true</extensions> | |
| <configuration> | |
| <supportedProjectTypes> | |
| <supportedProjectType>bundle</supportedProjectType> | |
| </supportedProjectTypes> | |
| <instructions> |