Skip to content

Commit 62aa981

Browse files
committed
move PHP dependencies inside docker container
1 parent c9ee0bb commit 62aa981

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

Diff for: composer.json

-8
This file was deleted.

Diff for: composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./tools/docker-dev/web/composer.json

Diff for: tools/docker-dev/docker-compose.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: "3.9"
21
services:
32
identity:
43
hostname: identity
@@ -12,6 +11,8 @@ services:
1211
- "8000:80"
1312
volumes:
1413
- ../../:/var/www/unity-web-portal
14+
# anonymous volume for PHP dependencies
15+
- /var/www/unity-web-portal/vendor
1516
sql:
1617
hostname: sql
1718
build: sql
@@ -27,4 +28,4 @@ services:
2728
image: redis
2829
networks:
2930
default:
30-
name: unity_dev_network
31+
name: unity_dev_network

Diff for: tools/docker-dev/web/Dockerfile

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
FROM ubuntu:24.04
22

3-
# Web Server Setup
43
ARG DEBIAN_FRONTEND=noninteractive
54
RUN apt-get update && apt-get install -y \
65
apache2 \
@@ -11,7 +10,14 @@ RUN apt-get update && apt-get install -y \
1110
php-ldap \
1211
php-pdo \
1312
php-redis \
14-
php-cli
13+
php-cli \
14+
composer
15+
16+
# PHP dependencies
17+
COPY composer.json /var/www/unity-web-portal/composer.json
18+
RUN cd /var/www/unity-web-portal && composer update
19+
20+
# Web Server Setup
1521
COPY htpasswd /etc/apache2/.htpasswd
1622
COPY unity-apache.conf /etc/apache2/sites-available/unity.conf
1723
RUN a2dissite 000-default

Diff for: tools/docker-dev/web/composer.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"require": {
3+
"psr/log": "1.1.4",
4+
"phpseclib/phpseclib": "3.0.16",
5+
"phpmailer/phpmailer": "6.6.4",
6+
"hakasapl/phpopenldaper": "1.0.5"
7+
}
8+
}

0 commit comments

Comments
 (0)