Giter VIP home page Giter VIP logo

gems's Introduction

gems Cookbook

Build Status Cookbook Version

Sets up a local gem server repository.

Requirements

Platform

  • Ubuntu / Debian

Cookbooks

  • apache2
  • rsync

Chef

  • Chef 12.15+

Attributes

  • gem_server['virtual_host_name'] - ServerName for Apache vhost. Default 'gems.domain'.
  • gem_server['virtual_host_alias'] - ServerAlias(es) for Apache vhost. Default 'gems'.
  • gem_server['directory'] - Filesystem location for the repository, default is /srv/gems.

Usage

Create files/default/packages, and copy gems to that directory.

Specify the gem source on clients via the command line, for example:

sudo gem source -a http://gems
sudo gem install rails --source http://gems

Or use the source with gem_package resources in your chef recipes.

gem_package "rails" do
  source "http://gems"
end

Use the gems::mirror recipe to mirror RubyForge. This will take a long time because the repository is 28k+ gems and over 5.5G. It will also override the remote_directory resource to not notify gem generate_index, and instead handle that in the cron job that does the rsync.

License & Authors

Author:: Joshua Timberman [email protected]

Copyright:: 2009-2015, Chef Software, Inc

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

gems's People

Contributors

damacus avatar kitchen-porter avatar nathenharvey avatar ramereth avatar renovate[bot] avatar stevendanna avatar tas50 avatar xorima avatar xorimabot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gems's Issues

Issue with site configuration

There is another issue with cookbook with site configuration both "gem_server.conf" and "rubyforge_mirror.conf" are bound to port 80

I am no apache expert but this seem to create issue for me, I could never server gems from my mirror. I had to get rid of local gems server to get mirror working.

Consider all different issues and how outdated this cookbook is, we might need major version of this cookbook (or one just for mirror which I am working on and would probably open source soon).

Is rsync source stilled valid ?

Cookbook is using rsync source "rsync://master.mirror.rubyforge.org/gems/"
I tried using this but I get following error
rsync: failed to connect to master.mirror.rubyforge.org: Connection timed out (110)

I rsync source still valid ?

recipes/mirror.rb is not creating required directories

Not sure which commit caused this, but should mirror.rb recipe create directories
"#{node['gem_server']['rf_directory']}" and "#{node['gem_server']['rf_directory']}/gems" as these are being used as destination of 'rsync' command

Instead recipe is creating "#{node['gem_server']['directory']}"

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • sous-chefs/.github 3.1.1
  • actions/checkout v4
  • actionshub/test-kitchen 3.0.0
.github/workflows/stale.yml
  • actions/stale v9

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.