Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Official hermes dockerfile #894

Merged
merged 4 commits into from
May 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

## Unreleased

> Nothing yet,
### FEATURES

- [release]
- Official hermes image on Docker Hub.

## v0.3.1
*May 14h, 2021*
Expand Down
14 changes: 9 additions & 5 deletions ci/hermes.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# informaldev/hermes image
# informalsystems/hermes image
#
# Used for running hermes in docker containers
#
# Usage:
# docker build . --build-arg TAG=v0.3.0 -t informalsystems/hermes:0.3.0 -f hermes.Dockerfile

FROM rust:1.51 AS build-env
LABEL maintainer="hello@informal.systems"
FROM rust:1.52-buster AS build-env

ARG TAG
WORKDIR /root
Expand All @@ -15,9 +17,11 @@ RUN cd ibc-rs && git checkout $TAG && cargo build --release
FROM debian:buster-slim
LABEL maintainer="hello@informal.systems"

RUN apt update && apt install -y vim jq && useradd -m hermes -s /bin/bash
RUN useradd -m hermes -s /bin/bash
WORKDIR /home/hermes
USER hermes:hermes
ENTRYPOINT /usr/bin/hermes
ENTRYPOINT ["/usr/bin/hermes"]

COPY --chown=0:0 --from=build-env /usr/lib/x86_64-linux-gnu/libssl.so.1.1 /usr/lib/x86_64-linux-gnu/libssl.so.1.1
COPY --chown=0:0 --from=build-env /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
COPY --chown=0:0 --from=build-env /root/ibc-rs/target/release/hermes /usr/bin/hermes