Skip to content

Commit

Permalink
Official hermes dockerfile (informalsystems#894)
Browse files Browse the repository at this point in the history
* docker hub production file

* CHANGELOG updated
  • Loading branch information
greg-szabo committed May 20, 2021
1 parent 502b168 commit a0f672f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
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

0 comments on commit a0f672f

Please sign in to comment.