forked from FiligranHQ/zotprime
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Moved tinymceclean server to separate container - Moved stream server to a separate container - Verified that built of the client v6 succeeded. With Node js v16. - Fixed issue Minio won't start due to version incompatibility. Set to version RELEASE.2018-10-25T01-27-03Z used at the time of zotprime first release - Fixed issue Elastica won't start due to version incompatibility. Set to version RELEASE.2018-10-25T01-27-03Z used at the time of zotprime first release - Fixed issue Class 'Redis' not found - Fixed issue uWebSockets.js (uws) NPM couldn't build - Fixed environmental variables in app-zotero container - Disabled overloading cpu rsyslogd - Moved apache setup to entrypoint.sh - Fixed docker/bin/run.sh docker/bin/create-user.sh scripts in regards to latest docker compose plugin version git submodule status f5d249841b839972625fd8359732b1ba0bb8c829 client/zotero-build (heads/uptodatesubmodules) fb61ea4ba239f9c748b6345e159b88b7ca57dbf3 client/zotero-client (6.0.23-43-gfb61ea4ba) 3e5c84346ff59db0cdb28493b440fdeda2d8aaf7 client/zotero-standalone-build (6.0.21-5-g3e5c843) 66e2ad6264455895e0506b84df03e7189f5f7a71 include/Elastica (v0.16.0.0-2202-g66e2ad62) d2063ca003df3294164ae786ad96e29c4c36a832 stream-server (heads/docker) f4d74787d182cf0829f98a259e512cae6ca61a58 tinymce-clean-server (heads/docker)
- Loading branch information
Showing
12 changed files
with
179 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,14 +12,48 @@ FROM debian:bullseye-slim | |
#RUN DEBIAN_FRONTEND=noninteractive apt-get -y install php7.0-cli php7.0-xml php7.0-mysql php7.0-pgsql php7.0-json php7.0-curl php7.0-mbstring php7.0-intl php7.0-redis php7.0-dev php-pear composer | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
libapache2-mod-php mariadb-server mariadb-client memcached php-zend-code php7.4-cli php7.4-memcached php7.4-mysql php7.4-curl \ | ||
apache2 uwsgi uwsgi-plugin-psgi libplack-perl libdigest-hmac-perl libjson-xs-perl libfile-util-perl libapache2-mod-uwsgi libswitch-perl \ | ||
git gnutls-bin runit wget curl net-tools | ||
|
||
RUN apt-get install vim -y | ||
apache2 \ | ||
awscli \ | ||
composer \ | ||
curl \ | ||
git \ | ||
gnutls-bin \ | ||
libapache2-mod-php \ | ||
libapache2-mod-uwsgi \ | ||
# libc6 \ | ||
libdigest-hmac-perl \ | ||
libfile-util-perl \ | ||
libjson-xs-perl \ | ||
libplack-perl \ | ||
libswitch-perl \ | ||
mariadb-client \ | ||
mariadb-server \ | ||
memcached \ | ||
net-tools \ | ||
nodejs \ | ||
npm \ | ||
php7.4-cli \ | ||
php7.4-curl \ | ||
php7.4-memcached \ | ||
php7.4-mysql \ | ||
php-http \ | ||
php-igbinary \ | ||
php-pear \ | ||
php-zend-code \ | ||
rinetd \ | ||
rsyslog \ | ||
runit \ | ||
uwsgi \ | ||
uwsgi-plugin-psgi \ | ||
vim \ | ||
wget \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
|
||
#RUN apt-get install vim -y | ||
#build-essential | ||
|
||
RUN apt-get install -y php-pear composer nodejs | ||
#RUN apt-get install -y php-pear composer nodejs | ||
|
||
RUN sed -i 's/memory_limit = 128M/memory_limit = 1G/g' /etc/php/7.4/apache2/php.ini | ||
RUN sed -i 's/max_execution_time = 30/max_execution_time = 300/g' /etc/php/7.4/apache2/php.ini | ||
|
@@ -31,70 +65,89 @@ RUN sed -i 's/error_reporting = E_ALL \& ~E_DEPRECATED \& ~E_STRICT/error_report | |
|
||
|
||
# Setup igbinary | ||
RUN apt-get install -y php-igbinary | ||
#RUN apt-get install -y php-igbinary | ||
# php-dev | ||
#RUN pecl channel-update pecl.php.net | ||
#RUN pecl install igbinary | ||
RUN echo "extension=igbinary.so" >> /etc/php/7.4/mods-available/igbinary.ini | ||
|
||
#RUN echo "extension=igbinary.so" >> /etc/php/7.4/mods-available/igbinary.ini | ||
|
||
#RUN ln -s /etc/php/7.0/mods-available/igbinary.ini /etc/php/7.0/cli/conf.d/20-igbinary.ini | ||
#RUN ln -s /etc/php/7.0/mods-available/igbinary.ini /etc/php/7.0/apache2/conf.d/20-igbinary.ini | ||
|
||
|
||
# Setup Memcached | ||
#RUN apt-get -y install libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev libxml2-dev zlib1g-dev libicu-dev g++ | ||
#RUN pecl download memcached-3.0.4 && tar xvzf memcached-3.0.4.tgz && cd memcached-3.0.4 && phpize && ./configure --enable-memcached-igbinary && make && make install | ||
RUN echo "extension=memcached.so" >> /etc/php/7.4/mods-available/memcached.ini | ||
RUN ln -s /etc/php/7.4/mods-available/memcached.ini /etc/php/7.4/cli/conf.d/20-memcached.ini | ||
RUN ln -s /etc/php/7.4/mods-available/memcached.ini /etc/php/7.4/apache2/conf.d/20-memcached.ini | ||
|
||
|
||
#RUN echo "extension=memcached.so" >> /etc/php/7.4/mods-available/memcached.ini | ||
#RUN ln -s /etc/php/7.4/mods-available/memcached.ini /etc/php/7.4/cli/conf.d/20-memcached.ini | ||
#RUN ln -s /etc/php/7.4/mods-available/memcached.ini /etc/php/7.4/apache2/conf.d/20-memcached.ini | ||
|
||
# Setup awscli | ||
#RUN apt-get -y install python3 python3-pip npm rinetd | ||
#RUN pip install awscli | ||
RUN apt-get install -y awscli | ||
#RUN apt-get install -y awscli | ||
#RUN apt-get install -y rinetd | ||
|
||
|
||
# HTTP_Request2 | ||
#RUN pear install HTTP_Request2 | ||
#RUN apt-get install -y php-http-request2 | ||
RUN apt-get install -y php-http | ||
#RUN apt-get install -y php-http | ||
|
||
# Setup Apache2 | ||
RUN a2enmod rewrite | ||
#RUN a2enmod rewrite | ||
|
||
# Enable the new virtualhost | ||
COPY zotero.conf /etc/apache2/sites-available/ | ||
RUN a2dissite 000-default | ||
RUN a2ensite zotero | ||
#RUN a2dissite 000-default | ||
#RUN a2ensite zotero | ||
|
||
# Override gzip configuration | ||
COPY gzip.conf /etc/apache2/conf-available/ | ||
RUN a2enconf gzip | ||
# | ||
|
||
|
||
# Install npm | ||
#RUN apt-get install -y npm | ||
|
||
# Install rsyslog | ||
RUN apt-get install -y rsyslog | ||
#RUN apt-get install -y rsyslog | ||
|
||
# Install rinetd | ||
RUN apt-get install -y rinetd | ||
#RUN apt-get install -y rinetd | ||
|
||
#RUN apt-get install -y sudo | ||
|
||
RUN apt-get purge --auto-remove -y nodejs | ||
#RUN apt-get update && apt-get install g++ | ||
RUN apt-get update && apt-get install ncdu -y | ||
#RUN apt-get install libc6-dev unzip -y | ||
RUN apt-get install php7.4-redis -y | ||
|
||
#Install Nodejs | ||
RUN rm -rf /var/lib/apt/lists/* | ||
RUN rm -rf /etc/apt/sources.list.d/* | ||
RUN apt-get update | ||
#RUN wget https://deb.nodesource.com/setup_19.x && bash -x setup_19.x | ||
RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash - | ||
RUN apt-get install -y nodejs | ||
RUN npm install -g n | ||
#RUN n 16.20.0 | ||
RUN n 6.17.1 | ||
#RUN npm install -g [email protected] | ||
#RUN apt-get purge --auto-remove -y nodejs | ||
#RUN rm -rf /var/lib/apt/lists/* | ||
#RUN rm -rf /etc/apt/sources.list.d/* | ||
#RUN apt-get update | ||
##RUN wget https://deb.nodesource.com/setup_19.x && bash -x setup_19.x | ||
#RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash - | ||
#RUN apt-get install -y nodejs | ||
|
||
#RUN apt-get install -y libc6 | ||
|
||
RUN apt-get install -y libc6 | ||
#Install Yarn | ||
#RUN npm install --global yarn | ||
|
||
|
||
#Debug Rsyslog | ||
#RUN sed -i '/^DAEMON=\/usr\/sbin\/rsyslogd/a RSYSLOGD_OPTIONS="-dn"' /etc/init.d/rsyslog | ||
|
||
# AWS local credentials | ||
RUN mkdir ~/.aws && bash -c 'echo -e "[default]\nregion = us-east-1" > ~/.aws/config' && bash -c 'echo -e "[default]\naws_access_key_id = zotero\naws_secret_access_key = zoterodocker" > ~/.aws/credentials' | ||
|
||
|
@@ -104,6 +157,18 @@ RUN chown 33:33 /var/log/apache2 | |
# Rinetd | ||
RUN echo "0.0.0.0 8082 minio 9000" >> /etc/rinetd.conf | ||
|
||
#Install uws | ||
#WORKDIR /var/ | ||
|
||
#ENV APACHE_RUN_USER=${RUN_USER} | ||
#ENV APACHE_RUN_GROUP=${RUN_GROUP} | ||
ENV APACHE_RUN_USER=www-data | ||
ENV APACHE_RUN_GROUP=www-data | ||
ENV APACHE_LOCK_DIR=/var/lock/apache2 | ||
ENV APACHE_PID_FILE=/var/run/apache2/apache2.pid | ||
ENV APACHE_RUN_DIR=/var/run/apache2 | ||
ENV APACHE_LOG_DIR=/var/log/apache2 | ||
|
||
# Expose and entrypoint | ||
COPY entrypoint.sh / | ||
RUN chmod +x /entrypoint.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
|
||
sudo docker-compose up | ||
sudo docker compose up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM minio/minio | ||
FROM minio/minio:RELEASE.2018-10-25T01-27-03Z | ||
|
||
COPY minio /usr/bin/ | ||
RUN chmod +x /usr/bin/minio |