- Create a docker file for image:
# Set a common base
FROM alpine as base
# Set required CNB information
ENV CNB_USER_ID=1000
#/bin/bash | |
set -e | |
if [[ -n "$DEBUG" ]] | |
then | |
echo "!!! Debug output enabled" | |
set -x | |
fi | |
set -u |
2017.03.29
These demos are validated against:
# Install gnupg2 and gnupg-agent | |
$ sudo apt-get install gnupg2 gnupg-agent rng-tools | |
# Make sure you have gpg2 2.1.11 (gpg2 --version) | |
# Create entropy for key generation | |
$ sudo rngd -r /dev/urandom | |
Principles of Adult Behavior
#!/bin/bash | |
set -eu | |
if [ -n "${STDOUT:-}" ] ; then | |
exec 1>$STDOUT | |
fi | |
manifest="${1:-$0.jq}" | |
manifest_dir=$( cd "$( dirname "$manifest" )" && pwd ) |
BOSH is a powerful tool to install and manage your deployments. You can find docs on https://bosh.io/docs. Consider using bosh-init
tool to install to a cloud of your choice MicroBOSH instance (MicroBOSH is a single VM BOSH installation, it has everything that you need to deploy and manage).
BOSH command line interface is implemented as a ruby gem and can be run on every platform that supports ruby, you'll need to have ruby 2.1.x or higher to run it. To install it you can run gem install bosh_cli
and gem update bosh_cli
to update to a newer version.
##### Commands to generate SSL certs/artifcts | |
# Download the temp.cnf file using the wget command below | |
# Edit temp.cnf and add your information | |
# Run the uncommented out commands to generate a self-signed cert (cert.pem) and private key (keyfile.pem) | |
wget https://gist.githubusercontent.com/dwallraff/c1ed31291ac7cf19304b/raw/e06feacbb85ac63659e6c1c40c70d5481522b390/temp.cnf | |
# Generate a new keyfile. A 2048 bit key size is TOTALLY fine. Jack it up to 4096 and wait if you must... | |
openssl genrsa -out keyfile.key 2048 |
[ req ] | |
distinguished_name = req_distinguished_name | |
req_extensions = server_req_extensions | |
prompt = no | |
[ req_distinguished_name ] | |
C = <Your country> # Only 2 characters | |
ST = <Your state> # Only 2 characters | |
L = <Your city> | |
O = <Your org> |