Skip to content

Commit f890819

Browse files
committed
Updated all php cli and fpm docker file
1 parent c9deb69 commit f890819

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+32370
-59214
lines changed

.env.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ NGINX_PORT=8080
1111
###> php configuration ###
1212

1313
# php version
14-
# ie: 7.1, 7.2, 7.3, 7.4, 8.0 and 8.1
14+
# ie: 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0 and 8.1
1515
PHP_VERSION=8.1
1616

1717
# php fpm expose port

README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A development docker for every symfony project
77

88
- Build for symfony4, symfony5 and has cli tools
99
- Bundle of `fpm`, `cli`, `nginx`, `mariadb`, `phpmyadmin`, `mongodb`, `redis` and `emailcatcher` containers
10-
- Latest php8.1, php8.0, php7.4, php7.3, php7.2 and php7.1 supported
10+
- Latest 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0 and 8.1 supported
1111
- Latest database mariadb10, mongodb4 and other versions supported
1212
- Latest node17.x, node16.x, node14.x, node13.x, node12.x, ... supported
1313
- Included symfony, composer, node cli and yarn cli
@@ -98,12 +98,3 @@ Simply add remote docker-compose php cli interpreter (exec with docker-compose.y
9898
## Remote container extension + vscode
9999

100100
With vscode's remote container extension, we can simply connect into cli container.
101-
102-
103-
## For development usages
104-
105-
- Clone this repo and pull on update. ReadyMadeHost cli tool coming soon...
106-
107-
## For production usages
108-
109-
- Current docker setup is for development only. Planning for ReadyMadeHost coming soon...

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ services:
8181
# redis:
8282
# image: redis:alpine
8383

84-
mailcatcher:
85-
image: sj26/mailcatcher
86-
ports:
87-
- ${MAILCATCHER_PORT}:1080
84+
# mailcatcher:
85+
# image: sj26/mailcatcher
86+
# ports:
87+
# - ${MAILCATCHER_PORT}:1080

php5.5/cli/Dockerfile

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
FROM php:5.5-cli
2+
3+
LABEL maintainer="ReadyMadeHost http://readymadehost.com"
4+
5+
# Installing required packages
6+
RUN apt-get update
7+
RUN apt-get install --no-install-recommends -y procps \
8+
curl \
9+
git \
10+
vim \
11+
zip \
12+
unzip \
13+
wget
14+
RUN apt-get install --no-install-recommends -y mariadb-client
15+
16+
ARG NODE_VERSION
17+
ENV NODE_VERSION ${NODE_VERSION}
18+
19+
# Installing node
20+
RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION} | bash -
21+
RUN apt-get -y install nodejs
22+
23+
# Installing yarn using npm
24+
RUN npm install --global yarn
25+
26+
# Installing extensions
27+
RUN curl -L https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions \
28+
-o /usr/local/bin/install-php-extensions && chmod +x /usr/local/bin/install-php-extensions
29+
30+
# Installing extensions
31+
RUN install-php-extensions \
32+
pdo_mysql \
33+
intl \
34+
mbstring \
35+
zip \
36+
exif \
37+
pcntl \
38+
bcmath \
39+
opcache \
40+
gd \
41+
imagick \
42+
apcu \
43+
@composer
44+
45+
# Installing other extensions but enabled dynamically
46+
RUN IPE_DONT_ENABLE=1 install-php-extensions redis \
47+
mongodb \
48+
xdebug
49+
50+
# Updating php.ini
51+
ADD conf/php.ini /usr/local/etc/php/php.ini
52+
53+
# Manage project and add scripts
54+
RUN mkdir /var/www/project
55+
ADD manage-project-permission.sh /root/manage-project-permission.sh
56+
RUN chmod +x /root/manage-project-permission.sh
57+
RUN echo 'alias mpp="/root/manage-project-permission.sh"' >> /root/.bashrc
58+
RUN /root/manage-project-permission.sh
59+
60+
ARG PHP_ENABLE_REDIS
61+
ENV PHP_ENABLE_REDIS ${PHP_ENABLE_REDIS}
62+
ARG PHP_ENABLE_XDEBUG
63+
ENV PHP_ENABLE_XDEBUG ${PHP_ENABLE_XDEBUG}
64+
ARG PHP_ENABLE_MONGODB
65+
ENV PHP_ENABLE_MONGODB ${PHP_ENABLE_MONGODB}
66+
67+
ADD docker-entrypoint.sh /root/docker-entrypoint.sh
68+
RUN chmod +x /root/docker-entrypoint.sh
69+
70+
CMD ["/root/docker-entrypoint.sh", "bash"]

0 commit comments

Comments
 (0)