cat <<EOT >> /etc/default/locale
#Set default LOCALE to UTF8
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
EOT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "hosts": ["unix:///var/run/docker.sock", "tcp://0.0.0.0:2375"], | |
| "registry-mirrors": [], | |
| "insecure-registries": [ | |
| "172.16.197.20:5000" | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Download latest dotnet/codeformatter release from github | |
| $repo = "dotnet/codeformatter" | |
| $file = "CodeFormatter.zip" | |
| $releases = "https://api.github.com/repos/$repo/releases" | |
| Write-Host Determining latest release | |
| [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
| $tag = (Invoke-WebRequest -Uri $releases -UseBasicParsing | ConvertFrom-Json)[0].tag_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| get_latest_release() { | |
| curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
| grep '"tag_name":' | # Get tag line | |
| sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
| } | |
| # Usage | |
| # $ get_latest_release "creationix/nvm" | |
| # v0.31.4 |
- Clone
Kong/docker-kongrepo fom Github:[email protected]:Kong/docker-kong.git - Pimp up
docker-compose, as you can see below indocker-compose.yml - Run
docker-compose:cd docker-kong/composeanddocker-compose up
Here we are using ping to check the health of the core-data micro service (core-data operates on port 6543 by default).
http://192.168.10.130:6543/api/v1/ping
Kong listen on IP: 192.168.10.20, ports 8000 and 8001