docker-lbrynet/README.md

49 lines
932 B
Markdown
Raw Normal View History

2018-10-03 19:15:04 +02:00
# Dockerfile for building lbrynet image
## Image usage
Put this in your docker-compose file:
2018-10-03 19:15:04 +02:00
```
version: '3.2'
services:
daemon_test_local:
image: lbryweb/lbrynet: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
```
## Updating, building and publishing
You need to have docker toolset installed on your system, as well as the ability to execute Makefiles and bash scripts.
#### Using the provided Makefile
This is the preferred method because it also checks if our newly built container can actually run.
```
make latest_image
# or
make latest_rc_image
make publish VERSION=0.36.0
```
#### Manually
2018-10-03 19:15:04 +02:00
```
make get_release
docker build -t lbryweb/lbrynet:0.36.0 .
docker tag lbryweb/lbrynet:0.36.0 lbryweb/lbrynet:latest
docker push lbryweb/lbrynet
2018-10-03 19:15:04 +02:00
```