- Append a timestamp to the log file every minute
/var/log/cron
. - Append "tick" and "tock" in alternate minutes to
/var/log/cron
.
* * * * * /bin/date --rfc-3339=seconds >> /var/log/cron
*/2 * * * * /bin/echo 'tick' >> /var/log/cron
/var/log/cron
./var/log/cron
.* * * * * /bin/date --rfc-3339=seconds >> /var/log/cron
*/2 * * * * /bin/echo 'tick' >> /var/log/cron
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 \
# ------------------------------------------------------------------------------ | |
# 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 | |
# |
# ------------------------------------------------------------------------------ | |
# 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. |
Using minikube makes it easy to install a single server Kubernetes cluster for local testing/development.
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: php-hello-world | |
spec: | |
type: NodePort | |
ports: | |
- name: http | |
protocol: TCP | |
port: 80 |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: php-hello-world | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: php-hello-world |
<?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> |