Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
pipeline:
composer-install:
image: fpfis/php71-build
# Run commands from this image
commands:
- composer install --ansi

# Declare another step
lint-code:
image: fpfis/php71-build
commands:
- php -l index.php

run-code:
image: fpfis/php71-build
commands:
- php index.php
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM fpfis/php71-dev

RUN mkdir /app
WORKDIR /app
ADD . /app

RUN composer install

ENTRYPOINT [ "php", "/app/index.php" ]
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"require": {
"symfony/yaml" : "*",
"symfony/yaml" : "*"
}
}
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '2'
services:

web:
image: fpfis/php71-dev
working_dir: /var/www/html
ports:
- 8080:8080
volumes:
- .:/var/www/html
environment:
COMPOSER_MEMORY_LIMIT: "2G"
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

$array = array(
'foo' => 'bar',
'bar' => array('foo' => 'bar', 'bar' => 'baz' => 'test'),
'bar' => array('foo' => 'bar', 'baz' => 'test'),
);

echo Yaml::dump($array);