-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merges lbrynet compilers into one Dockerfile with ARG for BASE_IMAGE
1 parent
c3accd7
commit 44f8f86
Showing
3 changed files
with
30 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,30 @@ | ||
# lbrynet | ||
|
||
## Compiler containers | ||
## Compiler container | ||
|
||
The compiler containers are for building lbrynet for multiple architectures. | ||
The [Dockerfile-compiler-linux](Dockerfile-compiler-linux) is for building lbrynet for any architecture supported | ||
by an Ubuntu 18.04 base image. | ||
|
||
### Build x86 compiler container | ||
### Register qemu to run docker images built for platforms other than your host | ||
|
||
``` | ||
docker build -t lbrynet-x86_64 -f Dockerfile-x86_64-compiler . | ||
docker run --rm --privileged multiarch/qemu-user-static:register | ||
``` | ||
|
||
### Build ARM compiler container | ||
### Build for the default x86_64 platform: | ||
|
||
``` | ||
docker build -t lbrynet-armhf -f Dockerfile-armhf-compiler . | ||
docker build -t lbrynet -f Dockerfile-compiler-linux . | ||
``` | ||
|
||
### Build for an ARM 32-bit platform: | ||
|
||
``` | ||
docker build -t lbrynet-armhf -f Dockerfile-compiler-linux --build-arg BASE_IMAGE=multiarch/ubuntu-core:armhf-bionic . | ||
``` | ||
|
||
### Build for an ARM 64-bit platform: | ||
|
||
``` | ||
docker build -t lbrynet-arm64 -f Dockerfile-compiler-linux --build-arg BASE_IMAGE=multiarch/ubuntu-core:arm64-bionic . | ||
``` |