npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-bakery

v0.1.4

Published

AWS Image Repo generator for building consistent AMI's

Downloads

16

Readme

generator-bakery NPM version Build Status Dependency Status

AWS Image Repo generator for building consistent AMI's

Installation

First, install Yeoman and generator-bakery using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-bakery

Then generate your new project:

yo bakery <project_name>

Chef Users

  • Check out the Packer provisioner details for chef-solo if you want to extend the process provided out of the box.

Puppet Users

  • Check out the Packer provisioner details for puppet-masterless if you want to extend the process provided out of the box.

Getting To Know Yeoman

  • Yeoman has a heart of gold.
  • Yeoman is a person with feelings and opinions, but is very easy to work with.
  • Yeoman can be too opinionated at times but is easily convinced not to be.
  • Feel free to learn more about Yeoman.

General workflow

Source Control Management

One of the key points of this solution is that we must manage how we build AMI's both in a central place but also in a way that allows us to:

  • View history
  • Provide Peer Review
  • Manage collaborative work between multiple engineers in the same structure

Therefore, we've baked in the idea of utilizing a source code repository as the storage medium for these projects by default. We initially are supporting both Github and Github Enterprise.

Configuration Management

Overall, we support the following means of applying configuration to machines when building images:

  • Chef
  • Puppet
  • Bash Scripts (^nix support)
  • Powershell Scripts (Windows Support)

We're using this project to create repositories containing code intended to build an AMI in AWS. This means that we're targeting a specific OS and a specific usecase, application or purpose. We also fully believe that we shouldn't reinvent the wheel, so we're heavily leveraging tooling from the open source community and providing options that should offer the majority of users a path forward.

That being said, since this is a focused usecase, especially when it comes to concepts such as configuration management tooling, while they do support multiple operating systems, our goal is to use Chef and Puppet more as a way to compose other components from their respective communities. While not a 'pure' implementation of the tools, we tend to make assumptions around OS-specfic environments that we wouldn't otherwise make in more generally-focused components.

For more basic configurations, using direct scripting either via bash or PowerShell, the tooling expects that each script logs data to STDOUT and error information to STDERR while still respecting the exit code for success or failure overall. Non-zero exit codes are interpreted as failures and will stop an image build.

Image Management

We're using Packer to collect and apply our configuration assets before creating an image in AWS. The setup and configuration of this respects the Configuration Management options selected and, unlike other parts of this solution, the packer file itself is dynamically generated vs. being driven through a template.

These scripts are designed to be used with a single configuration management tool to start, though manual editing post-generation could certainly achieve a multi-tool based approach. More information on how to format this script is available within Packer's documentation:

Screenshot Walkthrough

welcome!

Source Control Management

Continuous Integration

Configuration Management

Bakery!

Select Multiple Regions

Select Primary Region

Testing

Tests should be written in the test/ directory. Currently gulp is configured to run Mocha tests. Tests can be run with the command gulp test. For convenience a testing.sh.example file is provided in the top level directory. This is a template which shows environment variables which should be set (containing things like AWS and Git credentials) to run the tests.

License

ISC © Datapipe