Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching #76

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Caching #76

wants to merge 3 commits into from

Conversation

jonsharratt
Copy link
Member

@jonsharratt jonsharratt commented Apr 24, 2017

What did you implement:

New option CODEBOX_CACHE that allows npm installs to now cache the dependencies so that you do not have to rely on the public registry.

How did you implement it:

  • Checks if cache option enabled
  • Stores an index.json file within a separate S3 cache bucket
  • Scheduled lambda runs every hour to then cache all versions of each package.
  • It checks the revision against public registry if changed will refetch the packages and update the cache.

How can we verify it:

  • Enable cache
  • Deploy and attempt use and npm install packages
  • The cache will eventually populate and any further packages will then use the cache instead

Todos:

  • Write tests
  • Write documentation
  • Fix linting errors
  • Tag ready for review or wip

Is this a breaking change?: NO

@jonsharratt jonsharratt changed the title Dependency Caching Caching Apr 24, 2017
@WalterWeidner
Copy link

Any chance of this PR getting merged? We would love to get the added benefit of caching.

@WetHippie
Copy link

Add another +1 to the request for caching. Makes a big difference in CI build environments that are continuously building.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants