diff --git a/docker/elastic8.yml b/docker/elastic8.yml new file mode 100644 index 0000000..755f0df --- /dev/null +++ b/docker/elastic8.yml @@ -0,0 +1,28 @@ +# Elastic config, to be appended after base-prod or base-dev, ..., but before selenium.yml +# +# NOTE: You'll need to manually run the command: php bin/console ibexa:elasticsearch:put-index-template. + +## WARNING! +# This service is currently work in progress, is not tested by CI, and thus not guaranteed to work. +# You are however more then welcome to try it out and help make it stable. + +services: + app: + depends_on: + - elasticsearch + environment: + - SEARCH_ENGINE=elasticsearch + - ELASTICSEARCH_DSN=elasticsearch:9200 + + elasticsearch: + image: docker.elastic.co/elasticsearch/elasticsearch:8.19.9 + ports: + - "9200:9200" + - "9300:9300" + environment: + - discovery.type=single-node + - xpack.security.enabled=false + - xpack.security.http.ssl.enabled=false + networks: + - frontend + - backend diff --git a/php/Dockerfile-node12 b/php/Dockerfile-node12 index 8c58ba4..9bbfcd4 100644 --- a/php/Dockerfile-node12 +++ b/php/Dockerfile-node12 @@ -1,11 +1,16 @@ FROM ibexa_php:latest # Install Node.js and Yarn -RUN apt-get update -q -y \ - && apt-get install -q -y --no-install-recommends gnupg \ - && curl -sL https://deb.nodesource.com/setup_12.x | bash - \ - && apt-get install -y nodejs \ - && curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ - && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \ - && sudo apt-get update && sudo apt-get install yarn \ +RUN apt-get update -y \ + && apt-get install -y --no-install-recommends \ + ca-certificates curl xz-utils \ + \ + && curl -fsSL https://nodejs.org/dist/v12.22.12/node-v12.22.12-linux-x64.tar.xz \ + | tar -xJ -C /usr/local --strip-components=1 \ + \ + && node -v \ + && npm -v \ + \ + && npm install -g yarn@1.22.19 \ + \ && rm -rf /var/lib/apt/lists/* diff --git a/php/Dockerfile-node14 b/php/Dockerfile-node14 index dbbf237..05daca6 100644 --- a/php/Dockerfile-node14 +++ b/php/Dockerfile-node14 @@ -1,11 +1,14 @@ FROM ibexa_php:latest # Install Node.js and Yarn -RUN apt-get update -q -y \ - && apt-get install -q -y --no-install-recommends gnupg \ - && curl -sL https://deb.nodesource.com/setup_14.x | bash - \ - && apt-get install -y nodejs \ - && curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ - && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \ - && sudo apt-get update && sudo apt-get install yarn \ +RUN apt-get update -y \ + && apt-get install -y --no-install-recommends \ + ca-certificates curl gnupg xz-utils \ + \ + && curl -fsSL https://nodejs.org/dist/v14.21.3/node-v14.21.3-linux-x64.tar.xz \ + | tar -xJ -C /usr/local --strip-components=1 \ + \ + && corepack enable \ + && corepack prepare yarn@1.22.22 --activate \ + \ && rm -rf /var/lib/apt/lists/* diff --git a/php/Dockerfile-node16 b/php/Dockerfile-node16 index be7fe83..dd005ad 100644 --- a/php/Dockerfile-node16 +++ b/php/Dockerfile-node16 @@ -1,11 +1,16 @@ FROM ibexa_php:latest # Install Node.js and Yarn -RUN apt-get update -q -y \ - && apt-get install -q -y --no-install-recommends gnupg \ - && curl -sL https://deb.nodesource.com/setup_16.x | bash - \ +RUN apt-get update -y \ + && apt-get install -y --no-install-recommends \ + ca-certificates curl gnupg \ + \ + && curl -fsSL https://deb.nodesource.com/setup_16.x | bash - \ && apt-get install -y nodejs \ - && curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ - && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \ - && sudo apt-get update && sudo apt-get install yarn \ + \ + && npm install -g yarn@1.22.22 \ + \ + && node -v \ + && yarn -v \ + \ && rm -rf /var/lib/apt/lists/* diff --git a/php/Dockerfile-node18 b/php/Dockerfile-node18 index 7babd07..70a9633 100644 --- a/php/Dockerfile-node18 +++ b/php/Dockerfile-node18 @@ -1,11 +1,14 @@ FROM ibexa_php:latest # Install Node.js and Yarn -RUN apt-get update -q -y \ - && apt-get install -q -y --no-install-recommends gnupg \ - && curl -sL https://deb.nodesource.com/setup_18.x | bash - \ +RUN apt-get update -y \ + && apt-get install -y --no-install-recommends \ + ca-certificates curl gnupg \ + \ + && curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ && apt-get install -y nodejs \ - && curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ - && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \ - && sudo apt-get update && sudo apt-get install yarn \ + \ + && corepack enable \ + && corepack prepare yarn@stable --activate \ + \ && rm -rf /var/lib/apt/lists/*