From e4182c072768ad32aef87b71b83c96cac29cdee7 Mon Sep 17 00:00:00 2001 From: pmacius Date: Tue, 16 Jul 2024 10:14:41 +0200 Subject: [PATCH] add docker file --- .github/workflows/build_and_test.yml | 13 ++++++++++- docker-compose.yml | 32 ++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index d723c339..d634dd16 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -58,4 +58,15 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/docker-dump-containers-logs@v5.33.0 - + compose: + name: docker-compose + needs: build-run-test + runs-on: ubuntu-latest + steps: + - name: Verify docker-compose + uses: Alfresco/alfresco-build-tools/.github/actions/dbp-charts/verify-compose@v5.27.0 + timeout-minutes: 10 + with: + compose_file_path: docker-compose.yml + quay_username: ${{ secrets.QUAY_USERNAME }} + quay_password: ${{ secrets.QUAY_PASSWORD }} diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..b92c8aa6 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,32 @@ +version: "2" +services: + activemq: + image: alfresco/alfresco-activemq:5.18-jre17-rockylinux8 + mem_limit: 1g + ports: + - "8161:8161" # Web Console + - "5672:5672" # AMQP + - "61616:61616" # OpenWire + - "61613:61613" # STOMP + elasticsearch: + image: elasticsearch:7.10.1 + environment: + - xpack.security.enabled=false + - discovery.type=single-node + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + cap_add: + - IPC_LOCK + ports: + - 9200:9200 + - 9300:9300 + live-indexing-metadata: + image: alfresco-elasticsearch-live-indexing-metadata:test + environment: + SPRING_ELASTICSEARCH_REST_URIS: http://elasticsearch:9200 + SPRING_ACTIVEMQ_BROKERURL: nio://activemq:61616