2018-10-03 19:15:04 +02:00
|
|
|
# Dockerfile for building lbrynet image
|
|
|
|
|
|
|
|
## Image usage
|
|
|
|
|
2019-01-29 13:01:05 +01:00
|
|
|
Put this in your docker-compose file:
|
|
|
|
|
2018-10-03 19:15:04 +02:00
|
|
|
```
|
|
|
|
version: '3.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
daemon_test_local:
|
|
|
|
image: sayplastic/lbrynet:latest
|
|
|
|
ports:
|
|
|
|
- "5279:5279"
|
|
|
|
volumes:
|
|
|
|
- type: bind
|
|
|
|
source: ./storage
|
|
|
|
target: /storage
|
|
|
|
# or
|
|
|
|
volumes:
|
|
|
|
- type: volume
|
|
|
|
source: storage
|
|
|
|
target: /storage
|
|
|
|
```
|
|
|
|
|
2019-01-29 13:01:05 +01:00
|
|
|
## Updating, building and publishing
|
|
|
|
|
|
|
|
#### Using the provided Makefile
|
|
|
|
|
|
|
|
This is the preferred method because it also checks if our newly built container can actually run.
|
|
|
|
|
|
|
|
```
|
|
|
|
make get_release
|
|
|
|
VERSION=0.30.5 make build
|
|
|
|
VERSION=0.30.5 make publish
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Manually
|
2018-10-03 19:15:04 +02:00
|
|
|
|
|
|
|
```
|
2019-01-29 13:01:05 +01:00
|
|
|
make get_release
|
2019-01-29 12:22:50 +01:00
|
|
|
docker build -t sayplastic/lbrynet:0.30rc6 .
|
|
|
|
docker tag sayplastic/lbrynet:0.30rc6 sayplastic/lbrynet:latest
|
2018-10-03 19:15:04 +02:00
|
|
|
docker push sayplastic/lbrynet
|
|
|
|
```
|