In the following example the user, SSH public key and passwordless sudo access have been configured.
If you are intending to host anything publicly then don't forget to expose more than port 22
when creating the app.
<?php | |
date_default_timezone_set( | |
'UTC' | |
); | |
// Mock Cloud-Init metadata service for cloud-config | |
// From VirtualBox host machine run: | |
// env METADATA_INSTANCE_ID="iid-5cd832f4bc69" sudo -E php -S 0.0.0.0:80 Cloud-Init_MetadataRouter.php |
# - Create an DNS container on localhost exposing the default tcp + udp port 53. | |
# - Disable the SSH features and process - using local docker. | |
# - Create a loopback alias with on 192.168.127.1/24 to allow routing between | |
# host and containers. | |
# - http://www.thekelleys.org.uk/dnsmasq/doc.html | |
# - http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html | |
LOOPBACK_ALIAS="192.168.127.1/24" | |
LOOPBACK_ALIAS_IP="${LOOPBACK_ALIAS%%/*}" |
[backends] | |
[backends.http-pool-1] | |
[backends.http-pool-1.circuitbreaker] | |
expression = "NetworkErrorRatio() > 0.5" | |
[backends.http-pool-1.maxconn] | |
amount = 10240 | |
extractorfunc = "request.host" | |
[backends.http-pool-1.LoadBalancer] | |
method = "drr" |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.0</real> |
# Based on the default theme for oh-my-zsh: | |
# https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/robbyrussell.zsh-theme | |
# | |
# 1. Copy theme file to: ~/.oh-my-zsh/custom/themes/ | |
# 2. Set ZSH_THEME="jdeathe" in ~/.zshrc | |
local ret_status="%(?:%{$fg_bold[green]%}❯ :%{$fg_bold[red]%}❯ )" | |
PROMPT='${ret_status}%{$fg[blue]%}%c%{$reset_color%} $(git_prompt_info)' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[black]%}[%{$fg_bold[black]%}" |
# - Create an SSH container on localhost exposing the default port 22. | |
# - If you have a default SSH public key (i.e. ~/.ssh/id_rsa.pub) use that | |
# but if not the Vagrant insecure public key will be used. | |
# - Assumes that the docker bridge network is on 172.17.0.1/24 | |
# - Assumes that the host network is 192.168.1.1/24 | |
# - Connect client's (browser/mobile phone) to {host-public-ip-address}:8888 (or localhost:8888 from host). | |
docker pull jdeathe/centos-ssh:centos-7-2.1.2 | |
eval "sudo -E $( |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: php-hello-world | |
spec: | |
type: NodePort | |
ports: | |
- name: http | |
protocol: TCP | |
port: 80 |