-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support to build horizon docker images from apt stable
### What build horizon docker image from core "stable" and horizon "stable" ### Why this is needed in order to support the new workflow described in the ticket ### Testing this has been tested and works with apt "testing" ### Issue addressed by this PR stellar/ops#3124
- Loading branch information
Showing
2 changed files
with
32 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# install Core from apt "stable"and horizon from apt "stable" pool | ||
FROM ubuntu:focal | ||
|
||
ARG VERSION | ||
ARG STELLAR_CORE_VERSION | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
ARG ALLOW_CORE_UNSTABLE=no | ||
|
||
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 && \ | ||
cat /etc/apt/sources.list.d/SDF.list && \ | ||
apt-get update && apt-cache madison stellar-core && eval "apt-get install -y stellar-core${STELLAR_CORE_VERSION+=$STELLAR_CORE_VERSION}" && \ | ||
apt-cache madison stellar-horizon && apt-get install -y stellar-horizon=${VERSION} && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* /var/log/*.log /var/log/*/*.log | ||
|
||
EXPOSE 8000 | ||
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