Skip to content

Commit

Permalink
Add stellar-core to stellar/stellar-horizon image
Browse files Browse the repository at this point in the history
Also:
* Add default versions for Horizon and Core
* Use ENTRYPOINT instead of CMD (otherwise `docker run subcommand`
  doesn't result in a horizon subcommand being run)
  • Loading branch information
2opremio committed Oct 25, 2021
1 parent d4324c1 commit 028780e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions services/horizon/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
FROM ubuntu:focal

ARG VERSION
ARG VERSION=2.9.0-165
ARG CORE_VERSION=18.0.3-746.f3baea6.focal
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y wget apt-transport-https gnupg2 && \
wget -qO /etc/apt/trusted.gpg.d/SDF.asc https://apt.stellar.org/SDF.asc && \
echo "deb https://apt.stellar.org focal stable" | tee -a /etc/apt/sources.list.d/SDF.list && \
apt-get update && apt-get install -y stellar-horizon=${VERSION} && \
apt-get update && apt-cache madison stellar-horizon stellar-core && apt-get install -y stellar-horizon=${VERSION} stellar-core=${CORE_VERSION} && \
apt-get clean && rm -rf /var/lib/apt/lists/* /var/log/*.log /var/log/*/*.log

EXPOSE 8000
CMD ["/usr/bin/stellar-horizon"]
ENTRYPOINT ["/usr/bin/stellar-horizon"]
2 changes: 1 addition & 1 deletion services/horizon/docker/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16 AS builder
FROM golang:1.17 AS builder

WORKDIR /go/src/github.com/stellar/go
COPY go.mod go.sum ./
Expand Down

0 comments on commit 028780e

Please sign in to comment.