Browse Source
273: Build for aarch64 which is needed for RPi4 r=bonomat a=bonomat Adds more build targets and publishes docker containers. This was tested on my personal fork and resulted in the following container which can run on an RPi4: ``` docker run ghcr.io/bonomat/hermes-maker-aarch64-unknown-linux-gnu:latest ``` A few notes which might come up: - The naming of the containers can be improved, please someone with sed knowledge give it a try :) - I was not able to use the github action `docker/build-push-action`. This moves the image build into a tmp folder which I was not able to escape. Hence, I was not able to copy the binaries into the image - I was not able to combine the containers into a single one because we have parallel builds. Apparently this should be possible though (reference: [manifest](https://www.docker.com/blog/multi-platform-docker-builds/)). - I was also not able to use alpine because of the different libc6 version 282: Only fetch announcements when needed r=luckysori a=luckysori Fixes #275. I think this is what you meant with #275, `@thomaseizinger.` It does result in immediately deleting some code you wrote in #279. I do think we'll end up reintroducing it once we actually use more than one oracle event per CFD, but it seems unnecessary to keep it around until then. Let me know if you disagree. Co-authored-by: Philipp Hoenisch <philipp@hoenisch.at> Co-authored-by: Lucas Soriano del Pino <l.soriano.del.pino@gmail.com>refactor/no-log-handler
bors[bot]
3 years ago
committed by
GitHub
11 changed files with 180 additions and 102 deletions
@ -1,2 +1,4 @@ |
|||
[target.armv7-unknown-linux-gnueabihf] |
|||
linker = "arm-linux-gnueabihf-gcc" |
|||
[target.aarch64-unknown-linux-gnu] |
|||
linker = "aarch64-linux-gnu-gcc" |
|||
|
@ -0,0 +1,3 @@ |
|||
|
|||
.* |
|||
!./target |
@ -0,0 +1,15 @@ |
|||
FROM debian:bullseye-slim |
|||
|
|||
ARG BINARY_PATH |
|||
RUN echo "Copying $BINARY_PATH into container" |
|||
|
|||
COPY $BINARY_PATH hermes |
|||
|
|||
RUN chmod a+x hermes |
|||
|
|||
VOLUME data |
|||
|
|||
# HTTP Port and P2P Port |
|||
EXPOSE 8000 9999 |
|||
|
|||
ENTRYPOINT ["/hermes", "--data-dir=/data", "--http-address=0.0.0.0:8000"] |
@ -1,4 +1,4 @@ |
|||
[toolchain] |
|||
channel = "1.55" |
|||
components = ["clippy"] |
|||
targets = ["armv7-unknown-linux-gnueabihf"] |
|||
targets = ["armv7-unknown-linux-gnueabihf", "aarch64-unknown-linux-gnu"] |
|||
|
Loading…
Reference in new issue