0.1.8 • Published 6 years ago

drup v0.1.8

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

DRUP

Drup is a command line utility that helps to kick-start development on your projects. It allows you to configure an environment and by leveraging the power of Docker it builds it for you. All configuration get stored in a yaml file that if shared can be reused to build the same environment.

Features

  • creating new project with environment
  • cloning or registering existing project
  • automatically creating environment when configuration detected
  • adding hosts aliases to exposed services
  • keeping track of all projects registered locally

Requirements

GITGIT is required to clone projects with drup.
NodeJSDrup is built upon Node. Version >= 7.5 is required.
DockerDrup uses docker to create virtual systems.
DockerComposeDrup heavily makes use of the docker extended functionality.

Platforms

As drup has been built upon NodeJS it should support all major operating systems. Currently only the following were tested:

  • UBUNTU: mainly targeted, works best
  • WINDOWS 10: supported, but slow (not recommended)

Installation

NOTE: Admin privileges are required because drup provides a a global executable that has to be created upon installation.

sudo npm --global install drup

After you ran the above command 'drup' should be available in your PATH. Run 'drup ?' to get started. You can also get help for operations by appending the question mark (ex: 'drup create ?').

Available support for

SERVICES:
InterpretersPHP, NodeJS
WEB serversApache, Nginx, LightTPD
DatabaseMySQL, MariaDB, PMA
PROJECT TYPES:
TypeProvided services
DrupalDrush

Example usage

You can use the following steps to learn the basic usage of drup. 1. Start by creating a new project. This will download Drupal files and initiate a fresh website.

sudo drup create drupal 
  1. You will be asked to input some simple information, just follow along and read carefully the descriptions for each input.
  2. After you have gone through the last command you will a registered project. You can check this by running the following command:
drup list
  • This will display all registered projects. Each project has it's key in front and after that the project name.
  1. To list all the details of your project and it's environment first note the project ID and then run the following command (replace ):
drup info <project-id>
  • You will need this to take note of the database name and the database container hosts alias so that you can do the installation of Drupal.
  1. After this you can start the project. This can take a long time depending on whether your docker already has the required images downloaded or not. Also this is the phase when drup does additional installs, like composer install.
sudo drup start <project-id>
  1. After the project has started you can visit the domain aliases that got printed. At this step install the Drupal website. You might have to create directories or set permissions.
  2. Now just do a configuration dump.
sudo drup <project-id> drush cex

Details

Services

Services are at the base of the functionality. By combining and configuring these you create your environments. Services can provide additional operations so that you don't have to manually execute commands in containers. These basically create your container configuration.

Projects

Drup provides building and starting mechanism for defined project types. These project handlers define service requirements/ possibilities and default environment configuration. They also add custom services and installation methods to start anew.

Contribution

Drup is open source. Anyone is welcome to contribute, be it that is by testing, creating issues of bugs or suggestions or even better writing code.

Documentation for coders is not yet available, you will have to discover the backend yourself :D.

0.1.8

6 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago