-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from silinternational/release/5.0.0
Release 5.0.0 - Externally scheduled sync
- Loading branch information
Showing
29 changed files
with
439 additions
and
998 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,25 +1,10 @@ | ||
FROM silintl/php8:8.1 | ||
LABEL maintainer="[email protected]" | ||
|
||
ENV REFRESHED_AT 2020-06-10 | ||
|
||
# Install cron | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
cron \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
ENV REFRESHED_AT 2023-11-09 | ||
|
||
RUN mkdir -p /data | ||
|
||
# Copy in cron configuration | ||
COPY dockerbuild/idsync-cron /etc/cron.d/idsync-cron | ||
RUN chmod 0644 /etc/cron.d/idsync-cron | ||
|
||
# get s3-expand | ||
RUN curl https://raw.githubusercontent.com/silinternational/s3-expand/1.5/s3-expand -o /usr/local/bin/s3-expand | ||
RUN chmod a+x /usr/local/bin/s3-expand | ||
|
||
WORKDIR /data | ||
|
||
# Install/cleanup composer dependencies | ||
|
@@ -34,11 +19,4 @@ COPY application/ /data/ | |
RUN chown -R www-data:www-data \ | ||
console/runtime/ | ||
|
||
COPY dockerbuild/vhost.conf /etc/apache2/sites-enabled/ | ||
|
||
# ErrorLog inside a VirtualHost block is ineffective for unknown reasons | ||
RUN sed -i -E 's@ErrorLog .*@ErrorLog /proc/self/fd/2@i' /etc/apache2/apache2.conf | ||
|
||
EXPOSE 80 | ||
ENTRYPOINT ["/usr/local/bin/s3-expand"] | ||
CMD ["/data/run.sh"] | ||
CMD ["/data/yii", "batch/full"] |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,7 +1,6 @@ | ||
<?php | ||
|
||
Yii::setAlias('common', dirname(__DIR__)); | ||
Yii::setAlias('frontend', dirname(dirname(__DIR__)) . '/frontend'); | ||
Yii::setAlias('backend', dirname(dirname(__DIR__)) . '/backend'); | ||
Yii::setAlias('console', dirname(dirname(__DIR__)) . '/console'); | ||
Yii::setAlias('@tests', dirname(dirname(__DIR__)) . '/tests'); |
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
Oops, something went wrong.