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:
|
2019-10-26 07:11:37 +02:00
|
|
|
image: lbry/lbrynet-tv:latest
|
2018-10-03 19:15:04 +02:00
|
|
|
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
|
|
|
|
|
2019-11-21 02:33:03 +01:00
|
|
|
You need to have the docker toolset installed on your system, as well as the ability to execute Makefiles and bash scripts.
|
2019-04-29 11:01:25 +02:00
|
|
|
|
2019-01-29 13:01:05 +01:00
|
|
|
#### Using the provided Makefile
|
|
|
|
|
|
|
|
This is the preferred method because it also checks if our newly built container can actually run.
|
|
|
|
|
|
|
|
```
|
2019-04-29 11:01:25 +02:00
|
|
|
make latest_image
|
|
|
|
# or
|
|
|
|
make latest_rc_image
|
|
|
|
make publish VERSION=0.36.0
|
2019-01-29 13:01:05 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Manually
|
2018-10-03 19:15:04 +02:00
|
|
|
|
|
|
|
```
|
2019-01-29 13:01:05 +01:00
|
|
|
make get_release
|
2019-10-26 07:11:37 +02:00
|
|
|
docker build -t lbry/lbrynet-tv:0.36.0 .
|
|
|
|
docker tag lbry/lbrynet-tv:0.36.0 lbry/lbrynet-tv:latest
|
|
|
|
docker push lbry/lbrynet-tv
|
2018-10-03 19:15:04 +02:00
|
|
|
```
|