npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ibmgaragecloud/cloud-native-toolkit-web-cli

v0.3.3

Published

CLI that provides functions to simplify interactions with containerized platforms and tools

Downloads

14

Readme

IBM Garage Cloud Native Toolkit Web CLI

Command-line tool to automate web tasks with puppeteer. The commands provided can be used directly from the command-line but most typically will be used in the context of a Job running in a cluster to automate the configuration of a tool that cannot be configured otherwise.

Usage

  1. Install the latest CLI by running:

    npm i -g @ibmgaragecloud/cloud-native-toolkit-web-cli
  2. Run the following to list the available commands:

    igc-web --help

Available commands

jenkins-auth

In order to use the API calls with Jenkins, an API token must be generated. With the Helm install of Jenkins, the only way to generate an API token is through the UI.

This command connects to a Jenkins instance and generates the API Token then creates the jenkins-config and jenkins-access ConfigMap and Secret with the results.

Pre-requisites

The command assumes that the target cluster has already been configured or that the command is running in a pod in the cluster and the --inCluster argument has been passed

Options

  • -n - the namespace where Artifactory has been installed. If not provided defaults to tools
  • --inCluster - a flag indicating that the command is running within a pod in the cluster. If the flag is set, the command will retrieve the kube config from the cluster and will use the internal url to connect to the Artifactory instance

setup-artifactory

The OpenSource version of Artifactory has limited API support for configuring the Artifactory instance after deployment. At a minimum, there are a number of tasks that must be done manually to make the instance ready for use:

  1. Reset the admin password
  2. Set the base url of the instance
  3. Configure the repositories
  4. Retrieve the encrypted password for use with the Artifactory APIS

This command will read the Artifactory configuration information from the artifactory-access secret, log in to the Artifactory UI using puppeteer and complete a number of configuration steps, then update the artifactory-access secret with the results of the automation.

Pre-requisites

The command assumes that the target cluster has already been configured or that the command is running in a pod in the cluster and the --inCluster argument has been passed

Options

  • -n - the namespace where Artifactory has been installed. If not provided defaults to tools
  • --inCluster - a flag indicating that the command is running within a pod in the cluster. If the flag is set, the command will retrieve the kube config from the cluster and will use the internal url to connect to the Artifactory instance

Example usage

igc-web setup-artifactory -n tools

setup-sonarqube

The SonarQube helm package does not expose a mechanism to provide a password during the install process. As such, every new instance of SonarQube has the username and password set to admin/admin. In order to change the password, one must log into the console and change it via the UI. Additionally, an API token can be used when interacting with SonarQube that provides added security by not exposing the user password. The only way to generate the token is via the UI.

There are two actions that need to be performed to set up SonarQube:

  • Change the password to a more complex one
  • Generate an authentication token

This command will read the SonarQube configuration information from the sonarqube-access secret, log in to the SonarQube UI using puppeteer and reset the password, then update the sonarqube-access secret with the results of the automation.

Pre-requisites

The command assumes that the target cluster has already been configured or that the command is running in a pod in the cluster and the --inCluster argument has been passed

Options

  • -n - the namespace where SonarQube has been installed. If not provided defaults to tools
  • --inCluster - a flag indicating that the command is running within a pod in the cluster. If the flag is set, the command will retrieve the kube config from the cluster and will use the internal url to connect to the SonarQube instance

Example usage

igc-web setup-sonarqube -n tools

Development

Run the tests

npm test

Run the cli locally

./igc-web