Skip to content

Commit

Permalink
Merge pull request #18 from eugene-davis/master
Browse files Browse the repository at this point in the history
Fix Log Permission Issue
  • Loading branch information
nagimov authored Apr 6, 2023
2 parents 80b526b + 1f848a6 commit f18ab52
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: login to ${{ env.REGISTRY }}
uses: docker/login-action@v2
Expand All @@ -41,7 +41,7 @@ jobs:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: .
push: true
Expand Down
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ RUN chmod +x /tmp/pre-env.sh && \
chmod 644 /etc/ssl/certs/cacert.pem && \
chown -R www-data:www-data ${PHP_INI_DIR} && \
chown -R www-data:www-data /var/run/apache2 && \
echo "Listen 8080" > /etc/apache2/ports.conf && \
chmod 755 ${APACHE_LOG_DIR} && \
chown -R www-data:www-data ${APACHE_LOG_DIR} && \
cp ${PHP_INI_DIR}/php.ini-production ${PHP_INI_DIR}/php.ini && \
echo 'date.timezone = "AGENDAV_TIMEZONE"' >> ${PHP_INI_DIR}/php.ini && \
echo 'magic_quotes_runtime = false' >> ${PHP_INI_DIR}/php.ini && \
Expand All @@ -66,12 +67,14 @@ RUN chmod +x /tmp/pre-env.sh && \
a2ensite agendav.conf && \
a2dissite 000-default && \
a2enmod rewrite && \
echo "Listen 127.0.0.1:8080" > /etc/apache2/ports.conf && \
service apache2 restart && \
service apache2 stop
service apache2 stop && \
echo "Listen 8080" > /etc/apache2/ports.conf

RUN ln -sf /dev/stdout /var/log/apache2/access.log \
&& ln -sf /dev/stderr /var/log/apache2/error.log \
&& ln -sf /dev/stderr /var/log/apache2/davi-error.log
RUN ln -sf /dev/stdout ${APACHE_LOG_DIR}/access.log \
&& ln -sf /dev/stderr ${APACHE_LOG_DIR}/error.log \
&& ln -sf /dev/stderr ${APACHE_LOG_DIR}/davi-error.log

EXPOSE 8080

Expand Down

0 comments on commit f18ab52

Please sign in to comment.