https://github.com/suse/connect
SUSEConnect Client
https://github.com/suse/connect
cli registration ruby suse
Last synced: 5 months ago
JSON representation
SUSEConnect Client
- Host: GitHub
- URL: https://github.com/suse/connect
- Owner: SUSE
- License: other
- Created: 2014-01-27T09:21:26.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-11-17T10:56:57.000Z (over 1 year ago)
- Last Synced: 2024-04-07T01:37:23.594Z (about 1 year ago)
- Topics: cli, registration, ruby, suse
- Language: Ruby
- Homepage: https://scc.suse.com
- Size: 2.29 MB
- Stars: 16
- Watchers: 32
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[]()
[](https://codeclimate.com/github/SUSE/connect)
[](https://coveralls.io/r/SUSE/connect)# SUSEConnect
SUSEConnect is a command line tool for connecting a client system to the SUSE Customer Center.
It will connect the system to your product subscriptions and enable the product repositories/services locally.SUSEConnect is distributed as RPM for all SUSE distributions and gets built in
the [openSUSE build service](https://build.opensuse.org/package/show/systemsmanagement:SCC/SUSEConnect).Please visit https://scc.suse.com to see and manage your subscriptions.
SUSEConnect communicates with SCC over this [REST API](https://github.com/SUSE/connect/blob/master/doc/SCC-API-%28Implemented%29.md).
# Rake tasks
```
rake console # Run console loaded with gem
rake rubocop # Run Rubocop
rake spec # Run RSpec
```# Docker usage
## Build an image (and everytime you change code)
Get $OBS_USER and $OBS_PASSWORD from the CI config.
For SLES12SP0
* `docker build --build-arg OBS_USER=$OBS_USER --build-arg OBS_PASSWORD=$OBS_PASSWORD -t connect.12sp0 -f Dockerfile.12sp0 .`
For SLES12SP1
* `docker build --build-arg OBS_USER=$OBS_USER --build-arg OBS_PASSWORD=$OBS_PASSWORD -t connect.12sp1 -f Dockerfile.12sp1 .`
For SLES12SP2
* `docker build --build-arg OBS_USER=$OBS_USER --build-arg OBS_PASSWORD=$OBS_PASSWORD -t connect.12sp2 -f Dockerfile.12sp2 .`
For SLES12SP3
* `docker build --build-arg OBS_USER=$OBS_USER --build-arg OBS_PASSWORD=$OBS_PASSWORD -t connect.12sp3 -f Dockerfile.12sp3 .`
For SLES15SP0
* `docker build --build-arg OBS_USER=$OBS_USER --build-arg OBS_PASSWORD=$OBS_PASSWORD -t connect.15sp0 -f Dockerfile.15sp0 .`
For SLES15SP3
* `docker build --build-arg OBS_USER=$OBS_USER --build-arg OBS_PASSWORD=$OBS_PASSWORD -t connect.15sp3 -f Dockerfile.15sp3 .`
## Run commands
Note: Substitute `connect.15sp3` with the respective image you've built above.
Open a console
* `docker run --privileged --rm -ti connect.15sp3 /bin/bash`
Run RSpec
* `docker run --privileged --rm -t connect.15sp3 rspec`
Run Cucumber
* `docker run --privileged --rm -t connect.15sp3 cucumber`
Run Rubocop
* `docker run --privileged --rm -t connect.15sp3 rubocop`
Run integration tests & cucumber
* `docker run -e VALID_REGCODE=$VALID_REGCODE -e EXPIRED_REGCODE=$EXPIRED_REGCODE -e NOT_ACTIVATED_REGCODE=$NOT_ACTIVATED_REGCODE --rm -t connect.15sp3 docker/integration.sh`