Coder Social home page Coder Social logo

docker-php73's Introduction

docker-php73

What is this?

This is a custom build based on PHP 7.3's docker image, with changes to make Laravel back-end testing easily possible.

Where can I find it?

You can find the image on Docker Hub here: https://hub.docker.com/r/nicoverbruggen/php73.

GitLab CI

For example, if you are running GitLab, you can use .gitlab-ci on your custom GitLab instance:

image: nicoverbruggen/php73:latest

cache:
  paths:
  - vendor/
  - node_modules/

tests:
  script:
  - curl -sS https://getcomposer.org/installer | php
  - php composer.phar install
  - yarn install
  - yarn run dev
  - vendor/bin/phpunit -v --configuration phpunit.ci.xml --coverage-text --colors=never
  after_script:
  - cat storage/logs/laravel.log 2>/dev/null

This will allow automatic tests of your application to occur.

A few notes:

  • Front-end testing w/ Laravel Dusk is not supported in this version.
  • This container ships with npm and yarn.

How can I build this myself?

Use the Dockerfile, customize it as desired and build it!

Of course, you must replace nicoverbruggen/php73 with something else if you want to publish your customized version yourself.

docker build -t nicoverbruggen/php73 . && docker push nicoverbruggen/php73

If you want to tag the current version (let's say... 1.0) based on the latest version you just pushed:

docker image tag nicoverbruggen/php73:latest nicoverbruggen/php73:1.0
docker push nicoverbruggen/php73:1.0

Anyone can run it afterwards:

docker run nicoverbruggen/php73

You can also attach to the container w/ bash:

docker run -i -t nicoverbruggen/php73 /bin/bash

docker-php73's People

Contributors

diveinteractive avatar nicoverbruggen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.