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
15 changes: 15 additions & 0 deletions Dockerfile.octane-sandbox
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM php:8.3-cli

ENV COMPOSER_ALLOW_SUPERUSER=1 \
COMPOSER_HOME=/tmp/composer

WORKDIR /app

RUN apt-get update \
&& apt-get install -y --no-install-recommends $PHPIZE_DEPS git unzip libzip-dev libbz2-dev libxml2-dev libonig-dev pkg-config \
&& docker-php-ext-install pcntl bz2 dom mbstring xml xmlwriter zip \
&& rm -rf /var/lib/apt/lists/*

COPY --from=composer:2 /usr/bin/composer /usr/bin/composer

CMD ["composer", "test"]
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
docker-build:
docker build -t l42x .
./execute-octane-sandbox build

bash:
docker run --rm --volume "${PWD}:/usr/src/myapp" -w /usr/src/myapp -it l42x bash
./execute-octane-sandbox bash

composer-install:
docker run --rm --volume "${PWD}:/usr/src/myapp" -w /usr/src/myapp -it l42x composer install
./execute-octane-sandbox composer install

composer-test:
docker run --rm --volume ${PWD}:/usr/src/myapp -w /usr/src/myapp -it l42x composer test
./execute-octane-sandbox composer-test
Loading
Loading