If you want/need to get the given Published Port for a given target port in a docker service you can use:
docker service inspect SERVICE_NAME --format='{{range .Endpoint.Ports}}{{if eq .TargetPort 8080}}{{.PublishedPort}}{{end}}{{end}}'
If you want/need to get the given Published Port for a given target port in a docker service you can use:
docker service inspect SERVICE_NAME --format='{{range .Endpoint.Ports}}{{if eq .TargetPort 8080}}{{.PublishedPort}}{{end}}{{end}}'
Sometimes I need/have to sync a private repository with a public one, so this is what I usually do.
Add a new remote
git remote add github https://github.com/elastic/ansible-elasticsearch.git
Pull the new commits from master
git pull github master
Push new commits to origin
git push origin master
Push new tags
git push --tags origin
At work I’m using git [git version 2.15.0.windows.1] + cgywin , some git commands like diff or log throw an exception and I got this message on the console [main] cygwin_exception::open_stackdumpfile: Dumping stack trace to less.exe.stackdump
To fix this error you have to change the value of $TERM to xterm, previously was screen (collateral damage? I don’t know yet xD)
export TERM=xterm
To install all Go project dependencies at once.
go get ./...
To run all the unit-test at once
go test ./...
I was getting this error ERROR: While executing gem … (Errno::EPERM) trying to install a gem on OS X El Capitan (10.11.3) even with sudo before. I found a solution changing my GEM paths. I’m using zsh so I had to add two lines to my .zshrc
export GEM_HOME=~/.gems
export PATH=$PATH:~/.gems/bin
Después de estar un tiempo trabajando en la implementación de Apache Mesos y Marathon como scheduler algunos tips que he aprendido en el camino.
Eso por ahora