diff --git a/Dockerfile.old b/Dockerfile.old deleted file mode 100644 index 0100fbff8cb5204a6501fbd8215d6e714a0a17de..0000000000000000000000000000000000000000 --- a/Dockerfile.old +++ /dev/null @@ -1,89 +0,0 @@ -FROM php:7.4-fpm -RUN apt-get update && apt-get install -y \ - libfreetype6-dev \ - libjpeg62-turbo-dev \ - libpng-dev \ - && docker-php-ext-configure gd --with-freetype --with-jpeg \ - && docker-php-ext-install -j$(nproc) gd - - -RUN apt-get install -y \ - procps \ - git \ - curl \ - unzip \ - nodejs \ - npm \ - wget \ - nginx \ - nginx-full \ - nginx-common - - -##################### -### NGINX CONF ###### -##################### - -RUN useradd -ms /bin/bash nginx -RUN addgroup nginx root -# support running as arbitrary user which belongs to the root group -RUN chmod g+rwx /var/cache /var/run /var/log /var/lib/nginx - - -WORKDIR /etc/nginx -RUN ls -alh -# users are not allowed to listen on priviliged ports - -RUN sed -i.bak 's/listen\(.*\)80;/listen 8081;/' /etc/nginx/nginx.conf -# comment user directive as master process is run as user in OpenShift anyhow -RUN sed -i.bak 's/^user/#user/' /etc/nginx/nginx.conf -# forward request and error logs to docker log collector -RUN ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log -###################### - - - -WORKDIR /usr/share/nginx/html -RUN git clone https://gitlab.in2p3.fr/cc-in2p3-dev/TMS tms -WORKDIR /usr/share/nginx/html/tms -RUN mv tms/* . -RUN mv tms/.env.template .env - -RUN curl -sS https://getcomposer.org/installer | php -RUN php composer.phar install - -RUN npm cache clean -f -RUN npm install -g n -RUN n stable -RUN curl -o- -L https://yarnpkg.com/install.sh | bash - - -RUN $HOME/.yarn/bin/yarn install --ignore-engines -RUN $HOME/.yarn/bin/yarn encore dev - - -EXPOSE 80 -EXPOSE 8081 - - -RUN addgroup www-data root - - -RUN mkdir -p /tmp/socket/ -RUN cp php7.4-fpm.sock /tmp/socket/php7.4-fpm.sock -RUN chown www-data /tmp/socket/php7.4-fpm.sock -RUN chmod 777 /tmp/socket/php7.4-fpm.sock - -RUN ls -alh -RUN rm /etc/nginx/sites-available/default -RUN mv symfony.conf /etc/nginx/sites-enabled/default - - - -STOPSIGNAL SIGTERM - - -CMD ["/usr/local/sbin/php-fpm"] - -CMD ["nginx", "-g", "daemon off;"] -