Using minikube makes it easy to install a single server Kubernetes cluster for local testing/development.
This file contains 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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: php-hello-world | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: php-hello-world |
This file contains 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
# Requirement: https://github.com/jdeathe/centos-ssh/issues/472 | |
# | |
# On CentOS-7 Host install docker-compose: | |
# sudo yum -y upgrade python* | |
# sudo yum -y install epel-release | |
# sudo yum -y install python-pip | |
# sudo pip install docker-compose | |
# OR Use container alias and add the following 2 environment variables to .env | |
# Ref: https://gist.github.com/jdeathe/e7b09222bb44a2efa6a67b893fe35ac1 | |
# |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>JavaScriptLoader</title> | |
<link rel="stylesheet" href="http://code.jquery.com/ui/1.8.23/themes/base/jquery-ui.css" type="text/css" media="all" /> | |
<style type="text/css"> | |
body.jsLoaded .hidden {display: none;} | |
</style> | |
</head> |
It might be desirable to to install docker-compose as a container. The official way is to use wrapper script. Here is an alternative approach using an alias
.
# alias docker-compose='touch ${PWD}/.env; \
docker run \
--privileged \
This file contains 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
# | |
# WARNING! This configures a Man-In-The-Middle proxy that decrypts HTTPS traffic. | |
# | |
# - Requires Local DNS: https://gist.github.com/jdeathe/252578a3217ab9782fed10c3b3816d30 | |
# - Disable the SSH features and process - using local docker. | |
# - https://docs.docker.com/engine/userguide/networking/ | |
# - http://www.squid-cache.org/Versions/v3/3.3/cfgman/http_port.html | |
# - http://www.squid-cache.org/Versions/v3/3.3/cfgman/ssl_bump.html | |
# - http://www.squid-cache.org/Versions/v3/3.3/cfgman/refresh_pattern.html | |
# - https://www.openssl.org/docs/manmaster/ssl/SSL_CTX_set_options.html |
This file contains 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
#!/usr/bin/env expect | |
set env(HOME) /usr/local/bin | |
set env(SHELL) /bin/bash | |
set env(TERM) xterm | |
set timeout 3 | |
# Destination IP address | |
set HOST [lindex ${argv} 0] |
This file contains 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
#!/usr/bin/env expect | |
set env(HOME) /usr/local/bin | |
set env(SHELL) /bin/bash | |
set env(TERM) xterm | |
set timeout 15 | |
# Source IP address | |
set SOURCE_ADDRESS [lindex ${argv} 0] |
This file contains 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
################################################################ | |
# Global configuration | |
################################################################ | |
# Timeout in seconds. | |
# Duration to give active requests a chance to finish during hot-reloads | |
# | |
# Optional | |
# Default: 10 | |
# |