Skip to content

Should bin/shakapacker work without Ruby? #465

@justin808

Description

@justin808

Desired behavior:

If bin/shakapacker works without Ruby, then Docker Layer Caching (DLC) could fetch JS packages (yarn) and compile without the cache breaking due to Ruby changes. Currently, most will put the Ruby layers before the JS layers so that if the Ruby layers don't change, then the DLC will be used. But if any cache layers break due to Ruby changes, then bin/shakapacker has to run again.

One alternative is to cache the results of rake assets:precompile, as React on Rails Pro does.

Actual behavior:

Running bin/shakapacker requires all Ruby dependencies to be installed and be earlier layers of the DLC.

Setup environment:

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions