-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (39 loc) · 1.56 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM centos:7
ENV DRUPAL_VERSION=9.2.6
# Update image #
RUN yum -y update \
&& yum -y install epel-release yum-utils wget
RUN yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm \
&& yum-config-manager --disable remi-php54 \
&& yum-config-manager --enable remi-php74 \
&& yum install -y cronie git php php-opcache php-cli php-fpm php-mysqlnd \
php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-ldap \
php-xml php-pear php-bcmath patch php-json php-pecl-xdebug.x86_64 composer which vi mariadb unzip patch openldap openldap-clients openldap-devel
WORKDIR /etc/yum.repos.d
RUN wget https://repo.codeit.guru/codeit.el`rpm -q --qf "%{VERSION}" $(rpm -q --whatprovides redhat-release)`.repo
RUN yum -y install httpd
RUN yum -y update rsync
RUN yum -y install libgudev1
# Install drush using composer/cgr #
#RUN composer global require consolidation/cgr
ENV PATH="/local/drupal/site/vendor/drush/drush:$PATH"
#RUN cgr drush/drush:8.x
# Get Drupal #
RUN mkdir -p /local/drupal
WORKDIR /local/drupal
#RUN drush dl drupal-$DRUPAL_VERSION --drupal-project-rename="site"
# COPY main resouces over #
COPY resources/run.sh /usr/bin
COPY resources/000-default.conf /etc/httpd/conf.d
COPY resources/httpd.conf /etc/httpd/conf
COPY resources/settings.php /tmp
COPY resources/.htaccess /tmp
COPY resources/ldap.conf /etc/openldap
COPY resources/services.yml /tmp
COPY resources/newdatabase8.9.16.sql /tmp
COPY resources/php.ini /etc
RUN chmod 700 /usr/bin/run.sh
EXPOSE 80
ADD resources/.bashrc /root
WORKDIR /local/drupal
ENTRYPOINT run.sh