Git Product home page Git Product logo

composer's Introduction

Chassis

Chassis is a virtual server for your WordPress site, built using Vagrant.

Chassis is basically a way to run WordPress (and related parts, such as PHP and nginx) without needing to worry about setting up anything. You can imagine it as MAMP/WAMP on steroids.

Installing & Documentation

Follow our quickstart instructions to get up and running right away!

We've got tonnes more documentation available at http://chassis.io/ to peruse through at your leisure.

FAQ

How is Chassis different from VVV?

Each Chassis install is self-contained. We do this to try and mirror the server that you will be deploying to.

Note that while you can't have multiple independent installs on the same Chassis box, we support both subdomain and subdirectory multisite out of the box.

Can you add X?

While we certainly can add any feature, consider first if it's better off as a Chassis extension. We try and keep Chassis as lightweight as possible, and extensions are a good way of adding features without weighing down Chassis itself.

composer's People

Contributors

bronsonquick avatar tdlm avatar

Watchers

 avatar  avatar

Forkers

isabella232

composer's Issues

Unknown resource type: 'install'

Apologies for not having the relevant details for below
I'll endeavor to get this information tomorrow and update here

  1. What operating system do you use?

??? (Possibly Windows, maybe Mac)

  1. What version of Vagrant are you running?

??? (I believe the latest, a fresh install)

  1. Are you using VirtualBox or VMWare and which version are you using?

??? (I'm guessing Virtual Box)

  1. Do you have a custom YAML file? If so, what does it contain?
    (Please paste in your chassis.local.yaml file)

A HM Project I work on

  1. Do you have any Chassis other extensions installed? If so, what are they?

The issue appears to be isolated to the Composer Chassis extension


Error: [vagrant] default: Error: Evaluation Error: Error while evaluating a Resource Statement, Unknown resource type: 'install' (file: /vagrant/extensions/composer/modules/composer/manifests/init.pp, line: 63, column: 4) on node lol.local

This was introduced in the 88c47f7 commit

[vagrant]     default: Get:45 http://archive.ubuntu.com/ubuntu bionic-backports/main i386 Packages [2,516 B]
[vagrant]     default: Get:46 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [2,512 B]
[vagrant]     default: Get:47 http://archive.ubuntu.com/ubuntu bionic-backports/main Translation-en [1,644 B]
[vagrant]     default: Get:48 http://archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages [4,024 B]
[vagrant]     default: Get:49 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [4,028 B]
[vagrant]     default: Get:50 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [1,856 B]
[vagrant]     default: Fetched 32.5 MB in 16s (2,030 kB/s)
[vagrant]     default: Reading package lists...
[vagrant]     default: Reading package lists...
[vagrant]     default: Building dependency tree...
[vagrant]     default: Reading state information...
[vagrant]     default: puppet is already the newest version (5.4.0-2ubuntu3).
[vagrant]     default: 0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
[vagrant] ==> default: Running provisioner: shell...
[vagrant]     default: Running: inline script
[vagrant]     default: Error: Evaluation Error: Error while evaluating a Resource Statement, Unknown resource type: 'install' (file: /vagrant/extensions/composer/modules/composer/manifests/init.pp, line: 63, column: 4) on node lol.local
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Open http://lol.local/wp-admin/ in your browser? [y/N]

Php dev package should require PHP fpm

I just noticed this while working on: Chassis/phpMyAdmin#8

Without this requirement a fresh provision will throw an error:

==> default: Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php5.6-dev' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: E: Unable to locate package php5.6-dev
==> default: E: Couldn't find any package by regex 'php5.6-dev'
==> default: Error: /Stage[main]/Composer/Package[php5.6-dev]/ensure: change from purged to latest failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php5.6-dev' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: E: Unable to locate package php5.6-dev
==> default: E: Couldn't find any package by regex 'php5.6-dev'
==> default: Notice: /Package[php-pear]: Dependency Package[php5.6-dev] has failures: true

Add the ability to select 1.x or 2.x

I've seen some issues with extensions requiring composer failing to install because they require Composer 1.x. We should add the ability to specify major versions.

Composer folder paths

As a developer, I should be able to specify one or more folder paths where I'd like to run composer install.

Add `--no-dev` flag

For a clients project we are having an issue with phpunit being lncluded in one of their composer dependencies and this is some of our code to fail.

For a quick fix we need to add in --no-dev to this extension for now and after that I will open a ticket to correctly implement --no-dev and also address --ignore-platform-reqs feedback #22 (comment) as well and I'll address this on Friday.

Add support for updates

It would be handy to add a check to see if there are updates to composer and run composer update on provisioning.

Duplicate declaration error (attributed to Composer extension)

Getting the following error on provision:

==> default: Error: Duplicate declaration: Package[php7.0-dev] is already declared in file /vagrant/extensions/phpcs/modules/phpcs/manifests/init.pp:24; cannot redeclare at /vagrant/extensions/composer/modules/composer/manifests/init.pp:13 on node eh.local
==> default: Error: Duplicate declaration: Package[php7.0-dev] is already declared in file /vagrant/extensions/phpcs/modules/phpcs/manifests/init.pp:24; cannot redeclare at /vagrant/extensions/composer/modules/composer/manifests/init.pp:13 on node eh.local

We're specifying the following extensions:

- chassis/xdebug
- chassis/sequelpro
- chassis/cavalcade
- chassis/mailhog
- chassis/memcache
- chassis/composer
- chassis/phpcs

Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php7.0-dev' returned 100: Reading package lists...

I've seen this happen on a couple of peoples Chassis boxes but I've been unable to replicate it locally to apply a fix.

The manual solution is to run vagrant ssh then sudo apt-get update then exit out of the box and run vagrant provision

I believe we need to make sure apt is updated before we run: https://github.com/Chassis/Composer/blob/master/modules/composer/manifests/init.pp#L10

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.