Skip to content

Commit a68ea0c

Browse files
committed
Update mock server
1 parent 2c0f7dd commit a68ea0c

File tree

5 files changed

+56
-63
lines changed

5 files changed

+56
-63
lines changed

mock-server/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ RUN composer install --ignore-platform-reqs --optimize-autoloader \
1414
--no-plugins --no-scripts --prefer-dist \
1515
`if [ "$TESTING" != "true" ]; then echo "--no-dev"; fi`
1616

17-
FROM phpswoole/swoole:4.8.7-php8.1-alpine as final
18-
RUN ["apk", "add", "docker"]
17+
FROM phpswoole/swoole:5.1.2-php8.2-alpine as final
18+
19+
RUN apk add docker
1920

2021
ENV _APP_REDIS_HOST=redis \
2122
_APP_REDIS_PORT=6379

mock-server/app/http.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@
4545
->set([
4646
'worker_num' => $workerNumber,
4747
'open_http2_protocol' => true,
48-
// 'document_root' => __DIR__.'/../public',
49-
// 'enable_static_handler' => true,
5048
'http_compression' => true,
5149
'http_compression_level' => 6,
5250
'package_max_length' => $payloadSize,

mock-server/composer.json

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,16 @@
66
"Utopia\\MockServer\\": "src/"
77
}
88
},
9-
"authors": [
10-
{
11-
"name": "Bradley Schofield",
12-
"email": "[email protected]"
13-
}
14-
],
159
"require": {
16-
"utopia-php/framework": "^0.31.0",
17-
"utopia-php/database": "^0.44.2",
18-
"utopia-php/cli": "^0.16.0",
19-
"utopia-php/swoole": "^0.5.0"
10+
"utopia-php/framework": "0.33.*",
11+
"utopia-php/database": "0.48.*",
12+
"utopia-php/cli": "0.16.*",
13+
"utopia-php/swoole": "0.8.*"
2014
},
2115
"require-dev": {
22-
"swoole/ide-helper": "^5.1"
16+
"swoole/ide-helper": "5.1.2"
17+
},
18+
"platform": {
19+
"php": "8.2"
2320
}
2421
}

mock-server/composer.lock

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

mock-server/docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ services:
2222

2323
networks:
2424
mockapi:
25-
name: mockapi
2625

2726
volumes:
2827
mockapi-cache:

0 commit comments

Comments
 (0)