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

dc-update

v1.0.2

Published

An opinioned script for updating large docker-compose based systems

Downloads

2

Readme

dc-update

An opinioned script for updating large docker-compose based systems

Why?

Docker and docker-compose are great. Though, my home server currently has 40 running containers, which is kind of a nightmare to keep on top of. This program is the next step in the evolution of a gross Bash script that I used to keep it all up to date.

Install

npm install -g dc-update

Usage

To update all running containers in the docker-compose file in the current directory:

dc-update

Only want to update a few containers?

dc-update container1 container2 container3

Is the docker-compose file in another location?

dc-update -f /path/to/docker-compose.yml

Of course, --help will give you the current list of options.

dc-update --help

Building Containers

In my particular setup, I have a few containers that have to be pulled and built before they can be updated. Of course, we only want to restart a container if there is actually a reason to do so. The --build option will pull and build the container first, and then try to update it along with the rest if it was updated and not just pulled from the cache.

dc-update --build app --build proxy

Note: The build list and update list are completely separate. If you want to build AND update only a few containers, they must be specified twice. (I may fix this later).

dc-update --build app --build proxy app proxy