This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash-4.2$ cat Gemfile | |
source 'https://rubygems.org' | |
gem 'rails', '~> 5.2.3' | |
gem 'sprockets', '< 4' | |
bash-4.2$ bundle install --retry 2 --without development:test | |
Fetching gem metadata from https://rubygems.org/.............. | |
Fetching version metadata from https://rubygems.org/... | |
Fetching dependency metadata from https://rubygems.org/.. | |
Resolving dependencies.... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash-4.2$ rails new app | |
create | |
create README.md | |
create Rakefile | |
create .ruby-version | |
create config.ru | |
create .gitignore | |
create Gemfile | |
run git init from "." | |
Initialized empty Git repository in /opt/app-root/src/test/app/.git/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ 1 cat Dockerfile | |
FROM fedora:30 | |
RUN dnf group install -y 'C Development Tools and Libraries' && \ | |
dnf install -y vagrant --setopt=install_weak_deps=False && \ | |
dnf install -y redhat-rpm-config libvirt-devel ruby-devel && \ | |
dnf install -y rubygem-{formatador,excon,builder,ruby-libvirt,nokogiri} | |
RUN vagrant plugin install vagrant-libvirt && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ 1 cat Dockerfile | |
FROM fedora:30 | |
RUN \ | |
dnf install -y --setopt=install_weak_deps=False \ | |
vagrant rubygem-{formatador,excon,builder,ruby-libvirt,nokogiri,multi_json} | |
RUN vagrant plugin install vagrant-libvirt && \ | |
vagrant plugin install vagrant-managed-servers && \ | |
vagrant plugin install vagrant-rsync-back |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ exec /usr/bin/podman run --rm -it ffb01683ed4d bash -c 'set -xe | |
ruby -v | |
gem list | |
gem env | |
which rails || gem install rails | |
export GEM_HOME=$( ruby -e '\''puts Gem.user_dir'\'' ) | |
# The bellow can fail, but just continue until log | |
{ set +e ; }&>/dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ s2i build --loglevel=3 https://github.com/openshift/ruby-hello-world candidate-registry.fedoraproject.org/f31/ruby f31-ruby-hello-test | |
I0213 19:25:34.176694 22071 build.go:50] Running S2I version "v1.1.13" | |
I0213 19:25:34.187241 22071 docker.go:484] Image "candidate-registry.fedoraproject.org/f31/ruby:latest" not available locally, pulling ... | |
I0213 19:25:36.222870 22071 build.go:163] | |
Builder Name: Ruby 2.6 | |
Builder Image: candidate-registry.fedoraproject.org/f31/ruby | |
Source: https://github.com/openshift/ruby-hello-world | |
Output Image Tag: f31-ruby-hello-test | |
Environment: | |
Labels: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ bundle exec rspec spec | |
NOTE: Gem::Specification.default_specifications_dir is deprecated; use Gem.default_specifications_dir instead. It will be removed on or after 2020-02-01. | |
Gem::Specification.default_specifications_dir called from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/bundler.rb:635. | |
NOTE: Gem::Specification.default_specifications_dir is deprecated; use Gem.default_specifications_dir instead. It will be removed on or after 2020-02-01. | |
Gem::Specification.default_specifications_dir called from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/bundler.rb:635. | |
.NOTE: Gem::Specification.default_specifications_dir is deprecated; use Gem.default_specifications_dir instead. It will be removed on or after 2020-02-01. | |
Gem::Specification.default_specifications_dir called from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/bundler.rb:635. | |
NOTE: Gem::Specification.default_specifications_dir is deprecated; use Gem.default_specifications_dir instead. It will be removed on or after 2020-02 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ cat > Vagrantfile | |
Vagrant.configure("2") do |config| | |
config.vm.box = "centos/7" | |
# Copy inserted SSH keys for root | |
config.vm.provision :shell, inline: "cp -vfr /home/vagrant/.ssh/ /root/" | |
# If running 'vagrant ssh' command, use 'root' user | |
if ARGV.first == 'ssh' | |
config.ssh.username = "root" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.redhat.com/archives/libguestfs/2020-May/msg00053.html | |
https://www.redhat.com/archives/libguestfs/2020-May/msg00074.html | |
Easy set up is: | |
# rm -f /tmp/sock | |
# nbdkit -U /tmp/sock memory 100G | |
# nbd-client -b 512 -unix /tmp/sock /dev/nbd0 -connections 4 | |
# mkfs.xfs /dev/nbd0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ test vagrant destroy -f 14f8621 | |
Traceback (most recent call last): | |
22: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/batch_action.rb:86:in `block (2 levels) in run' | |
21: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/machine.rb:198:in `action' | |
20: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/machine.rb:198:in `call' | |
19: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/environment.rb:613:in `lock' | |
18: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/machine.rb:212:in `block in action' | |
17: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/machine.rb:240:in `action_raw' | |
16: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/action/runner.rb:89:in `run' | |
15: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant/util/busy.rb:19:in `busy' |