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

Minor fixes to up to date docker container. #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM centos:7

RUN yum -y install ruby rubygems ruby-devel rsync createrepo && yum -y update && yum clean all
RUN gem install bundler
RUN yum -y install wget zlib zlib-devel openssl-devel rsync createrepo && yum groupinstall -y "Development Tools" && yum -y update && yum clean all
RUN cd /usr/src && wget https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.1.tar.gz --no-check-certificate && tar -xzf ruby-2.5.1.tar.gz && cd ruby-2.5.1 && ./configure && make && make install
RUN gem update --system ; gem update; gem install bundler

COPY example_config.yaml /config.yaml
COPY yum_mirror.rb /yum_mirror.rb
Expand Down
4 changes: 2 additions & 2 deletions yum_mirror.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def mirror_hardlink_datestamp(mirror)
puts "#{mirror[:dest]}.#{datestamp}/ already exists, skipping!"
else
`mkdir -p #{mirror[:dest]}.#{datestamp}/`
`cp -R -l -v #{mirror[:dest]}/* #{mirror[:dest]}.#{datestamp}/`
`for fileName in #{mirror[:dest]}/* ; do cp -R -l -v $fileName #{mirror[:dest]}.#{datestamp}/ ; done`
end
end

Expand All @@ -75,7 +75,7 @@ def datestamp_all(dest)
puts "#{dest}.#{datestamp}/ already exists, skipping!"
else
`mkdir -p #{dest}.#{datestamp}/`
`cp -R -l -v #{dest}/* #{dest}.#{datestamp}/`
`for fileName in #{dest}/* ; do cp -R -l -v $fileName #{dest}.#{datestamp}/ ; done`
end
end

Expand Down