Skip to content
Draft
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
7 changes: 7 additions & 0 deletions box.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"main": "bin/cli.php",
"output": "build/report-forwarder.phar",
"directories": [
"src"
]
}
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ DIR="$(realpath "$(dirname "${BASH_SOURCE[0]}")")"
cd "$DIR"

docker build -t aws-execfwd-build -f build.dockerfile .
docker run --rm -it -e COMPOSER_PROCESS_TIMEOUT=0 -w $PWD -v $PWD:$PWD aws-execfwd-build install
docker run --rm -it -e COMPOSER_PROCESS_TIMEOUT=0 -w $PWD -v $PWD:$PWD aws-execfwd-build build
docker run --rm -it -e COMPOSER_PROCESS_TIMEOUT=0 -w $PWD -v $PWD:$PWD aws-execfwd-build composer update
docker run --rm -it -e COMPOSER_HOME=/tmp/composer_home -e COMPOSER_PROCESS_TIMEOUT=0 -w $PWD -v $PWD:$PWD aws-execfwd-build /bin/sh -c "composer global require macfja/phar-builder && php -d phar.readonly=0 /tmp/composer_home/vendor/bin/phar-builder package"
20 changes: 8 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,24 @@
}
},
"require": {
"php": "^7 || ^8",
"aws/aws-sdk-php": "^3.36",
"symfony/console": "^4",
"psr/log": "^3"
},
"require-dev": {
"macfja/phar-builder": "^0.2.8"
},
"scripts": {
"build": "php -d phar.readonly=0 vendor/bin/phar-builder package composer.json"
"php": "^8.1",
"aws/aws-sdk-php": "^3.0",
"symfony/console": "^7.0",
"psr/log": "^3.0"
},
"extra": {
"phar-builder": {
"compression": "GZip",
"name": "aws-excfwd.phar",
"output-dir": "build",
"entry-point": "./bin/cli.php",
"include": ["bin"],
"include": [
"bin"
],
"include-dev": false,
"skip-shebang": false,
"events": {
"command.package.start" : "git rev-parse --short HEAD > bin/version",
"command.package.start": "git rev-parse --short HEAD > bin/version",
"command.package.end": [
"rm bin/version",
"chmod +x build/aws-excfwd.phar",
Expand Down
Loading