Code Monkey home page Code Monkey logo

little-sail's Introduction

⛵ Little Sail

Total Downloads Latest Stable Version License

Little Sail is just an extension for Laravel Sail. Currently, the Laravel Sail PHP image is over ~666mb. This is mostly because it uses the Ubuntu image. For those who would prefer smaller images, I created this extension.

The image generated by this package is around ~284mb. Thats around a 57% decrease in size.

Screenshot 2021-02-28 at 16 14 43

It is a similar image with the same extensions but built using a Linux Alpine base.

Installation

To install, use composer to pull the package:

composer require neo/little-sail --dev

Next, update your projects docker-compose.yml file as follows:

version: '3'
services:
    api:
        build:
            context: ./vendor/laravel/sail/runtimes/8.1             # Replace this
            context: ./vendor/neo/little-sail/runtimes/8.1-alpine   # With this (or 8.0 or 7.4 if thats what you want)
# ...

If you already had Laravel Sail running, you will have to stop the containers, and then delete the sail-8.0/app image and then run sail up again (you can also just change the image name in your docker-compose.yml file).

You can use the nifty command included with the package:

$ ./vendor/bin/dock

Then when the command is done running, you can bring Laravel Sail up again.

Customising Little Sail runtimes

If you want, you can update the Little Sail runtimes to work specifically for you. Run:

$ php artisan little-sail:publish # or sail artisan little-sail:publish

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.