Giter Site home page Giter Site logo

jimmyaldape / dockerizer Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 40 KB

Scaffolds a new project based on Laravel or Statamic and prepares project for development, adding support for Docker.

License: MIT License

JavaScript 86.47% Dockerfile 13.53%
laravel laravel-docker laravel-development statamic

dockerizer's Introduction

dockerizer

Scaffolds a new project based on Laravel or Statamic and prepares project for development, adding support for Docker.

Prerequisites

  • Node - Node w/ Package Manager
  • Docker - Image container

Get Started

To set up your new laravel project, run:

$ npm install
$ npm run start

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

dockerizer's People

Watchers

 avatar  avatar

dockerizer's Issues

Use node to run script files

Description

Take advantage of node for running commands from the command line

What should happen

Users should be able to still run

npm run start

from the command line

Cannot remote into container

Description

It seems that once the laravel development environment is setup, the consequent npm scripts fail to remote into container.

Possible Solution

I suggest changing the image used to build the containers. I also propose that naming the scripts called in package.json be formalized to the intent purpose, e.g "npm run docker:on"

FEATURE: Add Statamic project generator

Is your feature request related to a problem? Please describe.
In addition to Laravel, Statamic is a great alternative framework

Describe the solution you'd like
I'd like to be able to pick an option from a prompt and let it do its thing. Laravel can still be the default.

Describe alternatives you've considered
Create a separate project altogether

Additional context
https://www.statamic.com

Add docker support

add docker support to project, scaffolding out required files and folders

Error running index.js

Reproduction Steps:

  • clone repository
  • run npm install
  • run node .

Error Message

    throw new ERR_INVALID_CALLBACK(cb);
    ^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received { recursive: true }
    at makeCallback (fs.js:150:11)
    at Object.rmdir (fs.js:682:14)
    at Object.<anonymous> (/Users/jimmy/dev/temp/xyd/index.js:21:4)
    at Module._compile (internal/modules/cjs/loader.js:868:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:879:10)
    at Module.load (internal/modules/cjs/loader.js:731:32)
    at Function.Module._load (internal/modules/cjs/loader.js:644:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:931:10)
    at internal/main/run_main_module.js:17:11

Synchronize file copy and running of commands

Problem

Although the initial files and commands work correctly, they show up out of order on the command line.

Suggested Solution

Use the fs sync versions of functions:

fs.rmdirSync fs.copyFileSync

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.