This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| FROM ruby:2.2.0 | |
| RUN bundle config --global frozen 1 | |
| RUN mkdir -p /usr/src/app | |
| WORKDIR /usr/src/app | |
| ADD Gemfile /usr/src/app/ | |
| ADD Gemfile.lock /usr/src/app/ | |
| RUN bundle install --without test development --system |
| FIX FOR: Couldn't connect to Docker daemon at http+unix://var/run/docker.sock - is it running? | |
| Change the DOCKER_OPTS in /etc/default/docker to: | |
| DOCKER_OPTS="-H tcp://127.0.0.1:4243 -H unix:///var/run/docker.sock" | |
| Ruslan Khamidullin [1:57 PM] netstat -ant |grep 4243 | |
| tcp 0 0 127.0.0.1:4243 0.0.0.0:* LISTEN | |
| Ruslan Khamidullin [1:57 PM] export DOCKER_HOST=tcp://localhost:4243 |
| [alias] | |
| ls = ! git for-each-ref --sort='-committerdate' --format='%(refname:short)' refs/heads | xargs -n1 -I{} git log -n1 --pretty=format:'%Cblue%cr%Creset%x09{}' {} |
| This is an ivory tower, but we're going to aim high. Patches Accepted. | |
| No dissent goes undiscussed. Everyone has equal say. | |
| You won't always get your way. | |
| All debates must end with a constructive conclusion and a direction forward, and the sooner the better. | |
| Encourage Sharing: Everyone has legimitate ideas worthy of validation | |
| We only succeed or fail as a team | |
| Always present a possible solution after presenting a problem | |
| We will communicate with our teammates if any issues arise | |
| Educating your peers is never a waste of time. |
| #!/bin/bash | |
| APP_NAME="your-app-name-goes-here" | |
| APP_PATH=/home/deploy/${APP_NAME} | |
| # Production environment | |
| export RAILS_ENV="production" | |
| # This loads RVM into a shell session. Uncomment if you're using RVM system wide. | |
| # [[ -s "/usr/local/lib/rvm" ]] && . "/usr/local/lib/rvm" |
| Windows 7 OS | |
| Microsoft Security Essentials | |
| Virtual CloneDrive (to mount ISOs) | |
| http://static.slysoft.com/SetupVirtualCloneDrive.exe | |
| Notepad++ | |
| Visual Studio 2008 w/ SP1 | |
| Visual Studio 2010 Ultimate | |
| ReSharper | |
| Console2 | |
| msysgit |