-
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.
allow for the bundling of Core package from apt "testing" pool
### What a new Dockerfile to install Core from the "testing" pool an update to the Makefile specifically for this case ### Why adding support for the "testing" pool to the Dockerfile would make the file more confusing to read, so I decided to use a separate Dockerfile ### Testing I will test this manually shortly ### Issue addressed by this PR stellar/ops#3124
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 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
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,19 @@ | ||
# install both horizon and core from apt "testing" 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 testing" | 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