git clone https://github.com/lowsky/docker-demo.git
cd docker-demo
docker build -t web .
docker run -d --name web -p 80:80 web
curl http://docker
#!/bin/bash -x | |
REPO="${1}" | |
SHA1="${2}" | |
repofragment=$(cd "$REPO"; git remote -v | grep origin | grep push | sed -e 's/.*github\.com.\(.*\)\.git.*/\1/') | |
url="https://github.com/${repofragment}/commit/${SHA1}" | |
open "$url" |
#!/bin/bash -e | |
#### | |
# based on https://gist.github.com/jdoconnor/32ef0314cecb80157c4e which itself was | |
# based on https://gist.github.com/jeffery/1115504 | |
# Helper script to update the Last modified timestamp of files in a Git SCM | |
# Projects working Copy | |
# | |
# When you clone a Git repository, it sets the timestamp of all the files to the | |
# time when you cloned the repository. | |
# |
#!/bin/bash -e | |
# This displays the log of the docker daemon in the boot2docker VM. | |
boot2docker ssh tail -f /var/log/docker.log |
#!/usr/bin/env node_modules/.bin/babel-node | |
// when converting to a shell script, uncomment the line above | |
// This creates a new schema.json file which is needed, for using with a | |
// relay client | |
// use it together within | |
// | |
// https://github.com/clayallsopp/graphqlhub |
git clone https://github.com/lowsky/docker-demo.git
cd docker-demo
docker build -t web .
docker run -d --name web -p 80:80 web
curl http://docker
It extracts the "dependencies" from package.json
to pipe it into qnm
:
It is done via jq ".dependencies"
piped into jq "keys"
to retrieves the dependency
names.
Finally, the xargs utility is used to execute the qnm
tool command for each dependency.
(The sed utility is used to remove any commas, and the array- brackets)