Git Product home page Git Product logo

greek-steam's Introduction

Greek Steam

Production-ready PHP container image based on Debian, tailored for Laravel Vapor & Twill CMS

Features

  • Use Debian stable as base for environment parity (following Twelve-Factor App)
  • Use Docker's official PHP images with minor customizations
  • Be slim as much as possible
  • Be frequently updated using GitHub Actions

This project does not aim to:

  • Be used for development (see hydrofoil-php instead)
  • Be compatible with environments other than Laravel Vapor (may or may not work)
  • Be everything but the kitchen sink

Overview

This project aims to be used in production, as the configuration settings have been tweaked specifically for that purpose and for Laravel Vapor.

Tested and tuned to work with Twill CMS, leaving to you to bring only your application packages and be able to deploy seamless from your console with vapor deploy or your CI environment.

Please note that this image does not contain any development tools like Composer, NodeJS or Yarn, as those should be used before to generate the needed artifacts that will be integrated within the final image.

Requirements

You will need a working installation of Docker on your machine or the CI environment used when vapor deploy is invoked.

Usage

Update your vapor.yml configuration file indicating to use Docker runtime, like this example:

 name: vapor-laravel-app
 environments:
   production:
-    runtime: 'php-8.0:al2'
+    runtime: docker
     build:
       - 'composer install --no-dev'

Next, create a Dockerfile for that environment, following Vapor's conventions and naming the file production.Dockerfile:

FROM ghcr.io/luislavena/greek-steam:8.0

# Place application in Lambda application directory...
COPY . /var/task

With that in place, your next vapor deploy for that environment will use this configuration and deploy based on the new runtime selected.

Refer to Laravel Vapor's own documentation about Docker runtimes for details on using Docker and a local Dockerfile.

Contribution Policy

This project is open to code contributions for bug fixes only. Features carry a long-term maintenance burden so they will not be accepted at this time. Please submit an issue if you have a feature you'd like to request or discuss.

greek-steam's People

Contributors

luislavena 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.