Download the PHP package mlebkowski/crane without Composer
On this page you can find all versions of the php package mlebkowski/crane. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package crane
Crane
Bootstrap your local environment using docker containers & git
Setup
- Create your config according to the schema. You can find detailed descriptions there
- Push your schema to a git repository, for instance:
Initialize a project
-
Install crane on your local machine using composer.
$ composer global require 'mlebkowski/crane:dev-master'The binary will be put in
-
Add project configuration:
$ crane project:init [email protected]:vendor/crane-project - Edit the to set up the /
Build images
This is only required once per target. Docker images will be built from Dockerfiles.
$ crane image:build vendor/project-name --verbose
If something changes or goes wrong, you may want to use the flag.
Start the project
Launch all containers.
$ crane project:start vendor/project-name --verbose
Use if something is wrong or images have changed. The main image is always restarted regardless.
Bootstrap the application
You may want to bootstrap your app in some way (init the database, setup permissions, etc). Crane is application agnostic, so it does not have any build in mechanism. Id does however provide a command. It will SSH into the running container (if port is exposed inside) using the file as a private key.
To run a bootstrapping command on the main container, for example:
$ crane project:command vendor/project-name 'phing -verbose -f /home/main-image-name/build.xml install' --verbose
Permissions
Make sure you have agent forwarding setup for target host. All SSH commands are using the flag.
Editing files
You may want to edit the application source files. To do this push to any branch at . There is a hook there that resets the working copy to the pushed commit.
You might as well use , but there are cache’ing and performance issues. YMMV.
All versions of crane with dependencies
symfony/yaml Version *
igorw/config-service-provider Version ~1.0
symfony/config Version ~2.3
cilex/console-service-provider Version ~1.0
symfony/finder Version ~2.0
justinrainbow/json-schema Version ~1.3