joeniland/laravel-ci

By joeniland

Updated 8 months ago

Laravel CI environment for PHP 8.1+ based on the official Ubuntu image

Image
Integration & delivery
Developer tools
0

8.6K

joeniland/laravel-ci repository overview

docker-laravel-ci

Laravel CI environment based on the official Ubuntu image.

Based on https://github.com/joe-niland/docker-phusion-laravel-build

Variants

  • $PHP_VERSION
    • PHP
    • Composer
    • NPM
    • Node-sass
    • awscli
    • sentry-cli
  • $PHP_VERSION-docker
    • Above plus:
      • docker-cli
      • docker-compose
      • dockerd

Building

docker build -t joeniland/laravel-ci .

Testing

Shell

docker run --rm -it --mount src=$(pwd),target=/app,type=bind --workdir /app joeniland/laravel-ci bash

For use with docker:

docker run --privileged --rm -it --mount src=$(pwd),target=/app,type=bind -v /var/run/docker.sock:/var/run/docker.sock -v /cache --workdir /app joeniland/laravel-ci docker run hello-world

Run unit tests

To run Unit tests with phpunit:

cd /dev/my-project
docker run -it --mount src=`pwd`,target=/app,type=bind joeniland/laravel-ci phpunit

... where /dev/my-project is your project root.

Tag summary

Content type

Image

Digest

sha256:869a1c661

Size

366.1 MB

Last updated

8 months ago

docker pull joeniland/laravel-ci:7.4-latest