One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| #!/bin/bash | |
| set -e | |
| if [ -z "$DIGITALOCEAN_ACCESS_TOKEN" ]; then | |
| echo >&2 "ERROR: You must export DIGITALOCEAN_ACCESS_TOKEN" | |
| exit 1 | |
| fi | |
| docker pull swarm > /dev/null |
This uses terraform's template_file resource to generate a yaml properties file for serverspec to use.
spec directory and put spec_helper.rb in ittemplates/properties.tmpl.yml fileserverspec.tfterraform applyTests will be matched based on roles defined for a given node.
| /** | |
| * Required Variables. | |
| */ | |
| variable "name" {} | |
| variable "port" {} | |
| variable "elb_security_group" {} | |
| variable "elb_subnets" {} |
| #!/bin/bash | |
| # | |
| # script to automatically set the permission for the cache and logs folder | |
| # for a new symfony2 project. | |
| # original code taken from the documentation pages: | |
| # http://symfony.com/doc/current/book/installation.html | |
| BASEFOLDER=""; | |
| if [ "$1" != "" ]; then | |
| BASEFOLDER="$1"; |
| <?php | |
| namespace App\Util\Doctrine\Repository; | |
| use App\Util\Doctrine\Entity\AbstractEntity; | |
| use Doctrine\Common\Persistence\ObjectRepository; | |
| use Doctrine\ORM\EntityRepository; | |
| use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | |
| use Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException; |
| #!/bin/bash | |
| # NVM_NODE_UPDATER | |
| # v2.0.0 | |
| # | |
| # Makes keeping NVM-managed, global NodeJS installations up-to-date a breeze. | |
| # First, the global NodeJS installation is updated to 'latest'. | |
| # Second, all global NPM packages are migrated, then also updated to 'latest'. | |
| # Requires the Node Version Manager (https://github.com/creationix/nvm). | |
| # |
| @startuml | |
| ' uncomment the line below if you're using computer with a retina display | |
| ' skinparam dpi 300 | |
| !define Table(name,desc) class name as "desc" << (T,#FFAAAA) >> | |
| ' we use bold for primary key | |
| ' green color for unique | |
| ' and underscore for not_null | |
| !define primary_key(x) <b>x</b> | |
| !define unique(x) <color:green>x</color> | |
| !define not_null(x) <u>x</u> |
Hey.
If you didin't get the instructions on the git repo of DnsDock, let's take a step back.
Follow these steps to install DNSDock on your Ubuntu machine:
It's better to set an address, cause docker can change addresses between versions. We need to edit /lib/systemd/system/docker.service
| #!/bin/bash | |
| set -e | |
| set -u | |
| set -o pipefail | |
| COMMAND=${1:-"help"} | |
| MACHINE_NAME=myapp | |
| DENV=${DENV:-"dev"} |