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

ryba-repos

v0.2.1

Published

Ryba repository handler for ryba working environment

Downloads

59

Readme

Repository local synchronization with docker

This software is used to manage local YUM repositories (Web server), using Docker. It contains tools to:

  • synchronize locally a remote yum repository
  • Publish a repository with a Webserver
  • Start/stop Web servers

Installation

This chapter assumes that you have already installed Git, Docker and Node.js.

git clone https://github.com/ryba-io/ryba-repos
cd ryba-repos
docker build -t ryba/repos .

Sync

repos sync -s {system} -r {name} -u {url}

  • -r, --repo
    Name of the repository.
  • -s, --system
    Underlying system, one of centos6 or centos7.
  • -u, --url
    URL from where to fetch the repository definition file.
  • -m, --machine
    Name of the docker machine to use, if docker machine is installed.

Synchronize a local repo using a temporary Docker container. The repository are downloaded into your local public folder located inside this project. The folder is named after the "repo" argument. For example, here's how to synchronize the Epel repository.

os=centos7 # one of "centos6", "centos7"
./bin/repos -m ryba -d sync \
  -s $os \
  -r centos \
  -u repos/$os/centos.repo
./bin/repos -m ryba -d sync \
  -s $os \
  -r epel \
  -u repos/$os/epel.repo
./bin/repos -m ryba -d sync \
  -s $os \
  -r mysql \
  -u repos/$os/mysql.repo
./bin/repos -d sync \
  -s $os \
  -r ambari-2.7.3.0 \
  -u http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.0/ambari.repo
./bin/repos -d sync \
  -s $os \
  -r hdp-3.1.0.0 \
  -u http://public-repo-1.hortonworks.com/HDP/centos7/3.x/updates/3.1.0.0/hdp.repo
./bin/repos -d sync \
  -s $os \
  -r hdf-2.1.2.0 \
  -u http://public-repo-1.hortonworks.com/HDF/$os/2.x/updates/2.1.2.0/hdf.repo
./bin/repos -d sync \
  -s $os \
  -r opennebula \
  -u repos/$os/opennebula.repo
./bin/repos -d sync \
  -s $os \
  -r kubernetes \
  -u repos/$os/kubernetes.repo

Start

  • -m, --machine
    Name of the docker machine to use, if docker machine is installed.
  • -c, --container
    Name of the docker container. 'ryba_repos' by default.
  • -p, --port
    Port used to run the container the first time. 10800 by default.
bin/repos start
bin/repos -m 'ryba' start

Recipes

./bin/repos -d sync -r repo_mongodb-org-3.0 -u /Users/wdavidw/www/projects/ryba/ryba-repos/repos/mongodb-org-3.0.repo

Developer

For contributor, run npm version major|minor|patch -m "Bump to version %s to publish a new version. Changelog is generated with the command ./node_modules/.bin/changelog-maker --group.