Skip to content

Commit fe191dc

Browse files
committed
SDK-1039: Allow composer install to work without Docker
1 parent 549162d commit fe191dc

File tree

3 files changed

+25
-17
lines changed

3 files changed

+25
-17
lines changed

examples/composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,10 @@
1212
"symlink": true
1313
}
1414
}
15-
]
15+
],
16+
"scripts": {
17+
"pre-install-cmd": "@copy-sdk",
18+
"pre-update-cmd": "@copy-sdk",
19+
"copy-sdk": "rm -fr ./sdk && mkdir ./sdk && cd ../ && cp -r `ls -A | grep -v 'examples'` ./examples/sdk/ && cd -"
20+
}
1621
}

examples/composer.lock

Lines changed: 17 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/docker-compose.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,16 @@ services:
77
- "4002:443"
88
volumes:
99
- ./:/usr/share/nginx/html
10-
- ../:/usr/share/nginx/html/sdk
1110
links:
1211
- php
1312
php:
1413
image: php:7-fpm-alpine
1514
volumes:
1615
- ./:/usr/share/nginx/html
17-
- ../:/usr/share/nginx/html/sdk
1816

1917
composer:
2018
image: composer
2119
volumes:
22-
- ./:/usr/share/nginx/html
23-
- ../:/usr/share/nginx/html/sdk
24-
working_dir: /usr/share/nginx/html
20+
- ../:/usr/share/yoti-php-sdk
21+
working_dir: /usr/share/yoti-php-sdk/examples
2522
command: update

0 commit comments

Comments
 (0)