Skip to content

Commit adf8c1d

Browse files
authored
Update dev Docker container (#203)
* Update dev Docker container * Remove useless data
1 parent 80d925e commit adf8c1d

File tree

7 files changed

+5
-28
lines changed

7 files changed

+5
-28
lines changed

.docker/Dockerfile.local

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM php:8.1-cli-alpine
1+
FROM php:8.4-cli-alpine
22
ENV XDG_CACHE_HOME=/tmp/.cache
33
ENV COMPOSER_CACHE_DIR=${XDG_CACHE_HOME}/composer
44
# posible could install cache directory here
55
RUN --mount=type=bind,from=mlocati/php-extension-installer:1.5,source=/usr/bin/install-php-extensions,target=/usr/local/bin/install-php-extensions \
6-
install-php-extensions zip xdebug-stable
6+
install-php-extensions zip igbinary xdebug-stable
77
RUN addgroup -S app && adduser -S app -G app
88
RUN mkdir -p /app && chown -R app /app && mkdir -p /tmp && chown -R app /tmp
99
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
init:
2-
docker compose run cli composer i
2+
docker compose build && docker compose run --rm cli composer install
33
test:
4-
docker compose run cli vendor/bin/phpunit
4+
docker compose run --rm --remove-orphans cli vendor/bin/phpunit -v
55
shell:
6-
docker compose run cli sh
6+
docker compose run --rm cli sh

docker-compose.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: "3.9"
21
services:
32
cli:
43
build:

tests/CacheEntryTest.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -133,28 +133,6 @@ public function testSerializationShouldNotMutateCacheEntry()
133133
$this->assertEquals($cacheEntry, $originalCacheEntry);
134134
}
135135

136-
/**
137-
* @dataProvider versionsToTestProvider
138-
*/
139-
public function testPreviousUnserialize($version)
140-
{
141-
if (version_compare(PHP_VERSION, '7.4.0') < 0) {
142-
$this->markTestSkipped('Compat with previous version is not available with \Serializable interface');
143-
}
144-
145-
$cacheEntry = unserialize(file_get_contents(__DIR__."/data/{$version}_serialized_cache_entry"));
146-
147-
self::assertInstanceOf(CacheEntry::class, $cacheEntry);
148-
}
149-
150-
public function versionsToTestProvider()
151-
{
152-
return [
153-
['v4.0.0'],
154-
['v4.1.0'],
155-
['v4.1.1'],
156-
];
157-
}
158136

159137
private function setResponseHeader($name, $value)
160138
{
-2.7 KB
Binary file not shown.
-2.7 KB
Binary file not shown.
-2.67 KB
Binary file not shown.

0 commit comments

Comments
 (0)