# README
thrap
Thrap is a tool accelerate the software development process by automating common tasks and simpifying various integration points
Getting Started
Pre-requisites
The following are required for thrap:
- Docker (api version >= 1.37)
Installation
Download the appropriate binary based on your platform from here and copy it into your path:
$ mv thrap /usr/local/bin/
Configuration
The commnand below will perform the initial configuration asking questions as needed.
$ thrap configure
You are now ready to use thrap.
Initialize a new project
Start by initializing a new project:
$ mkdir my-project
$ cd my-project
$ thrap stack init
This will create the initial set of base files and configurations.
Build your project (locally)
Once the project is initialized, you can make code changes as needed. When ready, the project stack can be built using the following command:
$ thrap stack build
This starts all necessary services, builds all containers, exiting after all head containers have completed building.
Deploy your project (locally)
Once built, deploy your project:
$ thrap stack deploy
Check project status
Check the status of your stack:
$ thrap stack status
Development
Install dependencies
$ make deps
Run tests
$ make test
Make binary
$ make thrap
Binary called thrap
(built to be compatible with the system it was run on)
will be available in this folder
Make distribution
$ make dist
Binaries will be available in the dist
folder.
Docker
A fully containerized build can be run as follows:
docker build -t thrap -f < /path/to/dockerfile > .