Make real binaries for docker aliases of well known commands

This commit is contained in:
Pierre Martin
2017-01-28 04:23:57 +01:00
parent e403d4e508
commit 2db203a865
6 changed files with 10 additions and 3 deletions

2
bin/composer Normal file
View 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
View 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
View 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
View 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 "$@"

2
bin/yarn Normal file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
docker run -ti --rm --user 1000:1000 --name yarn-${PWD##*/} -v `pwd`:/project -v ~/.yarn:/home/node/.cache/yarn -w /project kkarczmarczyk/node-yarn:latest yarn "$@"