Run commands without installing them
Simple way to run any executedble without installing it on your host machine.
Supported operating systems
- All unixes with kernel over 3.10
- Docker for mac
- Docker for mac edge
For OSX limitations and workaround go to OSX Doc
Clone this repository.
git clone email@example.com:galileo/docker-binaries
bin directory to your executables.
You need to modify your
PATH variable. So open
.bash_profile or any other file where you are storing your variables and add this entry
NOTE: For osx users there is a problem with
php. As OSX comes with preinstalled version of
phpwill not work. There is
run-phpalias command. More info here
NOTE 2: There are some limitations with the
Docker for macfor networking features.
NOTE 3: Please look into our Docker for mac branch for more information.
You need to unistall your existing installations of commands that we provide you with this repo. Or you need to change the names for those command if you want to use both.
You can now run each of our commands.
npm -v && node -v && yarn -v && php -v && composer -v
We relay this functionality on top of oficial docker images so we can switch versions for each our command as we would like to use the docker tags.
To keep all usages as small as possible we are using as and distribution the smallests distributions, it can be
alpine or in some cases
For each supported command there is equivalent of DockerBinary environment variable. If you don't change the variable we are using always the
latest available version.
Using environemnt variables
node.js version for different relase:
DB_NODE_VERSION=7 node -v > v7.10.0 DB_NODE_VERSION=8 node -v > v8.1.2
Run very speficic
DB_NODE_VERSION=8.0.0 node -v > v8.0.0
Enabling the TTY mode
In some cases you need to interact with command. Like for example giving answers on
yarn init command.
error An unexpected error occurred: "Can't answer a question unless a user TTY".
You can enable the TTY option with the environment settings:
TTY=enable yarn init
Article about how you can setup your own repository and how to install this one.