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
| #!/bin/bash | |
| ################ | |
| # Introduction # | |
| # This script is a demo of DCOS for the Container Solutions hosted Software Circus meetup. | |
| # Don't run this as a script, it expects the DCOS CLI installed. Rather you should work | |
| # through the examples one by one. | |
| # Prerequisites: | |
| # - A working DCOS cluster on AWS. See https://mesosphere.com/amazon/setup/ | |
| # Please make sure you enter your master AWS IP below. |
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
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: kibana4 | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Start daemon at boot time | |
| # Description: Enable service provided by daemon. | |
| ### END INIT INFO |
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
| #!/bin/bash | |
| # First create a new EC2 ubuntu instance on the free tier. | |
| # Ensure that port 22 (SSH) and 80 (HTTP) are open to the public. | |
| # SSH into machine. Run these commands. | |
| echo “Verify that docker is installed, if not install ” | |
| command -v docker >/dev/null 2>&1 || { echo >&2 "docker isn’t installed. Installing"; wget -qO- https://get.docker.com/ | sh; } | |
| wget downloads.drone.io/master/drone.deb |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # All Vagrant configuration is done below. The "2" in Vagrant.configure | |
| # configures the configuration version (we support older styles for | |
| # backwards compatibility). Please don't change it unless you know what | |
| # you're doing. | |
| Vagrant.configure(2) do |config| | |
| # The most common configuration options are documented and commented below. | |
| # For a complete reference, please see the online documentation at |
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
| #!/bin/bash | |
| assertOK() { | |
| response=$(curl -o /dev/null --silent --write-out '%{http_code}\n' -$1 $2 --data "$3") | |
| if [[ $response == "200" ]] || [[ $response == "201" ]]; | |
| then echo "[OK-ACCEPTED] $1 $2 $3"; | |
| else | |
| echo "TEST FAILED, should be ok: $1 $2 $3" | |
| echo "Reason: " | |
| echo $(curl --silent -$1 $2 --data "$3") |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure(2) do |config| | |
| config.vm.box = "idar/sles11sp3" | |
| # config.vm.network "private_network", ip: "192.168.33.10" | |
| config.vm.provider "virtualbox" do |vb| | |
| vb.memory = "2048" | |
| end |
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
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: elasticsearch | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Start daemon at boot time | |
| # Description: Enable service provided by daemon. | |
| ### END INIT INFO |
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
| #!/usr/bin/env ruby | |
| # Use htpasswd.py to add users to htpasswd file: | |
| # touch ./htpasswd | |
| # ./htpasswd.py -b ./htpasswd admin password | |
| # ./htpasswd.py -b ./htpasswd alice password | |
| # Add usernames to group files | |
| # touch ./admins.auth | |
| # touch ./users.auth | |
| # echo "admin:..." >> admins.auth |
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
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| upstream elasticsearch { | |
| server 127.0.0.1:9200; | |
| } | |
| upstream kibana { |