Skip to content

Commit 5e8b831

Browse files
committed
Initial draft of ability to develop and test the library using Docker.
1 parent f5033bd commit 5e8b831

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM php:5.6-cli
2+
3+
RUN mkdir /opt/api-php-lib
4+
RUN docker-php-ext-install pcntl \
5+
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

docker-compose.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: '2'
2+
services:
3+
plesk:
4+
image: plesk/plesk:17.0
5+
logging:
6+
driver: none
7+
tests:
8+
build: .
9+
environment:
10+
REMOTE_URL: https://plesk:8443
11+
REMOTE_PASSWORD: changeme
12+
command: bash -c "cd /opt/api-php-lib && composer install && composer test"
13+
depends_on:
14+
- plesk
15+
links:
16+
- plesk
17+
volumes:
18+
- .:/opt/api-php-lib
19+

0 commit comments

Comments
 (0)