mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
kubernetes #comment add composer in the fpm/worker images
This commit is contained in:
@@ -141,6 +141,11 @@ RUN apt-get update \
|
|||||||
&& docker-php-source delete \
|
&& docker-php-source delete \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
|
||||||
|
&& php -r "if (hash_file('sha384', 'composer-setup.php') === 'a5c698ffe4b8e849a443b120cd5ba38043260d5c4023dbf93e1558871f1f07f58274fc6f4c93bcfd858c6bd0775cd8d1') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
|
||||||
|
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
|
||||||
|
&& php -r "unlink('composer-setup.php');"
|
||||||
|
|
||||||
RUN mkdir /entrypoint /var/alchemy \
|
RUN mkdir /entrypoint /var/alchemy \
|
||||||
&& useradd -u 1000 app \
|
&& useradd -u 1000 app \
|
||||||
&& mkdir -p /home/app/.composer \
|
&& mkdir -p /home/app/.composer \
|
||||||
|
14
README.md
14
README.md
@@ -63,14 +63,12 @@ The docker distribution come with 3 differents containers :
|
|||||||
|
|
||||||
## How to build
|
## How to build
|
||||||
|
|
||||||
The three images can be built respectively with these commands :
|
You can build all the images with the following command at the root directory :
|
||||||
|
|
||||||
# nginx server
|
./build <TAG>
|
||||||
docker build --target phraseanet-nginx -t local/phraseanet-nginx .
|
|
||||||
|
|
||||||
# php-fpm application
|
It will build and tag the following images :
|
||||||
docker build --target phraseanet-fpm -t local/phraseanet-fpm .
|
|
||||||
|
|
||||||
# worker
|
|
||||||
docker build --target phraseanet-worker -t local/phraseanet-worker .
|
|
||||||
|
|
||||||
|
local/phraseanet-worker:<TAG>
|
||||||
|
local/phraseanet-fpm:<TAG>
|
||||||
|
local/phraseanet-nginx:<TAG>
|
||||||
|
11
build.sh
Executable file
11
build.sh
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# nginx server
|
||||||
|
docker build --target phraseanet-nginx -t local/phraseanet-nginx:$1 .
|
||||||
|
|
||||||
|
# php-fpm application
|
||||||
|
docker build --target phraseanet-fpm -t local/phraseanet-fpm:$1 .
|
||||||
|
|
||||||
|
# worker
|
||||||
|
docker build --target phraseanet-worker -t local/phraseanet-worker:$1 .
|
||||||
|
|
Reference in New Issue
Block a user