GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - openSUSE/obs_deploy: OBS deploy tool

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

241 Commits
241 Commits

Folders and files

NameName
Last commit message
Last commit date
.circleci
.circleci
 
 
.github
.github
 
 
bin
bin
 
 
lib
lib
 
 
spec
spec
 
 
.gitignore
.gitignore
 
 
.rspec
.rspec
 
 
.rubocop.yml
.rubocop.yml
 
 
Dockerfile.dev
Dockerfile.dev
 
 
Gemfile
Gemfile
 
 
Gemfile.lock
Gemfile.lock
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
Rakefile
Rakefile
 
 
entrypoint.sh
entrypoint.sh
 
 
obs_deploy.gemspec
obs_deploy.gemspec
 
 

Repository files navigation

OBS Deploy tool

Simple tool to deploy OBS via zypper to our reference server

Build Status

CircleCI

Installation

Just run:

gem install obs_deploy

Usage

To check which version is deployed

obs_deploy deployed-version [--host <server>]

To check which package is available to install

obs_deploy available-package [<product>] [<package-name>]

Refresh Zypper repositories

obs_deploy refresh-repositories

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Fixtures

To generate the fixtures (located under spec/fixtures), we are using curl -si $URL > $FIXTURE

Run the bin/obs_deploy on development:

On the checked out source, run the following:

ruby -Ilib bin/obs_deploy -v

if you want to run it against the OBS appliance running on VirtualBox:

  • Make sure that you can ssh without password into your VM

  • Make sure the appliance is running in bridge mode

  • build the docker image as:

    docker build -t $USER/obs_deploy .
    
  • then run the container as:

    make docker-dev
    

Now you are inside the container and should be able to ping the obs appliance.

From there:

$ obs_deploy refresh-repositories --host=$APPLIANCE_IP

Hacking

If you want to add new command to the cli, please read the dry-cli documentation https://dry-rb.org/gems/dry-cli/0.4/. The commands are in the obs_deploy/cli/commands directory.

The commands are being sent via ssh and ssh is being called via cheetah https://github.com/openSUSE/cheetah. Please Read the ssh.rb file, specially the SSH#run method

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/openSUSE/obs_deploy.

About

OBS deploy tool

Resources

Readme
Activity
Custom properties

Stars

1 star

Watchers

7 watching

Forks

5 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.