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
# 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]%}" |
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
<?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> |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: php-hello-world | |
spec: | |
type: NodePort | |
ports: | |
- name: http | |
protocol: TCP | |
port: 80 |
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
# ------------------------------------------------------------------------------ | |
# Ref: https://docs.docker.com/compose/compose-file/ | |
# | |
# This value is for testing only. | |
# export MYSQL_USER_PASSWORD="*03F7361A0E18DA99361B7A82EA575944F53E206B" | |
# | |
# docker-compose -p app1 down | |
# docker-compose -p app1 up -d --scale varnish=2 --scale httpd=3 | |
# | |
# For older versions of docker-compose you will need to scale and recreate. |
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
# ------------------------------------------------------------------------------ | |
# Ref: https://docs.docker.com/compose/compose-file/ | |
# | |
# Install docker for Mac: | |
# https://www.docker.com/products/docker | |
# | |
# docker-compose -p local_jenkins down | |
# docker-compose -p local_jenkins up -d | |
# docker-compose -p local_jenkins logs | |
# |
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 \