I've been trying to understand how to setup systems from
the ground up on Ubuntu. I just installed redis
onto
the box and here's how I did it and some things to look
out for.
To install:
docker run --name myjenkins -p 8080:8080 -v $PWD:/app -v /usr/local/bin/docker:/bin/docker -v /var/run/docker.sock:/var/run/docker.sock my-jenkins | |
Mocha reporter | |
/tmp/jenkins-buildenv/${JOB_NAME}/workspace | |
https://github.com/musghost/mocha-test | |
# Build the image to be used for this job. |
<!doctype html> | |
<html > | |
<head> | |
<title>My fist AngularJS app</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script> | |
</head> | |
<body ng-app> | |
<div ng-controller="miPrimerControlador"> | |
<p>{{ modelo.texto }}</p> |
<!doctype html> | |
<html > | |
<head> | |
<title>My fist AngularJS app</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script> | |
</head> | |
<body ng-app> | |
<div ng-controller="miPrimerControlador"> | |
<p>{{ modelo.texto }}</p> |
vagrant@vagrant:~$ df -h | |
Filesystem Size Used Avail Use% Mounted on | |
/dev/mapper/vagrant--vg-root 39G 1.3G 36G 4% / | |
none 4.0K 0 4.0K 0% /sys/fs/cgroup | |
udev 169M 4.0K 169M 1% /dev | |
tmpfs 37M 348K 37M 1% /run | |
none 5.0M 0 5.0M 0% /run/lock | |
none 183M 0 183M 0% /run/shm | |
none 100M 0 100M 0% /run/user | |
/dev/sda1 236M 40M 184M 18% /boot |
server { | |
listen 80; | |
server_name campus.vincoorbis.com; | |
location / { | |
proxy_pass http://localhost:2368; | |
} | |
} |
#!/bin/bash | |
HOSTSFILE="/etc/hosts" | |
BAKFILE="$HOSTSFILE.bak" | |
DOMAINREGEX="^[a-zA-Z0-9]{1}[a-zA-Z0-9\.\-]+$" | |
IPREGEX="^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$" | |
URLREGEX="^https?:\/\/[a-zA-Z0-9]{1}[a-zA-Z0-9\/\.\-]+$" | |
backup() | |
{ |
ERR=0 | |
IP=$(sudo docker inspect -f jenkins_identidock_1) | |
CODE=$(curl -sL -w "%{http_code}" $IP:9090 -o /dev/null) || true if [ $CODE -ne 200 ]; then | |
echo "Site returned " $CODE | |
ERR=1 fi | |
#Pull down the system | |
sudo docker-compose $COMPOSE_ARGS stop | |
sudo docker-compose $COMPOSE_ARGS rm --force -v | |
return $ERR |
https://docs.google.com/presentation/d/1GDYbY5cLZWgduQ5fsHEwGqXGOf8Kk6LIRUxoULO9bo0/edit#slide=id.p |
SWARM_TOKEN=$(docker run swarm create) | |
echo $SWARM_TOKEN | |
docker-machine create -d virtualbox --engine-label datacenter=mex --swarm --swarm-master --swarm-discovery token://$SWARM_TOKEN master | |
docker-machine create -d virtualbox --engine-label datacenter=usa --swarm --swarm-discovery token://$SWARM_TOKEN node1 | |
docker-machine create -d virtualbox --engine-label datacenter=mex --swarm --swarm-discovery token://$SWARM_TOKEN node2 |