From e5a9b8200f490c1a17c95fd5faad6df537ede480 Mon Sep 17 00:00:00 2001 From: Ghislain Proulx Date: Sun, 20 Dec 2020 10:36:52 -0500 Subject: [PATCH 1/2] Initial commit --- Dockerfile | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f1a374c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,64 @@ +FROM php:7.1.33-zts-stretch + +RUN apt update && apt install -y \ + admesh \ + apt-transport-https \ + git \ + gnupg \ + libzip-dev \ + povray \ + python3-setuptools \ + vim \ + wget \ + && rm -rf /var/lib/apt/lists/* + +RUN docker-php-ext-configure zip --with-libzip +RUN docker-php-ext-install zip pdo_mysqlp + +# install elasticsearch +RUN wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add - +RUN echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-7.x.list +RUN apt update && apt install elasticsearch + +RUN /bin/systemctl enable elasticsearch.service + +#install node 8 because newever version go kaboom +RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - +RUN apt install -y nodejs + +#install ldview +RUN wget https://github.com/tcobbs/ldview/releases/download/v4.3/ldview-osmesa_4.3-stretch_amd64.deb +RUN apt install -y /ldview-osmesa_4.3-stretch_amd64.deb + +#install stl2pov +RUN git clone https://github.com/rsmith-nl/stltools.git +WORKDIR stltools +RUN python3 setup.py install +WORKDIR / + +#install composer +RUN wget https://getcomposer.org/installer +RUN php installer +RUN mv composer.phar /usr/local/bin/composer + +RUN git clone https://github.com/hubnedav/PrintABrick.git +WORKDIR /PrintABrick +RUN composer install + +# setup front ned +RUN npm install +RUN npm install bower -g + +RUN bower install --allow-root +RUN node_modules/gulp/bin/gulp.js + +RUN apt install -y mysql-server +#configure mysql +#start and let root access to server + +#RUN php bin/console doctrine:database:create +#RUN php bin/console doctrine:schema:create + +#RUN php bin/console doctrine:fixtures:load + +#RUN php bin/console app:init \ No newline at end of file From c0665ab23a40791e6063b12b8c59b388954f29cc Mon Sep 17 00:00:00 2001 From: Ghislain Proulx Date: Sun, 20 Dec 2020 11:34:10 -0500 Subject: [PATCH 2/2] Now runs up to step 16 - stltools python install, but fail at that step --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f1a374c..8258d1e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM php:7.1.33-zts-stretch +# FROM php:7.1.33-fpm-stretch RUN apt update && apt install -y \ admesh \ @@ -12,8 +13,13 @@ RUN apt update && apt install -y \ wget \ && rm -rf /var/lib/apt/lists/* -RUN docker-php-ext-configure zip --with-libzip -RUN docker-php-ext-install zip pdo_mysqlp +# RUN COPY docker-php-ext-get /usr/local/bin/ + +ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ + +RUN chmod +x /usr/local/bin/install-php-extensions && sync + +RUN install-php-extensions zip pdo_mysql # install elasticsearch RUN wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -