https://containers.dev an open spec that extends container definition to also include dev environment configuration including:
- packages
- lifecycle automation
- processes
- IDE configurations
- remote connection
- port forwarding
https://containers.dev an open spec that extends container definition to also include dev environment configuration including:
#!/usr/bin/env bash | |
LOCAL_AS=65210 | |
PEER_AS=65200 | |
LB_IP="1.2.3.4" | |
HOST_IP=`ip address list | grep "scope global" | grep -v "scope global lo" | cut -d" " -f6 | cut -d"/" -f 1` | |
GATEWAY=`ip route | grep "^default" | cut -d" " -f3` | |
EXA_BGP_CONFIG="/etc/exabgp/exabgp.conf" | |
EXA_BGP_CHECK="/etc/exabgp/exabgp-check.sh" |
This is an example of using Linux Kernel's
Transparent Proxy
to route all TCP traffic to docker containers without having to resort to
PROXY protocol
which is not supported by some applications
(e.g. sshd
). To get the demo to work you only need vagrant installed:
git clone [this-gist] tproxy-demo
cd tproxy-demo
vagrant up
#!/bin/bash | |
echo "Installing ingress controller..." | |
echo ' | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: ingress-nginx | |
labels: | |
app.kubernetes.io/name: ingress-nginx |
rpm --import ftp://ftp.inf.utfsm.cl/pub/Linux/CentOS/7/os/x86_64/RPM-GPG-KEY-CentOS-7 | |
yum install -y python-simplejson m2crypto mod_wsgi openscap wget | |
wget http://dev.centos.org/centos/6/upg/x86_64/Packages/preupgrade-assistant-1.0.2-33.el6.x86_64.rpm | |
wget http://dev.centos.org/centos/6/upg/x86_64/Packages/preupgrade-assistant-contents-0.5.13-1.el6.noarch.rpm | |
wget http://dev.centos.org/centos/6/upg/x86_64/Packages/preupgrade-assistant-ui-1.0.2-33.el6.x86_64.rpm | |
wget http://dev.centos.org/centos/6/upg/x86_64/Packages/python-rhsm-1.9.7-1.el6.x86_64.rpm | |
wget http://dev.centos.org/centos/6/upg/x86_64/Packages/redhat-upgrade-tool-0.7.22-1.el6.noarch.rpm |
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: service-loadbalancer | |
labels: | |
app: service-loadbalancer | |
version: v1 | |
spec: | |
replicas: 1 | |
selector: |
I hereby claim:
To claim this, I am signing this object:
https://www.youtube.com/watch?v=p0hDJVRl3o0 |
Transantiago implementó estas APIs para uso interno, por lo que no hay ninguna garantía sobre su funcionalidad, mantenimiento o futura existencia. Úsalas bajo tu propio riesgo. (Probablemente no es aconsejable que las uses para nada crítico.)
http://www.transantiago.cl/restservice/rest/getpuntoparada?lat=-33.6089714&lon=-70.5742975&bip=1
http://www.transantiago.cl/predictor/prediccion?codsimt=PA420&codser=504
(código de servicio es opcional, pero el parámetro debe estar presente aunque esté vacío)
ipconfig | grep -E -i "IP Address" | grep -E -o "[0-9][0-9.]+" |