github.com/fern4lvarez/piladb@v0.2.0-alpha.20180407/dev/README.md (about)

     1  ## piladb Dockerfile
     2  
     3  This repository contains a **Dockerfile** of [piladb](https://github.com/fern4lvarez/piladb)
     4  for [Docker](https://www.docker.com/)'s [automated build](https://registry.hub.docker.com/u/fern4lvarez/piladb/)
     5  published to the public [Docker Hub Registry](https://registry.hub.docker.com/).
     6  This means that the public image will always be synced with the latest source
     7  code version.
     8  
     9  This image has two purposes. One is to containerize the execution for piladb,
    10  and the other to provide a portable development environment. Every container
    11  running the `piladb` image is provided with tools like `git` or `vim.`
    12  
    13  Also, there is a  **Makefile** that groups the most common tasks
    14  for an easier usage of the `piladb` image.
    15  
    16  
    17  ### Base Docker Image
    18  
    19  * [golang](https://hub.docker.com/_/golang/)
    20  
    21  
    22  ### Installation
    23  
    24  1. Install [Docker](https://www.docker.com/).
    25  
    26  2. Download an [automated build](https://registry.hub.docker.com/u/fern4lvarez/piladb/)
    27     from the public [Docker Hub Registry](https://registry.hub.docker.com/): `docker pull fern4lvarez/piladb`
    28  
    29     Alternatively, you can build an image from Dockerfile: `docker build -t="fern4lvarez/piladb" .`.
    30  
    31  
    32  ### Usage
    33  
    34  #### Build image
    35  
    36  ```
    37  make build
    38  ```
    39  
    40  #### Push image to Docker Hub Registry
    41  
    42  ```
    43  make push
    44  ```
    45  
    46  #### Pull latest image from Docker Hub Registry
    47  
    48  ```
    49  make pull
    50  ```
    51  
    52  #### Run `pilad` server
    53  
    54  ```
    55  make run
    56  ```
    57  
    58  #### Start bash session into `piladb` container
    59  
    60  ```
    61  make bash
    62  ```