Skip to content

Instantly share code, notes, and snippets.

View punalpatel's full-sized avatar

Punal Patel punalpatel

View GitHub Profile
@punalpatel
punalpatel / auto-deploy.md
Created March 7, 2017 02:38 — forked from domenic/0-github-actions.md
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with Travis

This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.

Create a compile script

You want a script that does a local compile to e.g. an out/ directory. Let's call this compile.sh for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.

The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.

echo "# docker" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/.../....git
git push -u origin master
@punalpatel
punalpatel / gist:4e523c278565b6c13ae184ffa35a6e11
Created February 20, 2017 20:13
Launching docker container
docker search redis
docker search --filter=stars=3 redis
docker run -d redis
docker images
docker ps
docker inspect redis
docker ps
docker logs redis
docker logs 01678b5e92e5
@punalpatel
punalpatel / gist:7b730128e371612f82bf3d79d4200818
Created February 20, 2017 01:12
docker installation on ubuntu 16.04
sudo apt-get update
sudo apt-get install -y --no-install-recommends apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://apt.dockerproject.org/gpg | sudo apt-key add -
apt-key fingerprint 58118E89F3A912897C070ADBF76221572C52609D
sudo add-apt-repository "deb https://apt.dockerproject.org/repo/ \
ubuntu-$(lsb_release -cs) \
main"
sudo apt-get update
sudo apt-get -y install docker-engine