-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stellar-core to stellar/stellar-horizon image
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
Showing
2 changed files
with
5 additions
and
4 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
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"] |
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