Permalink
Browse files

updating post-dockercon

  • Loading branch information...
BretFisher committed Jun 19, 2018
1 parent cb411cc commit a10c87a9b6ce95531b7ad2d5d2e6aa57a38a9dff
Showing with 163 additions and 6 deletions.
  1. +134 −0 .gitignore
  2. +16 −1 README.md
  3. +1 −1 dci-aws/.gitignore
  4. +1 −1 delete-servers.sh
  5. +3 −0 generate-some-votes.sh
  6. +3 −0 hash-config-secret.sh
  7. +2 −0 old-stack-proxy.yml
  8. +1 −1 secret-ghost-db
  9. +1 −1 stack-ee-ghost.yml
  10. +1 −1 stack-ghost.yml
@@ -0,0 +1,134 @@
posta
postb


# Created by https://www.gitignore.io/api/vim,macos,windows

### macOS ###
*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Vim ###
# swap
.sw[a-p]
.*.sw[a-p]
# session
Session.vim
# temporary
.netrwhist
*~
# auto-generated tag files
tags

### Windows ###
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk


# End of https://www.gitignore.io/api/vim,macos,windows

# Created by https://www.gitignore.io/api/vim,macos,windows

### macOS ###
*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Vim ###
# swap
.sw[a-p]
.*.sw[a-p]
# session
Session.vim
# temporary
.netrwhist
*~
# auto-generated tag files
tags

### Windows ###
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk


# End of https://www.gitignore.io/api/vim,macos,windows

@@ -13,6 +13,14 @@ A Docker Swarm cluster needs more then just your app running, it often needs at

This demo is meant for you to `git clone` and run locally to help you learn the tools and methods for building a complete Docker Swarm cluster.

# Major To-Do's left

- [ ] Pull out everything that needs envvars
- [ ] Use Docker Swarm Secrets for privates
- [ ] Fix Docker EE Ansible permissions on ELB's and Security groups for port 8080 (app ELB)
- [ ] Better README step-by-step
- [ ] Walkthough videos

## Getting Started

This repo holds two deployment examples for Docker Swarm
@@ -31,7 +39,14 @@ You can do all this locally on a single node or optionally using Docker Machine
The scripts and compose/stack files use variables to make this demo easier to get started. Set these at your shell before running commands

```
TODO: add envs
# for Digital Ocean docker-machine driver
SSH_FINGERPRINT #fingerprint used to match your SSH key to Digital Ocean's
DO_SIZE #instance size for Digital Ocean to use for docker-machine
DO_TOKEN #Digital Ocean API token for creating/deleting droplets
# for Digital Ocean block storage
REXRAY_DO_TOKEN #Digital Ocean API token so RexRay can create storage volumes, can be same as DO_TOKEN
```

### Step 2: (single node local Swarm)
@@ -5,7 +5,7 @@ docker_subscription.lic
inventory/1.hosts

# ansible resources
group_vars/all
all
.logs

# client bundles
@@ -7,7 +7,7 @@ docker-machine rm -y dvc${server} &
done

# delete all storage in DO (be sure you are ok deleting ALL storage in an account)
doctl compute volume ls --format ID --no-header | while read -r id; do doctl compute volume rm -f "$id"; done
# doctl compute volume ls --format ID --no-header | while read -r id; do doctl compute volume rm -f "$id"; done



@@ -1,5 +1,8 @@
#!/bin/sh

# this short script will post some HTTP data to the Voting app to generate votes
# this makes for a better demo and if you can see the results then you know the solution works

# create POST data files with ab friendly formats
python make-data.py

@@ -1,5 +1,8 @@
#!/bin/sh
set -x

# this is part of a solution to Swarm Stack Configs that change
# TODO: explain how this works in readme

export LOGSTASH_CONF=$(shasum logstash.conf -a 512 | cut -c1-16)

@@ -1,5 +1,7 @@
version: '3.3'

# this is an alternate proxy setup using haproxy

services:

proxy:
@@ -1 +1 @@
OpdP2dy4jzAT
YOURDBPASSWORDhere
@@ -9,7 +9,7 @@ services:
database__client: mysql
database__connection__host: db
database__connection__user: root
database__connection__password: OpdP2dy4jzAT
database__connection__password: YOURDBPASSWORDhere
database__connection__database: ghost
url: http://ghost.dogvscat.biz
deploy:
@@ -12,7 +12,7 @@ services:
database__client: mysql
database__connection__host: db
database__connection__user: root
database__connection__password: OpdP2dy4jzAT
database__connection__password: YOURDBPASSWORDhere
database__connection__database: ghost
url: http://ghost.dogvs.cat
deploy:

0 comments on commit a10c87a

Please sign in to comment.