Posts

Gradle plugin development

Image
Writing Custom Plugin 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 (DSL) instead of the XML. Demonstrating gradle plugin development to generate customized sourceSet. — ThirupathiReddy Vajjala Writing Custom Plugin Gradle makes it very easy to build custom binary plugins. You simply need to create a class that implements the org.gradle.api.Plugin<T> interface. The plugin class and its code can be reside in one of the following three locations: Build script : Can be directly embedded into the build script. This approach limits the reuse value of the plugin buildSrc project : can reside under the buildSrc project is automatically compiled and is made available in the build scripts classpath. Stand-alone project : can be bundled as a JAR file that can then be included in the build script’s classpath. ...

Minikube Installation Guide

Troubleshoot kubectl version incompatibility Follow these steps to run Minikube on your mac Install Docker Install VirtualBox Install Kubectl Install Minikube Install docker on Mac docker_installation.sh brew cask install docker Install VirtualBox latest version 6.x and above Check the VirtualBox version virtualbox_version.sh $ echo $(virtualbox --help | head -n 1 | awk '{print $NF}') vb.sh brew cask uninstall --force virtualbox brew cask install virtualbox Install Kubectl kubectl.sh brew install kubernetes-cli (1) 1 Refer troubleshooting sections about version issues. Install Minikube v1.0.1 Make sure you delete older versions , if you have issue with minikube dashboard delete.sh minikube delete minikube_installation.sh curl -Lo minikube https://storage.googleapis.com/minikube/releases/v1.0.1/minikube-darwin-amd64 && chmod +x minikube && sudo cp minikube /usr/local/bi...

Source code migration (Github <=> Bitbucket)

What is a BARE git repository? Understand the difference between BARE and NON-BARE repositories and learn how to migrate source code from one SCM(bitbucket) to another SCM(git) including all branches, tags and commit history. Learn cherry-pick to push specific commit to another branch. 10_commands_for_scm_migration 1.clone_old_repo.sh git clone --mirror https://github.com/tvajjala/application.git NEW 2.change_working_dir.sh cd NEW 3.make_.git_folder.sh mkdir .git 4.move_files.sh mv info/ .git/ && mv description .git/ && mv hooks/ .git/ && mv refs/ .git/ && mv objects/ .git/ && mv config .git/ && mv packed-refs .git/ && mv HEAD .git/ && mv FETCH_HEAD .git/ 5.make_non_bare.sh git config --local --bool core.bare false 6.make_it_working_repo.sh git reset --hard 7.remote_remote_origin.sh git remote rm origin 8.add_remote_origin.sh git remote add origin htt...