Merge pull request #89 from checkmyhttps/develop · checkmyhttps/checkmyhttps@61a419f · GitHub
Skip to content

Commit 61a419f

Browse files
authored
Merge pull request #89 from checkmyhttps/develop
Develop
2 parents 385f716 + e4a11d5 commit 61a419f

8 files changed

Lines changed: 28 additions & 101 deletions

File tree

server-php/CHANGELOG.md

Lines changed: 4 additions & 0 deletions

server-php/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ RUN chown www-data:www-data /var/tmp/cmh_cache/
1616

1717
COPY ./www /var/www/cmh_api/
1818

19-
COPY ./vendor-static.tar.gz /tmp/
20-
RUN tar -xzf /tmp/vendor-static.tar.gz -C /var/www/cmh_api/ && rm -f /tmp/vendor.tar.gz
19+
RUN apt-get update && apt-get install -y \
20+
libicu-dev \
21+
&& docker-php-ext-install intl

server-php/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
**REQUIRMENTS**
88

9-
* You need an HTTPS server with PHP and php-filter module
9+
* You need an HTTPS server with PHP, the PHP class Normalizer (php-intl) and php-filter module
1010
* You also need a TMPFS partition for the cache. Here is the process (Linux):
1111
1. Add your administrator user to the group of your server. Example with an Apache server: `[root]# usermod -a -G apache administrator`
1212
2. Change the gid of the administrator (valid during this session only): `[administrator]$ newgrp apache`
@@ -31,8 +31,7 @@ The cache is enabled by default, but you can turn it off by setting the variable
3131
**INSTALLATION**
3232

3333
1. Copy the content of the `www` folder to your webroot.
34-
2. Install dependencies with composer: `composer install` inside your webroot (else you can extract `vendor-static.tar.gz`).
35-
3. Then configure your clients to use your own check server.
34+
2. Then configure your clients to use your own check server.
3635

3736

3837
### Scripted installation

server-php/install.sh

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,4 @@ if [ -n "$TMPDIR" ]; then
5353
fi
5454

5555

56-
(
57-
58-
cd $OUT;
59-
COM=composer
60-
composer || {
61-
echo "installing composer"
62-
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
63-
php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
64-
php composer-setup.php
65-
php -r "unlink('composer-setup.php');"
66-
COM='php composer.phar'
67-
68-
}
69-
echo "Installing composer deps"
70-
$COM install
71-
)
72-
7356
echo "All done"

server-php/vendor-static.tar.gz

-74.1 KB
Binary file not shown.

server-php/www/api.php

Lines changed: 19 additions & 4 deletions

server-php/www/composer.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

server-php/www/composer.lock

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)