Posts

Showing posts from March, 2021

How to backup your docker container

--Create your new public repository on Docker Hub -- write password in file  [root@mum00byn ~]# nano dockerpwd.txt -- pass on the password in file to the docker login command. This avoids entering the password in cleartext and showing up in bash history. [root@mum00byn ~]# cat dockerpwd.txt | docker login --username manojpawar --password-stdin Login Succeeded [root@mum00byn ~]# rm dockerpwd.txt -- Commit changes to a running container to a new image [root@mum00byn ~]# docker container commit < container-id > skillrepo-wordpress:1.0 -- Tag the newly created image [root@mum00byn ~]# docker image tag skillrepo-wordpress:1.0 manojpawar/skillrepo-wordpress:1.0 -- Push the tagged image to your repository [root@mum00byn ~]# docker image push manojpawar/skillrepo-wordpress:1.0 --Backup data from running containers to the local system [root@mum00byn ~]# cd /opt/mgpawar/Skill_Repository_DataBackup/wp [root@mum00byn wp]# docker cp wordpress_wordpress_1:/var/www/html/ . [root@mum00byn ...

Data structure and Algorithms - BIG O Cheat Sheet

Big O Cheat Sheet: -Big Os- O(1) Constant- no loops O(log N) Logarithmic - usually searching algorithms have log n if they are sorted (Binary Search) O(n) Linear - For loops, while loops through nth items O(n log(n)) Log Linear - Usually for Sorting operations O(n^2) Quadratic - Every element in a collection needs to be compared to ever other element. Two nested loops O(2^n) Exponential - Recursive algorithms that solves a problem of size N O(n!) Factorial - You are adding a loop for every element   Iterating through half a collection is still O(n) Two separate collections: O(a * b) -What can cause time in a function? - Operations (+, -, *, /) Comparisons (<, >, ==) Looping (for, while) Outside Function call (function ()) -Rule Book- Rule 1: Always worst Case Rule 2: Remove Constants Rule 3: Different inputs should have different variables. O(a+b).  A and B arrays nested would be O(a*b) + for steps ...

CI / CD Proposal - FAQ

1) Is the solution on premise or on cloud? 2) What is the source control being used (code repository) ? SVN, TFS, GIT etc.? 3) Is there any preferred CI/CD tool stack? Jenkins, TRAVIS-CI, Puppet etc.? 4) Current manual release and deployment process cycle? 5) Confirm Platforms - Unix and WebLogic? 6) Confirm ENVs - Dev-SIT-UAT-PROD? 7) List of current binary units being released.(Types and lists of deplorables)? 8) How are artifacts hosted? JAR, WAR, XML, HTML etc.? 8) Confirm if there is any automation in testing processes? 9) Is CI/CD for database required?

Top 10 Highest Paid Jobs in Year 2021

No. 10: Elasticsearch Average Salary: $129,480 Cracking into the top 10 in terms of highest average salaries by skill is Elasticsearch. The average annual salary for an IT professional who is skilled in Elasticsearch is $129,480, according to Dice. Elasticsearch allows organizations to store, search and analyze huge volumes of data quickly and in near-real-time and receive answers in milliseconds. This skill set is in such high demand because it’s a distributed, free and open search and analytics engine for all types of data including textual, geospatial, structured and unstructured. Professionals skilled on Elasticsearch have capabilities around security analytics, website search, application performance monitoring, logging and log analytics, infrastructure metrics and container monitoring. No. 9: Apache Cassandra Average Salary: $130,491 Another top big data skill set that generates a hefty salary is Apache Cassandra. Technologists who have this IT skill capture an average salary of ...