diff --git a/box.json.dist b/box.json.dist index bf3f48e..fc54e0e 100644 --- a/box.json.dist +++ b/box.json.dist @@ -1,8 +1,12 @@ { "chmod": "0755", "main": "bin/kloud", - "output": "build/kloud.phar", - "directories": ["src"], + "output": "kloud.phar", + "directories": [ + "src", + "compose", + "environments" + ], "finder": [ { "name": "*.php", @@ -12,9 +16,14 @@ "name": "*.php", "exclude": ["test", "tests"], "in": "vendor" + }, + { + "followLinks": true, + "ignoreDotFiles": false, + "in": "environments" } ], "algorithm": "OPENSSL", "key": "kloud-private-nopassphrase.pem", "stub": true -} \ No newline at end of file +} diff --git a/docs/installation.md b/docs/installation.md index 31513e3..777e2d1 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -7,8 +7,8 @@ Installing system-wide the `kloud` command While installing system-wide, you will need administrator privilleges to install the command inside `/usr/local/bin/` directory. ``` -sudo curl -L -o /usr/local/bin/kloud https://github.com/kiboko-labs/docker-images/releases/latest/download/kloud.phar -sudo curl -L -o /usr/local/bin/kloud.pubkey https://github.com/kiboko-labs/docker-images/releases/latest/download/kloud.phar.pubkey +sudo curl -L -o /usr/local/bin/kloud https://github.com/kiboko-labs/kloud/releases/download/1.2.4/kloud.phar +sudo curl -L -o /usr/local/bin/kloud.pubkey https://github.com/kiboko-labs/kloud/releases/download/1.2.4/download/kloud.phar.pubkey sudo chmod +x /usr/local/bin/kloud ``` @@ -18,8 +18,8 @@ Installing the Phar package in your project While installing in your project, no administrator privilege is required, the phar package will be available in the `bin/` directory. ``` -curl -L -o bin/kloud.phar https://github.com/kiboko-labs/docker-images/releases/latest/download/kloud.phar -curl -L -o bin/kloud.phar.pubkey https://github.com/kiboko-labs/docker-images/releases/latest/download/kloud.phar.pubkey +curl -L -o bin/kloud.phar https://github.com/kiboko-labs/kloud/releases/download/1.2.4/kloud.phar +curl -L -o bin/kloud.phar.pubkey https://github.com/kiboko-labs/kloud/releases/download/1.2.4/download/kloud.phar.pubkey chmod +x bin/kloud.phar ``` @@ -36,3 +36,34 @@ docker run --rm -ti -v /var/run/docker.sock:/var/run/docker.sock \ -v $PWD:/app \ kiboko/kloud ``` + +Building the docker image +--- + +If you want to build the Kloud Docker image, clone this repository and run: + +``` +curl -L -o build/kloud.phar https://github.com/kiboko-labs/kloud/releases/download/1.2.4/kloud.phar +curl -L -o build/kloud.phar.pubkey https://github.com/kiboko-labs/kloud/releases/download/1.2.4/download/kloud.phar.pubkey +chmod +x bin/kloud.phar +docker build . --tag kiboko/kloud +``` + +Building the phar +--- + +If you want to create the phar: + +Install box: + +``` +curl -LSs https://box-project.github.io/box2/installer.php | php +``` + +``` +mv box.json.dist +composer install +openssl genrsa -out kloud-private-nopassphrase.pem +./box.phar build -v +``` +