Skip to content

Commit

Permalink
services/ledgerexporter: Move ledgerexporter out of experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
urvisavla committed Jun 12, 2024
1 parent 4a48b7c commit 13c6794
Show file tree
Hide file tree
Showing 27 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/horizon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ jobs:
# For pull requests, build and test the PR head not a merge of the PR with the destination.
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- name: Build Ledger Exporter docker
run: make -C exp/services/ledgerexporter docker-build
run: make -C services/ledgerexporter docker-build

- name: Run Ledger Exporter test
run: make -C exp/services/ledgerexporter docker-test
run: make -C services/ledgerexporter docker-test

# Push images
- if: github.ref == 'refs/heads/master'
Expand All @@ -178,4 +178,4 @@ jobs:

- if: github.ref == 'refs/heads/master'
name: Push to DockerHub
run: make -C exp/services/ledgerexporter docker-push
run: make -C services/ledgerexporter docker-push
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ horizon:
$(MAKE) -C services/horizon/ binary-build

ledger-exporter:
$(MAKE) -C exp/services/ledgerexporter/ docker-build
$(MAKE) -C services/ledgerexporter/ docker-build

webauth:
$(MAKE) -C exp/services/webauth/ docker-build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ VERSION ?= 1.0.0-$(shell git rev-parse --short HEAD)
DOCKER_IMAGE := stellar/ledger-exporter

docker-build:
cd ../../../ && \
cd ../../ && \
$(SUDO) docker build --platform linux/amd64 --pull --label org.opencontainers.image.created="$(BUILD_DATE)" \
--build-arg GOFLAGS="-ldflags=-X=github.com/stellar/go/exp/services/ledgerexporter/internal.version=$(VERSION)" \
--build-arg GOFLAGS="-ldflags=-X=github.com/stellar/go/services/ledgerexporter/internal.version=$(VERSION)" \
$(if $(STELLAR_CORE_VERSION), --build-arg STELLAR_CORE_VERSION=$(STELLAR_CORE_VERSION)) \
-f exp/services/ledgerexporter/docker/Dockerfile \
-f services/ledgerexporter/docker/Dockerfile \
-t $(DOCKER_IMAGE):$(VERSION) \
-t $(DOCKER_IMAGE):latest .

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN go mod download
COPY . ./

ARG GOFLAGS
RUN go install github.com/stellar/go/exp/services/ledgerexporter
RUN go install github.com/stellar/go/services/ledgerexporter

FROM ubuntu:22.04
ARG STELLAR_CORE_VERSION
Expand All @@ -26,7 +26,7 @@ RUN echo "deb https://apt.stellar.org focal unstable" >/etc/apt/sources.list.d/S
RUN apt-get update && apt-get install -y stellar-core=${STELLAR_CORE_VERSION}
RUN apt-get clean

COPY exp/services/ledgerexporter/docker/start /
COPY services/ledgerexporter/docker/start /

RUN ["chmod", "+x", "/start"]

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"flag"

exporter "github.com/stellar/go/exp/services/ledgerexporter/internal"
exporter "github.com/stellar/go/services/ledgerexporter/internal"
)

func main() {
Expand Down

0 comments on commit 13c6794

Please sign in to comment.