Merge pull request #86 from OCSInventory-NG/updatedevandnightly

Update dev and nightly with @wiltonsr contributions
This commit is contained in:
Charlène Auger 2022-06-24 16:29:11 +02:00 committed by GitHub
commit e4dc443b80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 8 deletions

View File

@ -51,7 +51,8 @@ RUN apt-get update && apt-get install -y \
git \
vim \
nano \
composer
composer \
php-ldap
COPY conf/* /tmp/
COPY ./scripts/docker-entrypoint.sh /usr/bin/docker-entrypoint.sh

View File

@ -45,7 +45,8 @@ RUN apt-get update && apt-get install -y \
php-curl \
php-xml \
php-zip \
php-gd
php-gd \
php-ldap
RUN wget http://download.ocsinventory-ng.org/nightly/latest.tar.gz -P /tmp && \
tar xzf /tmp/latest.tar.gz -C /tmp;
@ -58,12 +59,8 @@ RUN cd /tmp/OCSNG_UNIX_SERVER/Apache/ && \
WORKDIR /etc/apache2/conf-available
# Redirect Apache2 Logs to stdout e stderr
# https://github.com/docker-library/httpd/blob/5f92ab18146f41d1d324e99c5e197bdeda65d063/2.4/Dockerfile#L202
RUN sed -ri \
-e 's!^(\s*CustomLog)\s+\S+!\1 /proc/self/fd/1!g' \
-e 's!^(\s*ErrorLog)\s+\S+!\1 /proc/self/fd/2!g' \
-e 's!^(\s*TransferLog)\s+\S+!\1 /proc/self/fd/1!g' \
"/etc/apache2/apache2.conf"
RUN ln -sf /proc/self/fd/1 /var/log/apache2/access.log && \
ln -sf /proc/self/fd/2 /var/log/apache2/error.log
COPY conf/ /tmp/conf
COPY ./scripts/docker-entrypoint.sh /usr/bin/docker-entrypoint.sh