From 82b005ae28fd92a1a50de4d30d0f4441beb6d88c Mon Sep 17 00:00:00 2001 From: Sotirios Mantziaris Date: Tue, 19 Dec 2023 23:27:00 +0200 Subject: [PATCH] Upgrades --- .github/workflows/e2e.yml | 38 -------------------------- examples/README.md | 2 +- examples/docker-compose.yml | 54 ------------------------------------- 3 files changed, 1 insertion(+), 93 deletions(-) delete mode 100644 .github/workflows/e2e.yml delete mode 100644 examples/docker-compose.yml diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml deleted file mode 100644 index b09f2f4b9..000000000 --- a/.github/workflows/e2e.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: E2E -on: - push: - branches: - - master - pull_request: -jobs: - if: false - build: - name: E2E - runs-on: ubuntu-latest - steps: - - name: Check out source code - uses: actions/checkout@v4 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version-file: 'go.mod' - - - name: Starting dependencies - run: | - docker-compose up -d - sleep 10 - working-directory: ./examples/ - - - name: Starting service - run: | - docker ps -a - go build . - nohup ./service & - working-directory: ./examples/service - - - name: Starting client - run: | - sleep 10 - go run main.go - working-directory: ./examples/client diff --git a/examples/README.md b/examples/README.md index 6b5c0b445..124847626 100644 --- a/examples/README.md +++ b/examples/README.md @@ -16,7 +16,7 @@ The client implements all Patron clients for the components used by the service. First we need to start the dependencies of the example by running: ```bash -docker-compose -f examples/docker-compose.yml up -d +make deps-start ``` Next we run the service: diff --git a/examples/docker-compose.yml b/examples/docker-compose.yml deleted file mode 100644 index 14405d63c..000000000 --- a/examples/docker-compose.yml +++ /dev/null @@ -1,54 +0,0 @@ -version: "2.1" - -services: - rabbitmq: - image: docker.io/bitnami/rabbitmq:latest - ports: - - "4369:4369" - - "5551:5551" - - "5552:5552" - - "5672:5672" - - "25672:25672" - - "15672:15672" - environment: - - RABBITMQ_SECURE_PASSWORD=yes - - RABBITMQ_MANAGEMENT_ALLOW_WEB_ACCESS=yes - volumes: - - "rabbitmq_data:/bitnami/rabbitmq/mnesia" - zookeeper: - image: "bitnami/zookeeper:latest" - ports: - - "2181:2181" - environment: - - ALLOW_ANONYMOUS_LOGIN=yes - kafka: - image: "bitnami/kafka:2" - ports: - - "9092:9092" - - "9093:9093" - environment: - - KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181 - - ALLOW_PLAINTEXT_LISTENER=yes - - KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CLIENT:PLAINTEXT,EXTERNAL:PLAINTEXT - - KAFKA_CFG_LISTENERS=CLIENT://:9092,EXTERNAL://:9093 - - KAFKA_CFG_ADVERTISED_LISTENERS=CLIENT://kafka:9092,EXTERNAL://localhost:9093 - - KAFKA_CFG_INTER_BROKER_LISTENER_NAME=CLIENT - depends_on: - - zookeeper - localstack: - image: localstack/localstack:latest - ports: - - "127.0.0.1:4566:4566" # LocalStack Gateway - - "127.0.0.1:4510-4559:4510-4559" # external services port range - environment: - - DEBUG=${DEBUG-} - - DOCKER_HOST=unix:///var/run/docker.sock - - AWS_ACCESS_KEY_ID=test - - AWS_SECRET_ACCESS_KEY=test - - AWS_DEFAULT_REGION=eu-west-1 - volumes: - - "${TMPDIR:-/tmp}/localstack:/var/lib/localstack" - - "/var/run/docker.sock:/var/run/docker.sock" -volumes: - rabbitmq_data: - driver: local