星期五, 3月 27, 2020

HashiCorp Vault in Docker

Including this basically, but some extra arguments required:
  • docker run --cap-add=IPC_LOCK -e 'VAULT_LOCAL_CONFIG={"backend": {"file": {"path": "/vault/file"}}, "default_lease_ttl": "168h", "max_lease_ttl": "720h", "ui": "true", "listener": {"tcp": {"address": "0.0.0.0:8200", "tls_disable": "true"}}}' -d --name vault -p 8200:8200 vault server
Then, you can visit http://localhost:8200/ui for initializing.

星期五, 2月 14, 2020

Get free Domain Name and SSL Certificate

If you have a Public IP Address and Linux OS running:
  • get a free Domain Name from noip or duckdns
  • install Docker
  • follow this guideline

星期一, 2月 10, 2020

Docker CAS steps

  • docker run -d --name cas -p 8443:8443 apereo/cas:v6.1.3
  • [optional] docker logs cas, "<The following profiles are active: standalone>" shown.
  • append "127.0.0.1 cas.example.org" to /etc/hosts
  • visit https://cas.example.org:8443/cas
  • login username: casuser, password Mellon

星期五, 9月 20, 2019

How to resolve "org.tmatesoft.svn.core.SVNException: svn: E175002: SSL peer shut down incorrectly"?

  1. In Jenkins, Nodes > xxx > Monitoring > View Threads to find those threads which naming *svnkit*, kill them.
  2. Nodes > xxx > Monitoring > Execute the garbage collector
  3. Clean the workspace of related job

星期一, 9月 09, 2019

Linux nologin and recovery

  • checkout someone's shell
    • awk -F: '{print $7}' /etc/passwd
  • change someone (root) to nologin
    • sudo usermod -s `which nologin` root
  • recovery
    • sudo usermod -s /bin/bash root

星期五, 7月 26, 2019

SonarQube scan failed when .ts included

In a Jenkins job which invoke SonarQube, it failed with:
ERROR:     throw err;
ERROR:     ^
ERROR: 
ERROR: Error: Cannot find module 'typescript'
How to resolve this? Before SonarQube scanning, we need:

  • npm install typescript

星期四, 6月 20, 2019

Elmah bootstrapper

After .NET Framework 4.x, include Elmah just need:
  • *.csproj
    • ...
    • </ItemGroup>
    • <ItemGroup>
    •   <PackageReference Include="elmah.bootstrapper" Version="1.0.1" />
    • </ItemGroup>
    • ...
  • Elmah.Athz.config
    • ?

Then you can check error by visit http://<YourWebAP>/elmah from any remote