diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fef13ef2d2249f6cb2e84092c31acb1d14f8da6a..0785dd0e58e7d6569805d24acde77b5a1e190afa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,38 @@ # See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence stages: - test +- build sast: stage: test include: - template: Security/SAST.gitlab-ci.yml + + +stages: + - build + +build_development: + stage: build + tags: + - build + only: + - development + variables: + TAG: testing + script: + - docker-compose build + - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY + - docker-compose push + +build_release: + stage: build + tags: + - build + only: + - tags + variables: + TAG: 3-management + script: + - docker-compose build + - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY + - docker-compose push diff --git a/20_consumer_timout.conf b/20_consumer_timout.conf new file mode 100644 index 0000000000000000000000000000000000000000..870b2057ece9d1915fa8e3ac2b6269d83d6794d7 --- /dev/null +++ b/20_consumer_timout.conf @@ -0,0 +1,2 @@ +# ten hours in milliseconds +consumer_timeout = 36000000 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..c3c30599fb252b1569e7bbdcbf960df45f9ff50e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM rabbitmq:3-management + +COPY 20_consumer_timout.conf /etc/rabbitmq/conf.d/ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000000000000000000000000000000000000..2ee7eb3de85f41c4243b42f533a8c72ec1a53ef0 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ + +version: "3.0" +services: + rabbitmq: + image: registry.forge.grandlyon.com/web-et-numerique/web-et-numerique-internet/data.grandlyon.com/web-portal/components/indexers/rabbitmq:${TAG} + ports: + - 15672:15672 + - 5672:5672 + restart: unless-stopped