Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Remove Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
francoilol committed Jun 8, 2018
1 parent 77e3dac commit 77ab774
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 396 deletions.
40 changes: 0 additions & 40 deletions Jenkinsfile

This file was deleted.

94 changes: 9 additions & 85 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Lisk Docker

**The official Lisk docker image.** This document details how to build your own version of the image. If all you want to do is install the official Lisk docker image, please go to our public repository on Docker hub: https://hub.docker.com/u/lisk/
The official Lisk docker images can be found in our public repository on Docker Hub: https://hub.docker.com/u/lisk/

[![Build Status](https://jenkins.lisk.io/buildStatus/icon?job=lisk-docker/development)](https://jenkins.lisk.io/job/lisk-docker/job/development)
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)

***
Expand All @@ -19,59 +18,24 @@ Please refer to the official documentation for

Install `make` on your system.

## Build Instructions
## Usage

### Build the images
There are examples `docker-compose.yml` files for `mainnet`, `testnet` and `betanet` in the `examples/` directory.
A `Makefile` is also included to make restoreing from a snapshot easier.

Decide which image you want to build and run:

`make -C images <mainnet|testnet>`

E.g. to build the testnet image:

```
make -C images testnet
```

### Run images using docker-compose

There are examples for testnet and mainnet in the `examples/`directory.

#### Examples for testnet

`cd examples/testnet/`

By default the examples use the `latest` version. Make sure to pull it with:

```
docker-compose pull
```

Alternatively you can change the example `docker-compose.yml` file to use a specific version by changing the `image: lisk/testnet` line to `image: lisk/tesnet:<VERSION>`.
For instance if you want to use version `0.9.12a` your `docker-compose.yml` should look like this:

```
version: "2"
services:
lisk:
image: lisk/testnet:0.9.12a
[...]
```

##### Start Lisk
### Start Lisk

```
make up
```

##### Rebuild database from blockchain snapshot
### Rebuild database from snapshot

```
make coldstart
```

##### Rebuild database from latest blockchain snapshot
### Rebuild database from latest snapshot

Delete any previously downloaded blockchain.db.gz ensure the latest is downloaded:

Expand All @@ -80,59 +44,19 @@ make clean
make coldstart
```

##### Stop Lisk
### Stop Lisk

```
docker-compose stop
```


##### Delete all containers
### Delete all containers

```
docker-compose down --volumes
```

#### Upgrade

Create a new container without exposing it, wait until it catches up, stop the old container and expose the new one.

```
cp -r examples/testnet/ new_testnet/
cd new_testnet/
# edit `docker-compose.yml` to not expose port 7000
make coldstart
# make sure everything works
```

#### Customize config.json

Those environment variables that can be used to customize `config.json` inside a container:
- `LISK_CONFIG_CONSOLE_LOG_LEVEL`
- `LISK_CONFIG_FORGING_WHITELIST_IP`
- `LISK_CONFIG_DB_HOST`
- `LISK_CONFIG_DB_PORT`
- `LISK_CONFIG_DB_DATABASE`
- `LISK_CONFIG_DB_USER`
- `LISK_CONFIG_DATABASE_PASSWORD`

To customize other parts of `config.json` create your own image and add your custom config.json like so:

```
mkdir my_lisk
cd my_lisk/
docker run --rm lisk/testnet cat config.json >config.json
# edit config.json
cat << EOF >Dockerfile
FROM lisk/testnet
COPY config.json /home/lisk/lisk-Linux-x86_64/config.json
EOF
docker build --tag my_lisk/testnet .
```

Then use `my_lisk/test` in your `docker-compose.yml` file.

## Contributors

https://github.com/LiskHQ/lisk-docker/graphs/contributors
Expand Down
2 changes: 0 additions & 2 deletions images/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions images/Makefile

This file was deleted.

22 changes: 0 additions & 22 deletions images/lisk/Dockerfile

This file was deleted.

43 changes: 0 additions & 43 deletions images/lisk/Makefile

This file was deleted.

23 changes: 0 additions & 23 deletions images/lisk/files/home/lisk/run.sh

This file was deleted.

Loading

0 comments on commit 77ab774

Please sign in to comment.