Pages

Showing posts with label stacks. Show all posts
Showing posts with label stacks. Show all posts

Monday, 26 August 2019

Devops tools and useful stacks

Here is a list of tools and stacks that will be useful in DevOps project.


terraform

https://www.terraform.io/ 
Infrastructure defined as text files. Product by HashiCorp.
Terraform is an open-source infrastructure as code software tool created by HashiCorp. It enables users to define and provision a data center infrastructure using a high-level configuration language known as Hashicorp Configuration Language, or optionally JSON.

sonarqube

https://www.sonarqube.org/
Continuous code quality checks tool.

kibana

https://www.elastic.co/products/kibana
A data visualization plugin for Elasticsearch. It provides visualization capabilities on top of the content indexed on an Elasticsearch cluster.

mesos

http://mesos.apache.org
Distributed OS. Uses for orchestrating clusters.

zipkin

https://zipkin.io/
Zipkin is a distributed tracing system

helm

https://helm.sh/
Helm helps you manage Kubernetes applications — Helm Charts helps you define, install, and upgrade even the most complex Kubernetes application.

quarkus

https://quarkus.io/
A Kubernetes Native Java stack tailored for GraalVM & OpenJDK HotSpot.

gradle

https://gradle.org/
Gradle is an open-source build automation system that builds upon the concepts of Apache Ant and Apache Maven and introduces a Groovy-based domain-specific language instead of the XML form used by Apache Maven for declaring the project configuration.


groovy

Apache Groovy is a Java-syntax-compatible object-oriented programming language for the Java platform. It is both a static and dynamic language with features similar to those of Python, Ruby, Perl, and Smalltalk.


jenkins

Jenkins is an free and open source automation server written in Java. Jenkins helps to automate the non-human part of the software development process, with continuous integration and facilitating technical aspects of continuous delivery.

gitlab CI

GitLab CI (Continuous Integration) service is a part of GitLab that build and test the software whenever developer pushes code to application.


prometheus

An open-source monitoring system with a dimensional data model, flexible query language, efficient time series database and modern alerting approach.


ansible 

Ansible is the simplest way to automate apps and IT infrastructure. Application Deployment + Configuration Management + Continuous Delivery. Ansible is an open-source software provisioning, configuration management, and application-deployment tool. It runs on many Unix-like systems, and can configure both Unix-like systems as well as Microsoft Windows. It includes its own declarative language to describe system configuration.

kubernetes

Container orchestration tool.

docker

Enterprise container platform. Docker is a set of platform-as-a-service products that use operating-system-level virtualization to deliver software in packages called containers


NiFi

Designed to automate the flow of data between software systems.

docker-compose

Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application's services.


cypress.io

E2E testing framework. Fast, easy and reliable testing for anything that runs in a browser.

salt

https://www.saltstack.com/
Salt is Python-based, open-source software for event-driven IT automation, remote task execution, and configuration management.


vault

https://www.vaultproject.io/
Secure, store and tightly control access to tokens, passwords, certificates, encryption keys for protecting secrets and other sensitive data using a UI, CLI, or HTTP API.

Bazel

https://bazel.build/

In software development, Bazel is a free software tool that allows for the automation of building and testing of software. The company Google uses the build tool Blaze internally and released and open-sourced part of the Blaze tool as Bazel, named as an anagram of Blaze.


Jaegar

open-source, end-to-end distributed tracing

Monitor and troubleshoot transactions in complex distributed systems

Thursday, 1 August 2019

Sails JS action2 snippet

action2:
------------

module.exports = {

   friendlyName: 'Welcome user',

   description: 'Look up the specified user and welcome them, or redirect to a signup page if no user was found.',

   inputs: {
      userId: {
        description: 'The ID of the user to look up.',
        // By declaring a numeric example, Sails will automatically respond with `res.badRequest`
        // if the `userId` parameter is not a number.
        type: 'number',
        // By making the `userId` parameter required, Sails will automatically respond with
        // `res.badRequest` if it's left out.
        required: true
      }
   },

   exits: {
      success: {
        responseType: 'view',
        viewTemplatePath: 'pages/welcome'
      },
      notFound: {
        description: 'No user with the specified ID was found in the database.',
        responseType: 'notFound'
      }
   },

   fn: async function (inputs, exits) {

      // Look up the user whose ID was specified in the request.
      // Note that we don't have to validate that `userId` is a number;
      // the machine runner does this for us and returns `badRequest`
      // if validation fails.
      var user = await User.findOne({ id: inputs.userId });

      // If no user was found, respond "notFound" (like calling `res.notFound()`)
      if (!user) { return exits.notFound(); }

      // Display the welcome view.
      return exits.success({name: user.name});
   }
};

Sails js Basic Commands

sails cmnds
-------------


#sails new test-project
#sails lift
#sails generate api cats // generates api/controllers/CatsController.js along with a matching model
#sails generate controller user//to quickly create a controller file. api/controllers/UserController.js
#sails generate action user/signup //generate action2 file
#sails generate action user/signup --no-actions2 //generate classic actions 
#sails generate helper tickle-user //generate helper files. api/helpers/tickle-user.js

Kibana



Kibana lets you visualize your Elasticsearch data and navigate the Elastic Stack

Sonarqube



SonarQube Continous code quality checks tool
SonarQube is an open-source platform developed by SonarSource for continuous inspection of code quality to perform automatic reviews with static analysis of code to detect bugs, code smells, and security vulnerabilities on 20+ programming languages.