Make real binaries for docker aliases of well known commands
This commit is contained in:
2
bin/composer
Normal file
2
bin/composer
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
docker run -ti --rm --name composer-${PWD##*/} -v $(pwd):/app -v ~/.composer:/root/composer composer/composer "$@"
|
||||
2
bin/node
Normal file
2
bin/node
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
docker run -ti --rm --name node-${PWD##*/} -v `pwd`:/project -v ~/.npm:/root/.npm -w /project node:7.4-alpine node "$@"
|
||||
2
bin/npm
Normal file
2
bin/npm
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
docker run -ti --rm --name npm-${PWD##*/} -e NPM_CONFIG_PROGRESS=false -v `pwd`:/project -v ~/.npm:/root/.npm -w /project node:7.4-alpine npm "$@"
|
||||
2
bin/php
Normal file
2
bin/php
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
docker run -ti --rm --user 1000:1000 --name php-${PWD##*/} -v `pwd`:/project -w /project php:latest php "$@"
|
||||
Reference in New Issue
Block a user