Skip to content
2 changes: 1 addition & 1 deletion .github/workflows/internal-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ on:
cache_id:
description: "A value insert into cache keys to namespace cache usage, or invalidate it by incrementing"
type: "string"
default: 17
default: 18
cache_prefix:
description: "A prefix added to all cache keys generated by this workflow"
type: "string"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/internal-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,11 @@ jobs:
go run tests/test_stellar_rpc_healthy.go
- name: Prepare Test Logs
if: always()
run: docker cp stellar:/var/log logs
run: |
# Remove broken symlink that causes 'docker cp' to fail
# In Debian 13 (Trixie), /var/log/README symlinks to systemd docs that aren't installed
docker exec stellar rm -f /var/log/README
docker cp stellar:/var/log logs
- name: Upload Test Logs
if: always()
uses: actions/upload-artifact@v4
Expand Down
30 changes: 15 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
#
# | Base Image | Debian Version |
# |------------------------|----------------|
# | ubuntu:22.04 | 12 (bookworm) |
# | rust:1-bookworm | 12 (bookworm) |
# | golang:1.24-bookworm | 12 (bookworm) |
# | node:22-bookworm | 12 (bookworm) |
# | ubuntu:24.04 | 13 (trixie) |
# | rust:1-trixie | 13 (trixie) |
# | golang:1.24-trixie | 13 (trixie) |
# | node:22-trixie | 13 (trixie) |

ARG XDR_IMAGE=stellar-xdr-stage
ARG CORE_IMAGE=stellar-core-stage
Expand All @@ -21,7 +21,7 @@ ARG LAB_IMAGE=stellar-lab-stage

# xdr

FROM rust:1-bookworm AS stellar-xdr-builder
FROM rust:1-trixie AS stellar-xdr-builder
ARG XDR_REPO
ARG XDR_REF
WORKDIR /wd
Expand All @@ -37,14 +37,14 @@ COPY --from=stellar-xdr-builder /usr/local/cargo/bin/stellar-xdr /stellar-xdr

# core

FROM ubuntu:22.04 AS stellar-core-builder
FROM ubuntu:24.04 AS stellar-core-builder

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get -y install iproute2 procps lsb-release \
git build-essential pkg-config autoconf automake libtool \
bison flex sed perl libpq-dev parallel libunwind-dev \
clang-12 libc++abi-12-dev libc++-12-dev \
bison flex sed perl libpq-dev parallel \
clang-20 libc++abi-20-dev libc++-20-dev \
postgresql curl jq

ARG CORE_REPO
Expand All @@ -60,8 +60,8 @@ RUN git checkout ${CORE_REF}
RUN git clean -dXf
RUN git submodule foreach --recursive git clean -dXf

ARG CC=clang-12
ARG CXX=clang++-12
ARG CC=clang-20
ARG CXX=clang++-20
ARG CFLAGS='-O3 -g1 -fno-omit-frame-pointer'
ARG CXXFLAGS='-O3 -g1 -fno-omit-frame-pointer -stdlib=libc++'

Expand All @@ -80,7 +80,7 @@ COPY --from=stellar-core-builder /usr/local/bin/stellar-core /stellar-core

# rpc

FROM golang:1.24-bookworm AS stellar-rpc-builder
FROM golang:1.24-trixie AS stellar-rpc-builder

ARG RPC_REPO
ARG RPC_REF
Expand All @@ -107,7 +107,7 @@ COPY --from=stellar-rpc-builder /go/src/github.com/stellar/stellar-rpc/stellar-r

# horizon

FROM golang:1.24-bookworm AS stellar-horizon-builder
FROM golang:1.24-trixie AS stellar-horizon-builder

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y install jq
Expand All @@ -131,7 +131,7 @@ COPY --from=stellar-horizon-builder /stellar-horizon /stellar-horizon

# friendbot

FROM golang:1.24-bookworm AS stellar-friendbot-builder
FROM golang:1.24-trixie AS stellar-friendbot-builder

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y install jq
Expand All @@ -155,7 +155,7 @@ COPY --from=stellar-friendbot-builder /friendbot /friendbot

# lab

FROM node:22-bookworm AS stellar-lab-builder
FROM node:22-trixie AS stellar-lab-builder

ARG LAB_REPO
ARG LAB_REF
Expand Down Expand Up @@ -192,7 +192,7 @@ FROM $FRIENDBOT_IMAGE AS friendbot
FROM $RPC_IMAGE AS rpc
FROM $LAB_IMAGE AS lab

FROM ubuntu:22.04 AS quickstart
FROM ubuntu:24.04 AS quickstart

ARG REVISION
ENV REVISION=$REVISION
Expand Down
15 changes: 12 additions & 3 deletions dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,21 @@ set -e

# dependencies
export DEBIAN_FRONTEND=noninteractive

# Add PostgreSQL APT repository for PostgreSQL 14
apt-get update
apt-get install -y curl ca-certificates lsb-release
install -d /usr/share/postgresql-common/pgdg
curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
. /etc/os-release
sh -c "echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt ${VERSION_CODENAME}-pgdg main' > /etc/apt/sources.list.d/pgdg.list"

apt-get update
apt-get install -y curl apt-transport-https \
postgresql-client postgresql postgresql-contrib \
postgresql-client-14 postgresql-14 postgresql-contrib \
sudo supervisor psmisc \
nginx rsync jq netcat \
libunwind8 sqlite libc++abi1-12 libc++1-12
nginx rsync jq netcat-openbsd \
libunwind8 sqlite3 libc++abi1-20 libc++1-20
apt-get clean
rm -rf /var/lib/apt/lists/*

Expand Down