nullpointerexceptionhttps://rpsene.wordpress.com
trying to catch all the exceptions on software development
Thu, 21 Mar 2019 01:45:41 +0000 en
hourly
1 http://wordpress.com/https://secure.gravatar.com/blavatar/3b62636a777026478b1245ea7b3ea323?s=96&d=https%3A%2F%2Fs0.wp.com%2Fi%2Fbuttonw-com.pngnullpointerexceptionhttps://rpsene.wordpress.com
docker: creating multi-arch imageshttps://rpsene.wordpress.com/2019/03/19/docker-creating-multi-arch-images/
https://rpsene.wordpress.com/2019/03/19/docker-creating-multi-arch-images/#respondTue, 19 Mar 2019 17:33:12 +0000http://rpsene.wordpress.com/?p=1271Continue reading docker: creating multi-arch images]]>One of the great advantages of using containers [1] is that it brings flexibility to you deployments. You can have a container configured with everything you need and move it around to be executed where you want, which is a time saving approach (and reminds me of the Java’s WORA [2]: write once, run anywhere). If all your systems run the same operating system on the same architecture, you do not need to worry about anything else, but how to handle a scenario where you have different operating systems and different architectures?

Luckily, Docker provides feature called manifest [3] that allows you to create a fat manifest [4], which is a virtual image that covers multiple architectures and contains pointers to real images. To use it, you need to enable the manifest CLI, which is a experimental feature, before starting using it (I’m assuming you already have Docker installed, if not this script can help you get it configured on Ubuntu [5]). To activate, you must add the option “experimental”: “enabled” in the file called config.json located at the home directory of your user:

]]>https://rpsene.wordpress.com/2019/03/19/docker-creating-multi-arch-images/feed/0Screen Shot 2019-03-19 at 13.41.26periadeseneppc64le: easily installing a single cluster of IBM Cloud Private 3.1.2https://rpsene.wordpress.com/2019/02/14/ppc64le-easily-installing-a-single-cluster-of-ibm-cloud-private-3-1-2/
https://rpsene.wordpress.com/2019/02/14/ppc64le-easily-installing-a-single-cluster-of-ibm-cloud-private-3-1-2/#respondThu, 14 Feb 2019 14:44:10 +0000http://rpsene.com/?p=1269Willing to try the latest version of IBM Cloud Private? Try out this simple bash script that helps you on installing either EE or CE versions.

]]>https://rpsene.wordpress.com/2019/02/14/ppc64le-easily-installing-a-single-cluster-of-ibm-cloud-private-3-1-2/feed/0periadeseneminishift: could not set oc CLI context for ‘minishift’ profilehttps://rpsene.wordpress.com/2019/02/09/minishift-could-not-set-oc-cli-context-for-minishift-profile/
https://rpsene.wordpress.com/2019/02/09/minishift-could-not-set-oc-cli-context-for-minishift-profile/#respondSat, 09 Feb 2019 20:24:45 +0000http://rpsene.com/?p=1265I decided to install Minishift in the MacOS I’m using and during my first attempt I got the following (I pasted the full log):

]]>https://rpsene.wordpress.com/2019/02/09/minishift-could-not-set-oc-cli-context-for-minishift-profile/feed/0minishift-logoperiadeseneScreen Shot 2019-02-09 at 18.17.33ubuntu: Err:1 https://dl.yarnpkg.com/debian stable InReleasehttps://rpsene.wordpress.com/2019/02/03/ubuntu-err1-https-dl-yarnpkg-com-debian-stable-inrelease/
https://rpsene.wordpress.com/2019/02/03/ubuntu-err1-https-dl-yarnpkg-com-debian-stable-inrelease/#respondSun, 03 Feb 2019 13:46:17 +0000http://rpsene.com/?p=1261I was updating the docker image I use to do Linux stuff within a macOS Mojave and during the update, this error message appeared:

root@rpsene-docker:/# apt-get update
Err:1 https://dl.yarnpkg.com/debian stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23E7166788B63E1E
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:4 http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu xenial InRelease
Hit:5 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23E7166788B63E1E
W: Failed to fetch https://dl.yarnpkg.com/debian/dists/stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23E7166788B63E1E
W: Some index files failed to download. They have been ignored, or old ones used instead.

]]>https://rpsene.wordpress.com/2019/02/03/ubuntu-err1-https-dl-yarnpkg-com-debian-stable-inrelease/feed/0periadesenex86_64: Installing Minikubehttps://rpsene.wordpress.com/2019/02/02/x86_64-installing-minikube/
https://rpsene.wordpress.com/2019/02/02/x86_64-installing-minikube/#respondSat, 02 Feb 2019 18:14:05 +0000http://rpsene.com/?p=1258Continue reading x86_64: Installing Minikube]]>Minikube is a tool that makes it easy to run Kubernetes locally. Minikube runs a single-node Kubernetes cluster inside a VM on your laptop for users looking to try out Kubernetes or develop with it day-to-day [1].

This is a step-by-step installation guide that puts togheter in a single page all required steps to install Minikube on Ubuntu 18.04 with the KVM2 driver. More information on how install Minikube using a different approach can be found in [2].

1 – Check Virtualization

VT-x or AMD-v virtualization must be enabled in your computer’s BIOS, use the following command to verify this feature:

11 – References

]]>https://rpsene.wordpress.com/2019/02/02/x86_64-installing-minikube/feed/0minikube-logoperiadesenelinux: Installing IBM Cloud Private CEhttps://rpsene.wordpress.com/2018/09/30/linux-installing-ibm-cloud-private-ce/
https://rpsene.wordpress.com/2018/09/30/linux-installing-ibm-cloud-private-ce/#respondSun, 30 Sep 2018 23:11:15 +0000http://rpsene.com/?p=1254Wondering to install IBM Cloud Private Community Edition 3.1.0 as a single node? Take a look at this video and learn how easy it is:

]]>https://rpsene.wordpress.com/2018/09/30/linux-installing-ibm-cloud-private-ce/feed/0periadesenelinux: IBM Cloud Private with GlusterFShttps://rpsene.wordpress.com/2018/09/29/linux-ibm-cloud-private-with-glusterfs/
https://rpsene.wordpress.com/2018/09/29/linux-ibm-cloud-private-with-glusterfs/#respondSat, 29 Sep 2018 17:33:08 +0000http://rpsene.com/?p=1252You can easily configure and install an IBM Cloud Private Cluster with GlusterFS for data persistence. See how it can be done by watching the video below:

]]>https://rpsene.wordpress.com/2018/09/29/linux-ibm-cloud-private-with-glusterfs/feed/0periadesenelinux: FREE access to OpenSUSE on Powerhttps://rpsene.wordpress.com/2018/09/28/linux-free-access-to-opensuse-on-power/
https://rpsene.wordpress.com/2018/09/28/linux-free-access-to-opensuse-on-power/#commentsSat, 29 Sep 2018 00:23:42 +0000http://rpsene.com/?p=1248If you like OpenSUSE you can now try it for FREE at Unicamp’s Minicloud. The Minicloud is hosted by the University of Campinas – Unicamp, which is an academic member of the OpenPower Foundation. It provides free access to Power® virtual machines that can be used for development, testing or migration of applications to Power®. Enjoy!

p.s: ensure you have successfuly authenticated in your cluster before executing it.

]]>https://rpsene.wordpress.com/2018/09/20/kubernetes-restarting-failing-pods/feed/0periadesenelinux: configuring your Go development environmenthttps://rpsene.wordpress.com/2018/07/26/linux-configuring-your-go-development-environment/
https://rpsene.wordpress.com/2018/07/26/linux-configuring-your-go-development-environment/#respondThu, 26 Jul 2018 16:13:07 +0000http://rpsene.com/?p=1242Continue reading linux: configuring your Go development environment]]>Working daily with Docker and Kubernetes and several workloads written in GO is a very common task for me. Likewise, configuring a development environment on brand new VMs. To make this process easier, I wrote a simple script that automatically downloads and install the latest version of Go for Linux for x86_64, ppc64le and s390x (depending on where you are executing it) and configure the necessary directories and paths to ensure your Go environment works as expected. The script is called goconfig and can be found at https://github.com/rpsene/goconfig. Enjoy
]]>https://rpsene.wordpress.com/2018/07/26/linux-configuring-your-go-development-environment/feed/0gopher_head-minperiadesene