splicemachine / splicectl

GNU Affero General Public License v3.0
2 stars 2 forks source link

build: add arch support and update README for aur #6

Closed bklo94 closed 3 years ago

bklo94 commented 3 years ago

Description

Add AUR for Arch Linux and updated README.md

Motivation and Context

How Has This Been Tested?

splicectl on  arch [!?] via 🐹 v1.16.4 at ☸️  gke_nonprod-gke_us-east1_nonprod-gke-dev2
➜ splicectl
Command not found -> splicectl

splicectl on  arch [!?] via 🐹 v1.16.4 at ☸️  gke_nonprod-gke_us-east1_nonprod-gke-dev2
➜ yay -S splicectl
resolving dependencies...
looking for conflicting packages...

Packages (1) splicectl-v0.1.1-1

Total Installed Size:  26.25 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                                          [###################################################] 100%
(1/1) checking package integrity                                                        [###################################################] 100%
(1/1) loading package files                                                             [###################################################] 100%
(1/1) checking for file conflicts                                                       [###################################################] 100%
(1/1) checking available disk space                                                     [###################################################] 100%
:: Processing package changes...
(1/1) installing splicectl                                                              [###################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

splicectl on  arch [!?] via 🐹 v1.16.4 at ☸️  gke_nonprod-gke_us-east1_nonprod-gke-dev2
➜ splicectl auth
{"session_id":"a296a7d3-ea32-4a50-be53-8e6219d4cec2","valid_until":"2021-05-21T06:52:12Z"}

Screenshots (if appropriate)

Checklist

If the pull request includes user-facing changes, extra documentation is required:

Changelog Inclusions

Additions

Changes

Fixes

Deprecated

Removed

Breaking Changes

bklo94 commented 3 years ago

Added CentOS Support

[bklo@jumpbox tmp]$ splicectl -h
bash: /usr/local/bin/splicectl: No such file or directory
[bklo@jumpbox tmp]$ sudo yum update
Loaded plugins: elrepo, product-id, search-disabled-repos, subscription-manager
splice                                                                                                                                                                          | 2.9 kB  00:00:00
splice/primary_db                                                                                                                                                               | 2.1 kB  00:00:03
No packages marked for update
[bklo@jumpbox tmp]$ sudo yum install splicectl
Loaded plugins: elrepo, product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package splicectl.x86_64 0:0.1.1-1.el7_9 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================================================================= Package                                         Arch                                         Version                                               Repository                                    Size
=======================================================================================================================================================================================================Installing:
 splicectl                                       x86_64                                       0.1.1-1.el7_9                                         splice                                       6.7 M

Transaction Summary
=======================================================================================================================================================================================================Install  1 Package

Total download size: 6.7 M
Installed size: 31 M
Is this ok [y/d/N]: y
Downloading packages:
splicectl-0.1.1-1.el7_9.x86_64.rpm                                                                                                                                              | 6.7 MB  00:00:04
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : splicectl-0.1.1-1.el7_9.x86_64                                                                                                                                                      1/1
  Verifying  : splicectl-0.1.1-1.el7_9.x86_64                                                                                                                                                      1/1

Installed:
  splicectl.x86_64 0:0.1.1-1.el7_9

Complete!
[bklo@jumpbox tmp]$ splicectl -h
splicectl is a CLI tool for making managment of Splice Machine
database clusters under Kubernetes easier to manage.

Usage:
  splicectl [command]

...
bklo94 commented 3 years ago

Added deb support with apt install method.

bklo@splicemachine:~/splicectl$ splicectl -h
splicectl: command not found
bklo@splicemachine:~/splicectl$ sudo apt-get install splicectl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  splicectl
0 upgraded, 1 newly installed, 0 to remove and 78 not upgraded.
Need to get 0 B/13.0 MB of archives.
After this operation, 39.8 MB of additional disk space will be used.
Selecting previously unselected package splicectl.
(Reading database ... 203543 files and directories currently installed.)
Preparing to unpack .../splicectl_0.1.1_all.deb ...
Unpacking splicectl (0.1.1) ...
Setting up splicectl (0.1.1) ...
bklo@splicemachine:~/splicectl$ splicectl -h
splicectl is a CLI tool for making managment of Splice Machine
database clusters under Kubernetes easier to manage.

Usage:
  splicectl [command]

Also modified the Makefile. Going to work on the rpmbuild and AUR build on the makefile since I haven't done that. Also the file organization is horrid and I need to reorganize it.