Oct 13, 2020

Basic Test Framework with Protractor-Jasmine-TypeScript-NodeJS.

Basic Test Framework with Protractor-Jasmine-TypeScript-NodeJS, provides a bootstrap platform to write UI automation test cases for Angular applications.

https://github.com/ksuresh8/HelloProtractor

For more details: https://github.com/ksuresh8/HelloProtractor/blob/main/README.md



How to enable ping for OCI Instance?

The most secure method to allow ping requests is to add an ICMP rule with the following details:

Source: 0.0.0.0/0
IP Protocol: ICMP
Type Code: 8 (Type code definitions)



Jul 15, 2020

WebLogic Debug Option

Use below JAVA_OPTIONS setting to run WebLogic Server in debug mode

JAVA_OPTIONS="-Xdebug -Djava.compiler=NONE -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=10171,suspend=n $JAVA_OPTIONS"

Oct 17, 2019

Run Docker commands without sudo

1. Add the docker group if it doesn't already exist
$ sudo groupadd docker
2. Add the connected user $USER to the docker group and chance sock permission
Optionally change the username to match your preferred user.
$ sudo gpasswd -aG $USER docker

$ sudo chmod 666 /var/run/docker.sock 

3. Restart the docker daemon

$ sudo service docker restart

Source: https://github.com/sindresorhus/guides/blob/master/docker-without-sudo.md

Apr 17, 2019

Got permission denied while trying to connect to the Docker daemon socket

bash-4.2$ docker info
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.27/info: dial unix /var/run/docker.sock: connect: permission denied

Solution: 
bash-4.2$ sudo usermod -a -G docker $USER 
 
https://techoverflow.net/2017/03/01/solving-docker-permission-denied-while-trying-to-connect-to-the-docker-daemon-socket/

Docker Proxy Settings

Docker Proxy Settings

$ cd /etc/systemd/system/docker.service.d
$ touch http-proxy.conf
$ sudo vi http-proxy.conf

Add below content to http-proxy.conf
[Service]
Environment="HTTP_PROXY=YourProxyURL:port"
Environment="HTTPS_PROXY=YourProxyURL:port"