Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions box.json.dist
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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
}
}
39 changes: 35 additions & 4 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand All @@ -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
```

Expand All @@ -36,3 +36,34 @@ docker run --rm -ti -v /var/run/docker.sock:/var/run/docker.sock \
-v $PWD:/app \
kiboko/kloud <command>
```

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
```