See the snippets "guide.md" and "redis.md" below.
If you're wanting to run Docker Swarm on your Raspberry Pi checkout these instructions:
| pipeline { | |
| agent { node { label 'swarm-ci' } } | |
| environment { | |
| TEST_PREFIX = "test-IMAGE" | |
| TEST_IMAGE = "${env.TEST_PREFIX}:${env.BUILD_NUMBER}" | |
| TEST_CONTAINER = "${env.TEST_PREFIX}-${env.BUILD_NUMBER}" | |
| REGISTRY_ADDRESS = "my.registry.address.com" | |
| SLACK_CHANNEL = "#deployment-notifications" | 
See the snippets "guide.md" and "redis.md" below.
If you're wanting to run Docker Swarm on your Raspberry Pi checkout these instructions:
| #!/bin/bash | |
| # | |
| # This script will mount /Users in the boot2docker VM using NFS (instead of the | |
| # default vboxsf). It's probably not a good idea to run it while there are | |
| # Docker containers running in boot2docker. | |
| # | |
| # Usage: sudo ./boot2docker-use-nfs.sh | |
| # | 
| #!/bin/zsh | |
| # set cron to run this every couple of minutes and it will shutdown boot2docker | |
| # when its been running with no processes for maxminutes | |
| maxminutes=10 | |
| local bdout | |
| local dpqout | |
| bdout=$(boot2docker status) 2>/dev/null | |
| if [[ $bdout = "running" ]]; then | |
| echo "boot2docker running" | 
| var gulp = require('gulp'), | |
| gulpif = require('gulp-if'), | |
| less = require('gulp-less'), | |
| autoprefixer = require('gulp-autoprefixer'), | |
| minifycss = require('gulp-minify-css'), | |
| rename = require('gulp-rename'), | |
| clean = require('gulp-clean'), | |
| runSequence = require('run-sequence'), | |
| concat = require('gulp-concat'), | |
| uglify = require('gulp-uglify'), |