SlideShare a Scribd company logo
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1
DOCKERFILES : BUILDING DOCKER IMAGES
AUTOMATICALLY V - WORKDIR, ENV, ADD, AND
ENTRYPOINT
(http://www.addthis.com/bookmark.php?v=250&username=khhong7)
bogotobogo.com site search:
Custom Search Search
Continued from ...
Continued from Docker le - Build Docker images automatically IV - CMD
(http://www.bogotobogo.com/DevOps/Docker/Docker_Docker le_to_build_images_automatically_4_CMD.php)
In this chapter, we're going to learn more on how to automate this process via instructions in
Docker les. We'll be focusing on WORKDIR, ENV, ADD, and ENTRYPOINT.
Docker e - WORKDIR & ENV
This section is from http://docs.docker.com/reference/builder/
(http://docs.docker.com/reference/builder/).
K Hong
google.com/+KHongSanF
Francisc…
4,504 followers
Follow
Ph.D. / Golden Gate Ave, San Francisco / Seoul National
Univ / Carnegie Mellon / UC Berkeley / DevOps / Deep
Learning / Visualization
Sponsor Open Source development activities and free
contents for everyone.
Thank you.
- K Hong (http://bogotobogo.com/about_us.php)
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2
WORKDIR /path/to/workdir
The WORKDIR instruction sets the working directory for any RUN , CMD and ENTRYPOINT instructions
that follow it in the Dockerfile .
It can be used multiple times in the one Dockerfile . If a relative path is provided, it will be relative
to the path of the previous WORKDIR instruction. For example:
WORKDIR /a
WORKDIR b
WORKDIR c
RUN pwd
The output of the nal pwd command in this Dockerfile would be /a/b/c.
The WORKDIR instruction can resolve environment variables previously set using ENV . We can only
use environment variables explicitly set in the Dockerfile . For example:
ENV DIRPATH /path
WORKDIR $DIRPATH/$DIRNAME
The output of the nal pwd command in this Dockerfile would be /path/$DIRNAME .
ENV <key> <value>
The ENV instruction sets the environment variable <key> to the value <value>. This value will be
passed to all future RUN instructions. This is functionally equivalent to pre xing the command with
<key>=<value>
The environment variables set using ENV will persist when a container is run from the resulting
image. We can view the values using docker inspect , and change them using
docker run --env <key>=<value> .
Note: One example where this can cause unexpected consequences, is setting
ENV DEBIAN_FRONTEND noninteractive. Which will persist when the container is run interactively; for
example: docker run -t -i image bash .
Docker
Docker install on Amazon
Linux AMI
(/DevOps/Docker/Docker_Instal
Docker install on EC2 Ubuntu
14.04
(/DevOps/Docker/Docker_Instal
Docker container vs Virtual
Machine
(/DevOps/Docker/Docker_Conta
Docker install on Ubuntu
14.04
(/DevOps/Docker/Docker_Instal
Docker Hello World
Application
(/DevOps/Docker/Docker_Hello_
Nginx image - share/copy les,
Docker le
(/DevOps/Docker/Docker_Nginx
Working with Docker images :
brief introdution
(/DevOps/Docker/Docker_Worki
Docker image and container
via docker commands (search,
pull, run, ps, restart, attach,
and rm)
(/DevOps/Docker/Docker_Comm
More on docker run command
(docker run -it, docker run --
rm, etc.)
(/DevOps/Docker/Docker_Run_C
Docker Persistent Storage
(/DevOps/Docker/Docker_Conta
File sharing between host and
container (docker run -d -p -v)
(/DevOps/Docker/Docker_File_S
Linking containers and volume
for datastore
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 3
WORKDIR & ENV - sample
Here is our updated Dockerfile :
FROM debian:latest
MAINTAINER k@bogotobogo.com
# 1 - RUN
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apt-utils
RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq htop
RUN apt-get clean
# 2 - CMD
#CMD ["htop"]
#CMD ["ls", "-l"]
# 3 - WORKDIR and ENV
WORKDIR /root
ENV DZ version1
Let's build the image:
Encuentra imágenes de alta calidad
para tu proyecto de primavera
Empezar ahora
(/DevOps/Docker/Docker_Conta
Docker le - Build Docker
images automatically I - FROM,
MAINTAINER, and build
context
(/DevOps/Docker/Docker_Docke
Docker le - Build Docker
images automatically II -
revisiting FROM, MAINTAINER,
build context, and caching
(/DevOps/Docker/Docker_Docke
Docker le - Build Docker
images automatically III - RUN
(/DevOps/Docker/Docker_Docke
Docker le - Build Docker
images automatically IV - CMD
(/DevOps/Docker/Docker_Docke
Docker le - Build Docker
images automatically V -
WORKDIR, ENV, ADD, and
ENTRYPOINT
(/DevOps/Docker/Docker_Docke
Docker Compose - A gentle
introduction with WordPress
(/DevOps/Docker/Docker-
Compose.php)
MEAN Stack app on Docker
containers : micro services
(/MEAN-Stack/MEAN-Stack-
NodeJS-Angular-Docker.php)
MEAN Stack app on Docker
containers : micro services via
docker-compose (/MEAN-
Stack/MEAN-Stack-NodeJS-
Angular-Docker-
Compose.php)
Docker Compose with two
containers - Flask REST API
service container and an
Apache server container
(/DevOps/Docker/Docker-
Compose-FlaskREST-Service-
Container-and-Apache-
Container.php)
Docker compose : Nginx
reverse proxy with multiple
containers
(/DevOps/Docker/Docker-
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 4
Here we're using repository name (tag) for the image, and the dot('.') indicates our Docker le is in
local directory.
What images do we have now?
Note the images tagged with <none>. These are the images which had no tag, and left behind when
a new image is tagged as 'latest'.
Now we're going to run a new container and run bash inside of it:
$ docker run -it --rm bogodevops/demo /bin/bash
We can check the WORKDIR and ENV settings in our Dockerfile :
$ docker build -t bogodevops/demo .
Sending build context to Docker daemon 2.56 kB
Sending build context to Docker daemon
Step 0 : FROM debian:latest
---> f6fab3b798be
Step 1 : MAINTAINER k@bogotobogo.com
---> Using cache
---> 511bcbdd59ba
Step 2 : RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apt-uti
---> Using cache
---> e6e2c03b8efc
Step 3 : RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq htop
---> Using cache
---> fac6e3168cfe
Step 4 : RUN apt-get clean
---> Using cache
---> 358b5cc4b9fa
Step 5 : WORKDIR /root
---> Running in 2ce95d5fede1
---> a205c4badd68
Removing intermediate container 2ce95d5fede1
Step 6 : ENV DZ version1
---> Running in 6ac629a3506b
---> 6f9de0a5099f
Removing intermediate container 6ac629a3506b
Successfully built 6f9de0a5099f
$
$ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL
bogodevops/demo latest 6f9de0a5099f About a minute ago 96.16 MB
<none> <none> d2f3de97b6ef About an hour ago 96.16 MB
<none> <none> e171cd1dd9e7 About an hour ago 96.16 MB
<none> <none> b64547129d16 About an hour ago 96.16 MB
bogodevops/demo v2 358b5cc4b9fa 2 hours ago 96.16 MB
bogodevops/demo v1 511bcbdd59ba 7 hours ago 85.1 MB
debian latest f6fab3b798be 2 weeks ago 85.1 MB
Compose-Nginx-Reverse-
Proxy-Multiple-
Containers.php)
Docker Cheat Sheet
(/DevOps/Docker/Docker-
Cheat-Sheet.php)
Installing LAMP via puppet on
Docker
(/DevOps/Docker/Installing-
LAMP-with-puppet-on-
Docker.php)
Docker install via Puppet
(/DevOps/Docker/Docker_puppe
Nginx Docker install via
Ansible
(/DevOps/Ansible/Ansible-
Deploy-Nginx-to-Docker.php)
Apache Hadoop CDH 5.8
Install with QuickStarts Docker
(/Hadoop/BigData_hadoop_CDH
Sponsor Open Source development activities and free
contents for everyone.
Thank you.
- K Hong (http://bogotobogo.com/about_us.php)
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 5
root@52a10702207c:~# pwd
/root
root@52a10702207c:~# echo $DZ
version1
root@52a10702207c:~# exit
exit
OK. We've got what we expected.
Docker e - ADD
ADD <src>... <dest>
The ADD instruction copies new les, directories or remote le URLs from <src> and adds them to
the lesystem of the container at the path <dest>.
Multiple <src> resource may be speci ed but if they are les or directories then they must be
relative to the source directory that is being built (the context of the build).
Each <src> may contain wildcards and matching will be done using Go's filepath.Match rules. For
most command line uses this should act as expected, for example:
ADD hom* /mydir/ # adds all files starting with "hom"
ADD hom?.txt /mydir/ # ? is replaced with any single character
The <dest> is the absolute path to which the source will be copied inside the destination container.
Here is our new Dockerfile :
DevOps
Phases of Continuous
Integration
(/DevOps/Continuous_Integratio
Software development
methodology
(/DesignPatterns/software_deve
Introduction to DevOps
(/DevOps/DevOps_Jenkins_Chef_
Samples of Continuous
Integration (CI) / Continuous
Delivery (CD) - Use cases
(/DevOps/DevOps_CI_CD_Pipelin
Artifact repository and
repository management
(/DevOps/DevOps_Artifacts_Arti
Linux - General, shell
programming, processes &
signals ...
(/Linux/linux_tips1.php)
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 6
FROM debian:latest
MAINTAINER k@bogotobogo.com
# 1 - RUN
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apt-utils
RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq htop
RUN apt-get clean
# 2 - CMD
#CMD ["htop"]
#CMD ["ls", "-l"]
# 3 - WORKDIR and ENV
WORKDIR /root
ENV DZ version1
# 4 - ADD
ADD run.sh /root/run.sh
CMD ["./run.sh"]
The run.sh should be referencing current working directory in our local machine.
Here is the run.sh script:
#!/bin/sh
echo "The current directory : $(pwd)"
echo "The DZ variable : $DZ"
echo "There are $# arguments: $@"
We should build the image:
RabbitMQ...
(/python/RabbitMQ_Celery/pyth
MariaDB
(/DevOps/DevOps_MariaDB.php
New Relic APM with NodeJS :
simple agent setup on AWS
instance
(/DevOps/DevOps_NewRelic-
APM-Application-
Performance-Management-
setup.php)
Nagios on CentOS 7 with
Nagios Remote Plugin
Executor (NRPE)
(/DevOps/DevOps_CentOS_Nagi
Remote-Plugin-Executor-
NRPE.php)
Nagios - The industry standard
in IT infrastructure monitoring
on Ubuntu
(/DevOps/DevOps_Nagios_Infras
Remote-Plugin-Executor-
NRPE.php)
Zabbix 3 install on Ubuntu
14.04 & adding hosts / items /
graphs (/DevOps/DevOps-
Zabbix3-Server-and-Agent-
Install-Ubuntu14-Adding-
Hosts-Items-Graphs.php)
Datadog - Monitoring with
PagerDuty/HipChat and APM
(/DevOps/DevOps-Monitoring-
with-Datadog-PagerDuty-
HipChat.php)
Install and Con gure Mesos
Cluster
(/DevOps/DevOps_Mesos_Instal
Cassandra on a Single-Node
Cluster (/DevOps/DevOps-
Cassandra-On-A-Single-Node-
Cluster.php)
Container Orchestration :
Docker Swarm vs Kubernetes
vs Apache Mesos
(/DevOps/DevOps-Docker-
Swarm-vs-Kubernetes-vs-
Apache-Mesos.php)
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 7
Then, run a container with no command:
$ docker run -it --rm bogodevops/demo
The current directory : /root
The DZ variable : version1
There are 0 arguments:
If we add a command to docker run , we get this:
$ docker run -it --rm bogodevops/demo ./run.sh Hello bogotobogo
The current directory : /root
The DZ variable : version1
There are 2 arguments: Hello bogotobogo
Docker e - ENTRYPOINT
ENTRYPOINT has two forms:
1. ENTRYPOINT ["executable", "param1", "param2"] (the preferred exec form)
2. ENTRYPOINT command param1 param2 (shell form)
$ docker build -t bogodevops/demo .
Sending build context to Docker daemon 3.584 kB
Sending build context to Docker daemon
Step 0 : FROM debian:latest
---> f6fab3b798be
Step 1 : MAINTAINER k@bogotobogo.com
---> Using cache
---> 511bcbdd59ba
Step 2 : RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apt-uti
---> Using cache
---> e6e2c03b8efc
Step 3 : RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq htop
---> Using cache
---> fac6e3168cfe
Step 4 : RUN apt-get clean
---> Using cache
---> 358b5cc4b9fa
Step 5 : WORKDIR /root
---> Using cache
---> a205c4badd68
Step 6 : ENV DZ version1
---> Using cache
---> 6f9de0a5099f
Step 7 : ADD run.sh /root/run.sh
---> b4a525cd8f8c
Removing intermediate container 81ed15e4425d
Step 8 : CMD ./run.sh
---> Running in 7f9dad902cff
---> b17ff9ebc8f8
Removing intermediate container 7f9dad902cff
Successfully built b17ff9ebc8f8
OpenStack install on Ubuntu
16.04 server - DevStack
(/DevOps/OpenStack-Install-
On-Ubuntu-16-Server.php)
AWS EC2 Container Service
(ECS) & EC2 Container Registry
(ECR) | Docker Registry
(/DevOps/DevOps-ECS-
ECR.php)
CI/CD with CircleCI - Heroku
deploy (/DevOps/DevOps-
CircleCI-Heroku-Deploy.php)
Introduction to Terraform with
AWS elb & nginx
(/DevOps/DevOps-
Terraform.php)
Kubernetes I - Running
Kubernetes Locally via
Minikube (/DevOps/DevOps-
Kubernetes-1-Running-
Kubernetes-Locally-via-
Minikube.php)
Kubernetes II - kops on AWS
(/DevOps/DevOps-
Kubernetes-II-kops-on-
AWS.php)
Kubernetes III - kubeadm on
AWS (/DevOps/DevOps-
Kubernetes-III-Kubernetes-on-
Linux-with-kubeadm.php)
DEVOPS / SYS ADMIN
Q & A
(1A) - Linux Commands
(/DevOps/DevOps-Sys-Admin-
Interview-Questions-
Commands.php)
(1B) - Linux Commands
(/DevOps/DevOps-Sys-Admin-
Interview-Questions-
Commands-2.php)
(2) - Networks
(/DevOps/DevOps-Sys-Admin-
Interview-Questions-
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 8
An ENTRYPOINT allows us to con gure a container that will run as an executable.
For example, the following will start nginx with its default content, listening on port 80:
docker run -i -t --rm -p 80:80 nginx
Command line arguments to docker run <image> will be appended after all elements in an exec
form ENTRYPOINT , and will override all elements speci ed using CMD . This allows arguments to be
passed to the entry point, i.e., docker run <image> -d will pass the -d argument to the entry point.
We can override the ENTRYPOINT instruction using the docker run --entrypoint ag.
Here is our updated Dockerfile which includes ENTRYPOINT :
FROM debian:latest
MAINTAINER k@bogotobogo.com
# 1 - RUN
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apt-utils
RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq htop
RUN apt-get clean
# 2 - CMD
#CMD ["htop"]
#CMD ["ls", "-l"]
# 3 - WORKDIR and ENV
WORKDIR /root
ENV DZ version1
# 4 - ADD
ADD run.sh /root/run.sh
#CMD ["./run.sh"]
# 5 - ENTRYPOINT (vs CMD)
ENTRYPOINT ["./run.sh"]
CMD ["arg1"]
Build our image again:
Networks.php)
(2B) - Networks
(/DevOps/DevOps-Sys-Admin-
Interview-Questions-
Networks-2.php)
(3) - Linux Systems
(/DevOps/DevOps-Sys-Admin-
Interview-Questions-
Systems.php)
(4) - Scripting (Ruby/Shell)
(/DevOps/DevOps-Sys-Admin-
Interview-Questions-
Scripting.php)
(5) - Con guration
Management
(/DevOps/DevOps-Sys-Admin-
Interview-Questions-
Con gurations.php)
(6) - AWS VPC setup
(public/private subnets with
NAT) (/DevOps/DevOps-Sys-
Admin-Interview-Questions-
AWS-VPC-Setup.php)
(6B) - AWS VPC Peering
(/DevOps/DevOps-Sys-Admin-
Interview-Questions-AWS-VPC-
Peering.php)
(7) - Web server
(/DevOps/DevOps-Sys-Admin-
Interview-Questions-Web-
HTTP.php)
(8) - Database
(/DevOps/DevOps-Sys-Admin-
Interview-Questions-
Database.php)
(9) - Linux System / Application
Monitoring, Performance
Tuning, Pro ling Methods &
Tools (/DevOps/DevOps-Sys-
Admin-Interview-Questions-
Linux-Monitoring-System-
Application-Performance-
Tuning-Tools.php)
(10) - Trouble Shooting: Load,
Throughput, Response time
and Leaks (/DevOps/DevOps-
Sys-Admin-Interview-
Questions-Trouble-Shooting-
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 9
Container run without any argument:
$ docker run -it --rm bogodevops/demo
The current directory : /root
The DZ variable : version1
There are 1 arguments: arg1
It still runs run.sh shell. If we pass in something like /bin/bash :
$ docker run -it --rm bogodevops/demo /bin/bash
The current directory : /root
The DZ variable : version1
There are 1 arguments: /bin/bash
Still it runs run.sh le while /bin/bash was passed in as an argument.
Docker
$ docker build -t bogodevops/demo .
Sending build context to Docker daemon 3.584 kB
Sending build context to Docker daemon
Step 0 : FROM debian:latest
---> f6fab3b798be
Step 1 : MAINTAINER k@bogotobogo.com
---> Using cache
---> 511bcbdd59ba
Step 2 : RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apt-uti
---> Using cache
---> e6e2c03b8efc
Step 3 : RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq htop
---> Using cache
---> fac6e3168cfe
Step 4 : RUN apt-get clean
---> Using cache
---> 358b5cc4b9fa
Step 5 : WORKDIR /root
---> Using cache
---> a205c4badd68
Step 6 : ENV DZ version1
---> Using cache
---> 6f9de0a5099f
Step 7 : ADD run.sh /root/run.sh
---> Using cache
---> c7ecd3c5437e
Step 8 : ENTRYPOINT ./run.sh
---> Running in 2f84e971ba97
---> 9c6bcba955d9
Removing intermediate container 2f84e971ba97
Step 9 : CMD arg1
---> Running in 42b50c05e9f8
---> ff6f9d2ad977
Removing intermediate container 42b50c05e9f8
Successfully built ff6f9d2ad977
Slow-Application-
Performance-BottleNecks-
Leaks.php)
(11) - SSH key pairs, SSL
Certi cate, and SSL
Handshake (/DevOps/DevOps-
Sys-Admin-Interview-
Questions-SSH-Connection-
SSL-Certi cates.php)
(12) - Why is the database
slow? (/DevOps/DevOps-Sys-
Admin-Interview-Questions-
Why-is-database-slow.php)
(13) - Is my web site down?
(/DevOps/DevOps-Sys-Admin-
Interview-Questions-Is-
Website-down.php)
(14) - Is my server down?
(/DevOps/DevOps-Sys-Admin-
Interview-Questions-Is-Server-
down.php)
(15) - Why is the server
sluggish? (/DevOps/DevOps-
Sys-Admin-Interview-
Questions-Why-is-theServer-
slow.php)
(16A) - Serving multiple
domains using Virtual Hosts -
Apache (/DevOps/DevOps-Sys-
Admin-Interview-Questions-
Serving-Multiple-Domains-
Using-Virtual-Hosts-
Apache.php)
(16B) - Serving multiple
domains using server block -
Nginx (/DevOps/DevOps-Sys-
Admin-Interview-Questions-
Serving-Multiple-Domains-
Using-Virtual-Hosts-
Nginx.php)
(16C) - Reverse proxy servers
and load balancers - Nginx
(/DevOps/DevOps-Sys-Admin-
Interview-Questions-Reverse-
proxy-servers-and-load-
balancing-Nginx.php)
(17) - Linux startup process
(/DevOps/DevOps-Sys-Admin-
Interview-Questions-Linux-
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1
Docker install on Amazon Linux AMI
(/DevOps/Docker/Docker_Install_On_Amazon_Linux_AMI.php)
Docker install on EC2 Ubuntu 14.04 (/DevOps/Docker/Docker_Install_On_EC2_Ubuntu.php)
Docker container vs Virtual Machine
(/DevOps/Docker/Docker_Container_vs_Virtual_Machine.php)
Docker install on Ubuntu 14.04 (/DevOps/Docker/Docker_Install_On_Ubuntu_14.php)
Docker Hello World Application (/DevOps/Docker/Docker_Hello_World_Application.php)
Nginx image - share/copy les, Docker le (/DevOps/Docker/Docker_Nginx_WebServer.php)
Working with Docker images : brief introdution
(/DevOps/Docker/Docker_Working_with_images.php)
Docker image and container via docker commands (search, pull, run, ps, restart, attach, and rm)
(/DevOps/Docker/Docker_Commands_for_Images_Container.php)
More on docker run command (docker run -it, docker run --rm, etc.)
(/DevOps/Docker/Docker_Run_Command.php)
Docker Persistent Storage
(/DevOps/Docker/Docker_Container_Persistent_Storage_Data_Share.php)
File sharing between host and container (docker run -d -p -v)
(/DevOps/Docker/Docker_File_Share_between_Host_and_Container.php)
Linking containers and volume for datastore
(/DevOps/Docker/Docker_Container_Linking_Connect_with_linking_system_Communication_across_links_Environment_variables.php)
Docker le - Build Docker images automatically I - FROM, MAINTAINER, and build context
(/DevOps/Docker/Docker_Docker le_to_build_images_automatically.php)
Docker le - Build Docker images automatically II - revisiting FROM, MAINTAINER, build context,
and caching (/DevOps/Docker/Docker_Docker le_to_build_images_automatically_2.php)
Docker le - Build Docker images automatically III - RUN
(/DevOps/Docker/Docker_Docker le_to_build_images_automatically_3.php)
Docker le - Build Docker images automatically IV - CMD
(/DevOps/Docker/Docker_Docker le_to_build_images_automatically_4_CMD.php)
Docker le - Build Docker images automatically V - WORKDIR, ENV, ADD, and ENTRYPOINT
(/DevOps/Docker/Docker_Docker le_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php)
Docker Compose - A gentle introduction with WordPress (/DevOps/Docker/Docker-
Compose.php)
MEAN Stack app on Docker containers : micro services (/MEAN-Stack/MEAN-Stack-NodeJS-
Angular-Docker.php)
MEAN Stack app on Docker containers : micro services via docker-compose (/MEAN-
Stack/MEAN-Stack-NodeJS-Angular-Docker-Compose.php)
Docker Compose with two containers - Flask REST API service container and an Apache server
container (/DevOps/Docker/Docker-Compose-FlaskREST-Service-Container-and-Apache-
Container.php)
Docker compose : Nginx reverse proxy with multiple containers (/DevOps/Docker/Docker-
Compose-Nginx-Reverse-Proxy-Multiple-Containers.php)
Docker Cheat Sheet (/DevOps/Docker/Docker-Cheat-Sheet.php)
Installing LAMP via puppet on Docker (/DevOps/Docker/Installing-LAMP-with-puppet-on-
Docker.php)
Docker install via Puppet (/DevOps/Docker/Docker_puppet.php)
Nginx Docker install via Ansible (/DevOps/Ansible/Ansible-Deploy-Nginx-to-Docker.php)
Apache Hadoop CDH 5.8 Install with QuickStarts Docker
(/Hadoop/BigData_hadoop_CDH5.8_QuickStarts_Docker_Install.php)
Boot-Startup-Process.php)
(18) - phpMyAdmin with Nginx
virtual host as a subdomain
(/DevOps/DevOps_phpMyAdmin
(19) - How to SSH login
without password?
(/DevOps/DevOps-Sys-Admin-
Interview-Questions-SSH-
login-without-password.php)
(20) - Log Rotation
(/DevOps/DevOps-Sys-Admin-
Interview-Questions-Log-
Rotation.php)
(21) - Monitoring Metrics
(/DevOps/DevOps-Sys-Admin-
Interview-Questions-
Monitoring-Metrics.php)
(22) - lsof (/DevOps/DevOps-
Sys-Admin-Interview-
Questions-lsof.php)
(23) - Wireshark introduction
(/DevOps/DevOps-WireShark-
Tutorial-Introduction.php)
(24) - User account
management
(/DevOps/DevOps-Sys-Admin-
Interview-Questions-Linux-
User-Account-
Management.php)
(25) - Domain Name System
(DNS) (/DevOps/DevOps-Sys-
Admin-Interview-Questions-
DNS.php)
(26) - NGINX SSL/TLS, Caching,
and Session
(/DevOps/DevOps-Sys-Admin-
Interview-Questions-NGINX-
SSL-TLS-Caching-Session.php)
(0) - Linux Sys Admin's Day to
Day tasks (/DevOps/DevOps-
Sys-Admin-Interview-
Questions-Day-To-Day-
Tasks.php)
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1
Jenkins
Install
(/DevOps/Jenkins/Jenkins_Instal
Con guration - Manage
Jenkins - security setup
(/DevOps/Jenkins/Jenkins_Con g
Adding job and build
(/DevOps/Jenkins/Jenkins_Addin
Scheduling jobs
(/DevOps/Jenkins/Jenkins_Sched
Managing_plugins
(/DevOps/Jenkins/Jenkins_Mana
Git/GitHub plugins, SSH keys
con guration, and Fork/Clone
(/DevOps/Jenkins/Jenkins_Git_G
JDK & Maven setup
(/DevOps/Jenkins/Jenkins_Mave
Build con guration for GitHub
Java application with Maven
(/DevOps/Jenkins/Jenkins_GitHu
Build Action for GitHub Java
application with Maven -
Console Output, Updating
Maven
(/DevOps/Jenkins/Jenkins_GitHu
Commit to changes to GitHub
& new test results - Build
Failure
(/DevOps/Jenkins/Jenkins_GitHu
Commit to changes to GitHub
& new test results - Successful
Build
(/DevOps/Jenkins/Jenkins_GitHu
Adding code coverage and
metrics
(/DevOps/Jenkins/Jenkins_Addin
Jenkins on EC2 - creating an
EC2 account, ssh to EC2, and
install Apache server
(/DevOps/Jenkins/Jenkins_on_EC
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1
Jenkins on EC2 - setting up
Jenkins account, plugins, and
Con gure System
(JAVA_HOME, MAVEN_HOME,
noti cation email)
(/DevOps/Jenkins/Jenkins_on_EC
Jenkins on EC2 - Creating a
Maven project
(/DevOps/Jenkins/Jenkins_on_EC
Jenkins on EC2 - Con guring
GitHub Hook and Noti cation
service to Jenkins server for
any changes to the repository
(/DevOps/Jenkins/Jenkins_on_EC
Jenkins on EC2 - Line Coverage
with JaCoCo plugin
(/DevOps/Jenkins/Jenkins_on_EC
Setting up Master and Slave
nodes
(/DevOps/Jenkins/Jenkins_on_EC
Jenkins Build Pipeline &
Dependency Graph Plugins
(/DevOps/Jenkins/Jenkins_Build_
Jenkins Build Flow Plugin
(/DevOps/Jenkins/Jenkins_Build_
Jenkins Setting up Slave nodes
on AWS
(/DevOps/Jenkins/Jenkins_Slave_
Puppet
Puppet with Amazon AWS I -
Puppet accounts
(/DevOps/Puppet/puppet_amaz
Puppet with Amazon AWS II
(ssh & puppetmaster/puppet
install)
(/DevOps/Puppet/puppet_amaz
Puppet with Amazon AWS III -
Puppet running Hello World
(/DevOps/Puppet/puppet_amaz
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1
Puppet Code Basics -
Terminology
(/DevOps/Puppet/puppet_basics
Puppet with Amazon AWS on
CentOS 7 (I) - Master setup on
EC2
(/DevOps/Puppet/puppet_amaz
Puppet with Amazon AWS on
CentOS 7 (II) - Con guring a
Puppet Master Server with
Passenger and Apache
(/DevOps/Puppet/puppet_amaz
Puppet master /agent ubuntu
14.04 install on EC2 nodes
(/DevOps/Puppet/puppet_instal
Puppet master post install
tasks - master's names and
certi cates setup,
(/DevOps/Puppet/puppet_maste
Puppet agent post install tasks
- con gure agent, hostnames,
and sign request
(/DevOps/Puppet/puppet_agent
EC2 Puppet master/agent
basic tasks - main manifest
with a le resource/module
and immediate execution on
an agent node
(/DevOps/Puppet/puppet_basic_
Setting up puppet master and
agent with simple scripts on
EC2 / remote install from
desktop
(/DevOps/Puppet/puppet_settin
EC2 Puppet - Install lamp with
a manifest ('puppet apply')
(/DevOps/Puppet/puppet_amaz
EC2 Puppet - Install lamp with
a module
(/DevOps/Puppet/puppet_amaz
Puppet variable scope
(/DevOps/Puppet/puppet_variab
Puppet packages, services,
and les
(/DevOps/Puppet/puppet_packa
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1
Puppet packages, services,
and les II with nginx
(/DevOps/Puppet/puppet_packa
Puppet templates
(/DevOps/Puppet/puppet_temp
Puppet creating and managing
user accounts with SSH access
(/DevOps/Puppet/puppet_creati
Puppet Locking user accounts
& deploying sudoers le
(/DevOps/Puppet/puppet_lockin
Puppet exec resource
(/DevOps/Puppet/puppet_exec_
Puppet classes and modules
(/DevOps/Puppet/puppet_classe
Puppet Forge modules
(/DevOps/Puppet/Puppet_Forge
Puppet Express
(/DevOps/Puppet/puppet_expre
Puppet Express 2
(/DevOps/Puppet/puppet_expre
Puppet 4 : Changes
(/DevOps/Puppet/puppet4_chan
Puppet --con gprint
(/DevOps/Puppet/puppet_con g
Puppet with Docker
(/DevOps/Docker/Docker_puppe
Ansible 2
What is Ansible?
(/DevOps/Ansible/Ansible_What
Quick Preview - Setting up
web servers with Nginx,
con gure enviroments, and
deploy an App
(/DevOps/Ansible/Ansible_Settin
SSH connection & running
commands
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1
(/DevOps/Ansible/Ansible-
SSH-Connection-Setup-Run-
Command.php)
Modules
(/DevOps/Ansible/Ansible-
Modules.php)
Playbooks
(/DevOps/Ansible/Ansible-
Playbooks.php)
Handlers
(/DevOps/Ansible/Ansible-
Handlers.php)
Roles
(/DevOps/Ansible/Ansible-
Roles.php)
Playbook for LAMP HAProxy
(/DevOps/Ansible/Ansible-
Playbook-Lamp-HAProxy.php)
Installing Nginx on a Docker
container
(/DevOps/Ansible/Ansible-
Deploy-Nginx-to-Docker.php)
AWS : Creating an ec2 instance
& adding keys to
authorized_keys
(/DevOps/Ansible/Ansible-aws-
creating-ec2-instance.php)
AWS : Auto Scaling via AMI
(/DevOps/Ansible/Ansible-aws-
AutoScaling.php)
AWS : creating an ELB &
registers an EC2 instance from
the ELB
(/DevOps/Ansible/Ansible-aws-
creating-elb-and-register-ec2-
instance.php)
Deploying Wordpress micro-
services with Docker
containers on Vagrant box via
Ansible
(/DevOps/Ansible/Docker-
WordPress-Microservices-
with-Nginx-reverse-proxy-
Varnish-Mysql-Deployed-via-
Ansible.php)
Setting up Apache web server
(/DevOps/Ansible/Ansible_Settin
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1
Chef
What is Chef?
(/DevOps/Chef/Chef_What_is_Ch
Chef install on Ubuntu 14.04 -
Local Workstation via omnibus
installer
(/DevOps/Chef/Install_Chef_on_
Setting up Hosted Chef server
(/DevOps/Chef/Chef_Setting_up_
VirtualBox via Vagrant with
Chef client provision
(/DevOps/Chef/Chef_Virtual_Ma
Creating and using cookbooks
on a VirtualBox node
(/DevOps/Chef/Chef_Creating_a
Chef server install on Ubuntu
14.04
(/DevOps/Chef/Chef_Server_inst
Chef workstation setup on EC2
Ubuntu 14.04
(/DevOps/Chef/Chef_Setting_Up
Chef Client Node - Knife
Bootstrapping a node on EC2
ubuntu 14.04
(/DevOps/Chef/Chef_Client_Nod
Elasticsearch
search
engine,
Logstash, and
Kibana
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1
Elasticsearch, search engine
(/Hadoop/ELK/ELK_Elastic_Searc
Logstash with Elasticsearch
(/Hadoop/ELK/ELK_ElasticSearch
Logstash, Elasticsearch, and
Kibana 4
(/Hadoop/ELK/ELK_ElasticSearch
Elasticsearch with Redis
broker and Logstash Shipper
and Indexer
(/Hadoop/ELK/ELK_Logstash_Sh
Samples of ELK architecture
(/Hadoop/ELK/ELK_Architecture_
Elasticsearch indexing
performance
(/Hadoop/ELK/ELK_Elastic_Searc
Vagrant
VirtualBox & Vagrant install on
Ubuntu 14.04
(/DevOps/Vagrant/Vagrant_Virtu
Creating a VirtualBox using
Vagrant
(/DevOps/Vagrant/Creating_Virt
Provisioning
(/DevOps/Vagrant/Vagrant_Prov
Networking - Port Forwarding
(/DevOps/Vagrant/Vagrant_Netw
Vagrant Share
(/DevOps/Vagrant/Vagrant_Shar
Vagrant Rebuild & Teardown
(/DevOps/Vagrant/Vagrant_Rebu
Vagrant & Ansible
(/DevOps/Vagrant/Vagrant_Ansi
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1
Big Data &
Hadoop
Tutorials
Hadoop 2.6 - Installing on
Ubuntu 14.04 (Single-Node
Cluster)
(/Hadoop/BigData_hadoop_Insta
Hadoop 2.6.5 - Installing on
Ubuntu 16.04 (Single-Node
Cluster)
(/Hadoop/BigData_hadoop_Insta
Hadoop - Running MapReduce
Job
(/Hadoop/BigData_hadoop_Run
Hadoop - Ecosystem
(/Hadoop/BigData_hadoop_Ecos
CDH5.3 Install on four EC2
instances (1 Name node and 3
Datanodes) using Cloudera
Manager 5
(/Hadoop/BigData_hadoop_CDH
CDH5 APIs
(/Hadoop/BigData_hadoop_CDH
QuickStart VMs for CDH 5.3
(/Hadoop/BigData_hadoop_Quic
VMs for CDH 5.3.x.php)
QuickStart VMs for CDH 5.3 II -
Testing with wordcount
(/Hadoop/BigData_hadoop_Quic
VMs for CDH 5.3.x_II.php)
QuickStart VMs for CDH 5.3 II -
Hive DB query
(/Hadoop/BigData_hadoop_Quic
Scheduled start and stop CDH
services
(/Hadoop/BigData_hadoop_CDH
CDH 5.8 Install with
QuickStarts Docker
(/Hadoop/BigData_hadoop_CDH
Zookeeper & Kafka Install
(/Hadoop/BigData_hadoop_Zoo
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1
Zookeeper & Kafka - single
node single broker
(/Hadoop/BigData_hadoop_Zoo
Zookeeper & Kafka - Single
node and multiple brokers
(/Hadoop/BigData_hadoop_Zoo
OLTP vs OLAP
(/Hadoop/BigData_hadoop_OLT
Apache Hadoop Tutorial I with
CDH - Overview
(/Hadoop/BigData_hadoop_Clou
Apache Hadoop Tutorial II
with CDH - MapReduce Word
Count
(/Hadoop/BigData_hadoop_Tuto
Apache Hadoop Tutorial III
with CDH - MapReduce Word
Count 2
(/Hadoop/BigData_hadoop_Tuto
Apache Hadoop (CDH 5) Hive
Introduction
(/Hadoop/BigData_hadoop_CDH
CDH5 - Hive Upgrade to 1.3 to
from 1.2
(/Hadoop/BigData_hadoop_CDH
Apache Hive 2.1.0 install on
Ubuntu 16.04
(/Hadoop/BigData_hadoop_Hive
Apache HBase in Pseudo-
Distributed mode
(/Hadoop/BigData_hadoop_HBa
Creating HBase table with
HBase shell and HUE
(/Hadoop/BigData_hadoop_HBa
Apache Hadoop : Hue 3.11
install on Ubuntu 16.04
(/Hadoop/BigData_hadoop_Hue
Creating HBase table with Java
API
(/Hadoop/BigData_hadoop_HBa
HBase - Map, Persistent,
Sparse, Sorted, Distributed
and Multidimensional
(/Hadoop/BigData_hadoop_HBa
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2
Flume with CDH5: a single-
node Flume deployment
(telnet example)
(/Hadoop/BigData_hadoop_CDH
Apache Hadoop (CDH 5)
Flume with VirtualBox : syslog
example via
NettyAvroRpcClient
(/Hadoop/BigData_hadoop_CDH
List of Apache Hadoop hdfs
commands
(/Hadoop/BigData_Hadoop_fs_c
Apache Hadoop : Creating
Wordcount Java Project with
Eclipse Part 1
(/Hadoop/BigData_hadoop_Crea
Apache Hadoop : Creating
Wordcount Java Project with
Eclipse Part 2
(/Hadoop/BigData_hadoop_Crea
Apache Hadoop : Creating
Card Java Project with Eclipse
using Cloudera VM
UnoExample for CDH5 - local
run
(/Hadoop/BigData_hadoop_Crea
Apache Hadoop : Creating
Wordcount Maven Project
with Eclipse
(/Hadoop/BigData_hadoop_Crea
Wordcount MapReduce with
Oozie work ow with Hue
browser - CDH 5.3 Hadoop
cluster using VirtualBox and
QuickStart VM
(/Hadoop/BigData_hadoop_Quic
Spark 1.2 using VirtualBox and
QuickStart VM - wordcount
(/Hadoop/BigData_hadoop_Apa
Spark Programming Model :
Resilient Distributed Dataset
(RDD) with CDH
(/Hadoop/BigData_hadoop_Apa
Apache Spark 2.0.2 with
PySpark (Spark Python API)
Shell
(/Hadoop/BigData_hadoop_Apa
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2
Apache Spark 2.0.2 tutorial
with PySpark : RDD
(/Hadoop/BigData_hadoop_Apa
Apache Spark 2.0.0 tutorial
with PySpark : Analyzing
Neuroimaging Data with
Thunder
(/Hadoop/BigData_hadoop_Apa
Apache Spark Streaming with
Kafka and Cassandra
(/Hadoop/BigData_hadoop_Apa
Apache Spark 1.2 with PySpark
(Spark Python API) Wordcount
using CDH5
(/Hadoop/BigData_hadoop_Apa
Apache Spark 1.2 Streaming
(/Hadoop/BigData_hadoop_Apa
Apache Drill with ZooKeeper
install on Ubuntu 16.04 -
Embedded & Distributed
(/Drill/Drill_Tutorial_Install_on_u
Apache Drill - Query File
System, JSON, and Parquet
(/Drill/Drill_Tutorial_Query_File_
Apache Drill - HBase query
(/Drill/Drill_Tutorial_Query_HBas
Apache Drill - Hive query
(/Drill/Drill_Tutorial_Query_Hive
Apache Drill - MongoDB query
(/Drill/Drill_Tutorial_Query_Mon
Redis In-
Memory
Database
Redis vs Memcached
(/DevOps/Redis/Redis_vs_Memc
Redis 3.0.1 Install
(/DevOps/Redis/Redis_Install.ph
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2
Setting up mulitple server
instances on a Linux host
(/DevOps/Redis/Redis_Setting_u
Redis with Python
(/python/python_redis_with_pyt
ELK : Elasticsearch with Redis
broker and Logstash Shipper
and Indexer
(/Hadoop/ELK/ELK_Logstash_Sh
AWS
(Amazon
Web Services)
AWS : Creating a snapshot
(cloning an image)
(/DevOps/AWS/aws_snapshot_a
AWS : Attaching Amazon EBS
volume to an instance
(/DevOps/AWS/aws_attaching_A
AWS : Adding swap space to
an attached volume via
mkswap and swapon
(/DevOps/AWS/aws_adding_swa
AWS : Creating an EC2
instance and attaching
Amazon EBS volume to the
instance using Python boto
module with User data
(/DevOps/AWS/aws_creating_an
AWS : Creating an instance to
a new region by copying an
AMI
(/DevOps/AWS/Launching-
Instance-to-a-New-Region-
from-an-AMI.php)
AWS : S3 (Simple Storage
Service) 1
(/DevOps/AWS/aws_S3_Simple_S
AWS : S3 (Simple Storage
Service) 2 - Creating and
Deleting a Bucket
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2
(/DevOps/AWS/aws_S3_Simple_S
AWS : S3 (Simple Storage
Service) 3 - Bucket Versioning
(/DevOps/AWS/aws_S3_Simple_S
AWS : S3 (Simple Storage
Service) 4 - Uploading a large
le
(/DevOps/AWS/aws_S3_uploadin
AWS : S3 (Simple Storage
Service) 5 - Uploading
folders/ les recursively
(/DevOps/AWS/aws-uploading-
recursive-folder- le.php)
AWS : S3 (Simple Storage
Service) 6 - Bucket Policy for
File/Folder View/Download
(/DevOps/AWS/aws-S3-bucket-
policy-view-download.php)
AWS : S3 (Simple Storage
Service) 7 - How to Copy or
Move Objects from one region
to another
(/DevOps/AWS/aws-s3-
Con gure-Cross-Region-
Replication-Source-and-
Destination-Buckets-Owned-
by-the-Same-AWS-Account-
How-to-Copy-or-Move-
Objects-from-one-Region-to-
another.php)
AWS : S3 (Simple Storage
Service) 8 - Archiving S3 Data
to Glacier (/DevOps/AWS/aws-
S3-Simple-Storage-Service-
Archiving-Amazon-S3-Data-to-
Amazon-Glacier.php)
AWS : Creating a CloudFront
distribution with an Amazon
S3 origin
(/DevOps/AWS/aws_Creating_Cl
AWS : WAF (Web Application
Firewall) with precon gured
CloudFormation template and
Web ACL for CloudFront
distribution
(/DevOps/AWS/aws-WAF-Web-
Application-Firewall.php)
AWS : CloudWatch & Logs with
Lambda Function / S3
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2
(/DevOps/AWS/aws-
CloudWatch-logs-Lambda-
S3.php)
AWS : CLI (Command Line
Interface) (/DevOps/AWS/aws-
CLI-Command-Line-
Interface.php)
AWS : CLI (ECS with ALB &
autoscaling)
(/DevOps/AWS/aws-Amazon-
ECS-ALB-Autoscaling-CLI.php)
AWS Application Load
Balancer (ALB) and ECS with
Flask app (/DevOps/AWS/aws-
ELB-ALB-Application-Load-
Balancer-ECS.php)
AWS : Load Balancing with
HAProxy (High Availability
Proxy) (/DevOps/AWS/aws-
Load-Balancing-with-HAProxy-
High-Availability-Proxy.php)
AWS : VirtualBox on EC2
(/DevOps/AWS/aws_VirtualBox_
AWS : NTP setup on EC2
(/DevOps/AWS/aws_NTP.php)
AWS & OpenSSL : Creating /
Installing a Server SSL
Certi cate (/DevOps/AWS/aws-
HTTPS-OpenSSL-
Certi cate.php)
AWS : OpenVPN Access Server
2 Install (/DevOps/AWS/aws-
OpenVPN-Access-Server-
Install.php)
AWS : VPC (Virtual Private
Cloud) 1 - netmask, subnets,
default gateway, and CIDR
(/DevOps/AWS/aws-VPC-
Virtual-Private-Cloud-1-
netmast-subnet-default-
gateway-CIDR.php)
AWS : VPC (Virtual Private
Cloud) 2 - VPC Wizard
(/DevOps/AWS/aws-VPC-
Virtual-Private-Cloud-2-VPC-
Wizard.php)
AWS : VPC (Virtual Private
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2
Cloud) 3 - VPC Wizard with
NAT (/DevOps/AWS/aws-VPC-
Virtual-Private-Cloud-3-VPC-
Wizard-with-NAT.php)
DevOps / Sys Admin Q & A (VI)
- AWS VPC setup
(public/private subnets with
NAT) (/DevOps/DevOps-Sys-
Admin-Interview-Questions-
AWS-VPC-Setup.php)
AWS - OpenVPN Protocols :
PPTP, L2TP/IPsec, and
OpenVPN (/DevOps/AWS/aws-
VPN-Protocols-OpenVPN-
IPsec-L2TP-PPTP.php)
AWS : Autoscaling group (ASG)
(/DevOps/AWS/aws-
Autoscaling-Group-ASG.php)
AWS : Adding a SSH User
Account on Linux Instance
(/DevOps/AWS/aws-adding-a-
ssh-user-account-on-linux-
instance.php)
AWS : Windows Servers -
Remote Desktop Connections
using RDP
(/DevOps/AWS/aws_Windows_S
AWS : Scheduled stopping and
starting an instance - python &
cron
(/DevOps/AWS/aws_stopping_st
AWS : Elastic Beanstalk with
NodeJS (/DevOps/AWS/aws-
Elastic-Beanstalk-with-
NodeJS.php)
AWS : Detecting stopped
instance and sending an alert
email using Mandrill smtp
(/DevOps/AWS/aws_detecting_st
AWS : Identity and Access
Management (IAM) Roles for
Amazon EC2
(/DevOps/AWS/aws-IAM-
Roles.php)
AWS : Identity and Access
Management (IAM) Policies
(/DevOps/AWS/aws-IAM-
Policies.php)
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2
AWS : Creating IAM Roles and
associating them with EC2
Instances in CloudFormation
(/DevOps/AWS/aws-creating-
IAM-Roles-and-associating-
them-with-EC2-Instances-in-
CloudFormation.php)
AWS Identity and Access
Management (IAM) Roles,
SSO(Single Sign On),
SAML(Security Assertion
Markup Language),
IdP(identity provider),
STS(Security Token Service),
and ADFS(Active Directory
Federation Services)
(/DevOps/AWS/aws-IAM-Roles-
SSO-Single-Sign-On-SAML-
Security-Assertion-Markup-
Language-ADFS-Active-
Directory-Federation-
Services.php)
AWS : Amazon Route 53
(/DevOps/AWS/aws-Route53-
DNS.php)
AWS : Amazon Route 53 - DNS
(Domain Name Server) setup
(/DevOps/AWS/aws-Route53-
DNS-Domain-Name-Server-
Setup.php)
AWS : Amazon Route 53 -
subdomain setup and virtual
host on Nginx
(/DevOps/AWS/aws-Route53-
DNS-Subdomain.php)
AWS Amazon Route 53 :
Private Hosted Zone
(/DevOps/AWS/aws-Route53-
DNS-Private-Hosted-
Zone.php)
AWS : SNS (Simple Noti cation
Service) example with ELB and
CloudWatch
(/DevOps/AWS/aws-Amazon-
SNS-Simple-Noti cation-
Service-example-with-
ELB.php)
AWS : Lambda with AWS
CloudTrail (/DevOps/AWS/aws-
Lambda-with-AWS-
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2
CloudTrail.php)
AWS : SQS (Simple Queue
Service) with NodeJS and AWS
SDK (/DevOps/AWS/aws-
Amazon-SQS-Simple-Queue-
Service-with-NodeJS-AWS-
SDK.php)
AWS : Redshift data
warehouse
(/DevOps/AWS/aws_Redshift_da
AWS : CloudFormation -
templates, change sets, and
CLI (/DevOps/AWS/aws-
CloudFormation-
Templates.php)
AWS : CloudFormation
Bootstrap UserData/Metadata
(/DevOps/AWS/aws-
CloudFormation-Bootstrap-
UserData.php)
AWS : CloudFormation -
Creating an ASG with rolling
update (/DevOps/AWS/aws-
CloudFormation-Autoscaling-
Group-ASG-Application-Load-
Balancer-ALB-with-Update-
Policy-Rolling-Updates.php)
AWS : OpsWorks
(/DevOps/AWS/aws-
OpsWorks.php)
AWS CodeDeploy : Deploy an
Application from GitHub
(/DevOps/AWS/aws-
CodeDeploy-Deploy-an-
Application-from-GitHub.php)
AWS EC2 Container Service
(ECS) (/DevOps/AWS/aws-
Amazon-EC2-Container-
Service-ECS.php)
AWS Hello World Lambda
Function (/DevOps/AWS/aws-
Hello-World-Lambda-
Function.php)
AWS Node.js Lambda Function
& API Gateway
(/DevOps/AWS/aws-Lambda-
Nodejs-API-Gateway.php)
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2
Amazon Kinesis Streams
(/DevOps/AWS/aws-Amazon-
Kinesis-Streams.php)
Amazon DynamoDB
(/DevOps/AWS/aws-Amazon-
DynamoDB.php)
Amazon ML (Machine
Learning) (/DevOps/AWS/aws-
ML-Machine-Learning.php)
Simple Systems Manager
(SSM) (/DevOps/AWS/aws-
SSM.php)
AWS : RDS Connecting to a DB
Instance Running the SQL
Server Database Engine
(/DevOps/AWS/aws_Connecting_
AWS : RDS Importing and
Exporting SQL Server Data
(/DevOps/AWS/aws_RDS_Import
AWS : RDS PostgreSQL &
pgAdmin III
(/DevOps/AWS/aws_RDS_Postgr
AWS : RDS PostgreSQL 2 -
Creating/Deleting a Table
(/DevOps/AWS/aws_RDS_Postgr
AWS : MySQL Replication :
Master-slave
(/DevOps/AWS/aws-MySQL-
Replication-Master-Slave.php)
AWS : MySQL backup &
restore (/DevOps/AWS/aws-
MySQL-Backup-mysqldump-
Restore.php)
AWS RDS : Cross-Region Read
Replicas for MySQL and
Snapshots for PostgreSQL
(/DevOps/AWS/aws-RDS-
Cross-Region-Read-Replicas-
for-MySQL-Snapshot-for-
PostgreSQLs.php)
AWS : Restoring Postgres on
EC2 instance from S3 backup
(/DevOps/AWS/aws_S3_EC2_Pos
AWS : Scaling-Up
(/DevOps/AWS/aws-Scaling-
Up.php)
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2
Powershell 4
Tutorial
Powersehll : Introduction
(http://www.bogotobogo.com/P
Powersehll : Help System
(http://www.bogotobogo.com/P
Powersehll : Running
commands
(http://www.bogotobogo.com/P
Powersehll : Providers
(http://www.bogotobogo.com/P
Powersehll : Pipeline
(http://www.bogotobogo.com/P
Powersehll : Objects
(http://www.bogotobogo.com/P
Powersehll : Remote Control
(http://www.bogotobogo.com/P
Windows Management
Instrumentation (WMI)
(http://www.bogotobogo.com/P
How to Enable Multiple RDP
Sessions in Windows 2012
Server
(http://www.bogotobogo.com/P
How to install and con gure
FTP server on IIS 8 in Windows
2012 Server
(http://www.bogotobogo.com/P
How to Run Exe as a Service
on Windows 2012 Server
(http://www.bogotobogo.com/P
SQL Inner, Left, Right, and
Outer Joins
(http://www.bogotobogo.com/P
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 3
Git/GitHub
Tutorial
One page express tutorial for
GIT and GitHub
(/cplusplus/Git/Git_GitHub_Expr
Installation
(/cplusplus/Git/Git_GitHub_Insta
add/status/log
(/cplusplus/Git/Git_GitHub_statu
commit and di
(/cplusplus/Git/Git_GitHub_com
git commit --amend
(/cplusplus/Git/Git_GitHub_com
Deleting and Renaming les
(/cplusplus/Git/Git_GitHub_Dele
Undoing Things : File Checkout
& Unstaging
(/cplusplus/Git/Git_GitHub_Undo
Reverting commit
(/cplusplus/Git/Git_GitHub_Reve
Soft Reset - (git reset --soft
<SHA key>)
(/cplusplus/Git/Git_GitHub_Soft_
Mixed Reset - Default
(/cplusplus/Git/Git_GitHub_Mixe
Hard Reset - (git reset --hard
<SHA key>)
(/cplusplus/Git/Git_GitHub_Hard
Creating & switching Branches
(/cplusplus/Git/Git_GitHub_Crea
Fast-forward merge
(/cplusplus/Git/Git_GitHub_Fast-
Forward_Merge.php)
Rebase & Three-way merge
(/cplusplus/Git/Git_GitHub_Reba
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 3
Merge con icts with a simple
example
(/cplusplus/Git/Git_GitHub_Merg
GitHub Account and SSH
(/cplusplus/Git/GitHub_Account_
Uploading to GitHub
(/cplusplus/Git/GitHub_Uploadin
GUI
(/cplusplus/Git/GitHub_GUI.php
Branching & Merging
(/cplusplus/Git/Git_Branching_M
Merging con icts
(/cplusplus/Git/Git_Branching_M
GIT on Ubuntu and OS X -
Focused on Branching
(/cplusplus/Git/Git_Ubuntu.php)
Setting up a remote repository
/ pushing local project and
cloning the remote repo
(/cplusplus/Git/Git_Setting_Up_R
Fork vs Clone, Origin vs
Upstream
(/cplusplus/Git/GitHub_Fork_Clo
Git/GitHub Terminologies
(/cplusplus/Git/Git_Terminologie
Git/GitHub via SourceTree I :
Commit & Push
(/cplusplus/Git/Git_GitHub_Sour
Git/GitHub via SourceTree II :
Branching & Merging
(/cplusplus/Git/Git_GitHub_Sour
Git/GitHub via SourceTree III :
Git Work Flow
(/cplusplus/Git/Git_GitHub_Sour
Git/GitHub via SourceTree IV :
Git Reset
(/cplusplus/Git/Git_GitHub_Sour
Git wiki - quick command
reference
(/cplusplus/Git/Git_GitHub_quick
13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018
http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 3
Subversion
Subversion Install On Ubuntu
14.04
(/cplusplus/Subversion/Subvers
Subversion creating and
accessing I
(/cplusplus/Subversion/Subvers
Subversion creating and
accessing II
(/cplusplus/Subversion/Subvers
CONTACT
BogoToBogo
contactus@bogotobogo.com (mailto:#)
FOLLOW BOGOTOBOGO
 (https://www.facebook.com/KHongSanFrancisco) 
(https://twitter.com/KHongTwit) 
(https://plus.google.com/u/0/+KHongSanFrancisco/posts)
ABOUT US (/ABOUT_US.PHP)
contactus@bogotobogo.com (mailto:#)
Golden Gate Ave, San Francisco, CA 94115
Golden Gate Ave, San Francisco, CA 94115
Copyright © 2016, bogotobogo
Design: Web Master (http://www.bogotobogo.com)

More Related Content

What's hot (20)

PPTX
Enable Fig to deploy to multiple Docker servers by Willy Kuo
Docker, Inc.
 
PDF
Containerizing a Web Application with Vue.js and Java
Jadson Santos
 
PDF
Docker by Example - Quiz
CodeOps Technologies LLP
 
PDF
Developing and Deploying PHP with Docker
Patrick Mizer
 
PDF
(Declarative) Jenkins Pipelines
Steffen Gebert
 
PDF
Dockercon EU 2014
Rafe Colton
 
PDF
Oracle Developers APAC Meetup #1 - Working with Wercker Worksheets
Darrel Chia
 
PDF
Docker + Microservices in Production
Patrick Mizer
 
PDF
Joomla Continuous Delivery with Docker
Jirayut Nimsaeng
 
PPTX
[Codelab 2017] Docker 기초 및 활용 방안
양재동 코드랩
 
PDF
Streamline your development environment with docker
Giacomo Bagnoli
 
PDF
sed.pdf
MaenAlWedyan
 
PPTX
7 Habits of Highly Effective Jenkins Users
Jules Pierre-Louis
 
PDF
Docker - From Walking To Running
Giacomo Vacca
 
PDF
Lessons Learned: Using Concourse In Production
Shingo Omura
 
PPT
Build service with_docker_in_90mins
Larry Cai
 
PDF
手把手帶你學Docker 03042017
Paul Chao
 
PPTX
Java microservicesdockerdockerhubusecase2
Subramanyam Vemala
 
PDF
Deploying Apache Kylin on AWS and designing a task scheduler for it
Chase Zhang
 
PDF
Using Kubernetes for Continuous Integration and Continuous Delivery
Carlos Sanchez
 
Enable Fig to deploy to multiple Docker servers by Willy Kuo
Docker, Inc.
 
Containerizing a Web Application with Vue.js and Java
Jadson Santos
 
Docker by Example - Quiz
CodeOps Technologies LLP
 
Developing and Deploying PHP with Docker
Patrick Mizer
 
(Declarative) Jenkins Pipelines
Steffen Gebert
 
Dockercon EU 2014
Rafe Colton
 
Oracle Developers APAC Meetup #1 - Working with Wercker Worksheets
Darrel Chia
 
Docker + Microservices in Production
Patrick Mizer
 
Joomla Continuous Delivery with Docker
Jirayut Nimsaeng
 
[Codelab 2017] Docker 기초 및 활용 방안
양재동 코드랩
 
Streamline your development environment with docker
Giacomo Bagnoli
 
sed.pdf
MaenAlWedyan
 
7 Habits of Highly Effective Jenkins Users
Jules Pierre-Louis
 
Docker - From Walking To Running
Giacomo Vacca
 
Lessons Learned: Using Concourse In Production
Shingo Omura
 
Build service with_docker_in_90mins
Larry Cai
 
手把手帶你學Docker 03042017
Paul Chao
 
Java microservicesdockerdockerhubusecase2
Subramanyam Vemala
 
Deploying Apache Kylin on AWS and designing a task scheduler for it
Chase Zhang
 
Using Kubernetes for Continuous Integration and Continuous Delivery
Carlos Sanchez
 

Similar to Dockerfiles building docker images automatically v (workdir, env, add, and entrypoint) 2018 (20)

PDF
BBL Premiers pas avec Docker
kanedafromparis
 
PPTX
Develop with docker 2014 aug
Vincent De Smet
 
PDF
How to Dockerize Web Application using Docker Compose
Evoke Technologies
 
PDF
Docker for developers on mac and windows
Docker, Inc.
 
PPSX
Docker and containers - Presentation Slides by Priyadarshini Anand
PRIYADARSHINI ANAND
 
PPTX
Docker - Der Wal in der Kiste
Ulrich Krause
 
PDF
Docker intro
Frei Zhang
 
PDF
Docker in everyday development
Justyna Ilczuk
 
PPTX
Dockerizing a Symfony2 application
Roman Rodomansky
 
PPTX
Setup docker on existing application
Luc Juggery
 
PDF
Docker module 1
Liang Bo
 
PDF
Introduction to Docker
Tharaka Devinda
 
PDF
Continuous Delivery with Docker and Jenkins pipeline
Slam Han
 
PDF
時代在變 Docker 要會:台北 Docker 一日入門篇
Philip Zheng
 
PDF
Docker for Developers
JasonStraughan1
 
PPTX
Docker Starter Pack
Saeed Hajizade
 
PPTX
Docker Basic to Advance
Paras Jain
 
PDF
Docker for Deep Learning (Andrea Panizza)
MeetupDataScienceRoma
 
PDF
Containers, Docker, and Microservices: the Terrific Trio
Jérôme Petazzoni
 
BBL Premiers pas avec Docker
kanedafromparis
 
Develop with docker 2014 aug
Vincent De Smet
 
How to Dockerize Web Application using Docker Compose
Evoke Technologies
 
Docker for developers on mac and windows
Docker, Inc.
 
Docker and containers - Presentation Slides by Priyadarshini Anand
PRIYADARSHINI ANAND
 
Docker - Der Wal in der Kiste
Ulrich Krause
 
Docker intro
Frei Zhang
 
Docker in everyday development
Justyna Ilczuk
 
Dockerizing a Symfony2 application
Roman Rodomansky
 
Setup docker on existing application
Luc Juggery
 
Docker module 1
Liang Bo
 
Introduction to Docker
Tharaka Devinda
 
Continuous Delivery with Docker and Jenkins pipeline
Slam Han
 
時代在變 Docker 要會:台北 Docker 一日入門篇
Philip Zheng
 
Docker for Developers
JasonStraughan1
 
Docker Starter Pack
Saeed Hajizade
 
Docker Basic to Advance
Paras Jain
 
Docker for Deep Learning (Andrea Panizza)
MeetupDataScienceRoma
 
Containers, Docker, and Microservices: the Terrific Trio
Jérôme Petazzoni
 
Ad

Recently uploaded (20)

PPTX
UI5con_2025_Accessibility_Ever_Evolving_
gerganakremenska1
 
PDF
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
PDF
Salesforce Experience Cloud Consultant.pdf
VALiNTRY360
 
PDF
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
PDF
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
PPTX
prodad heroglyph crack 2.0.214.2 Full Free Download
cracked shares
 
PDF
Meet in the Middle: Solving the Low-Latency Challenge for Agentic AI
Alluxio, Inc.
 
PDF
Why is partnering with a SaaS development company crucial for enterprise succ...
Nextbrain Technologies
 
PDF
MiniTool Power Data Recovery 8.8 With Crack New Latest 2025
bashirkhan333g
 
PDF
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
PDF
NPD Software -Omnex systems
omnex systems
 
PPTX
Build a Custom Agent for Agentic Testing.pptx
klpathrudu
 
PPTX
Smart Doctor Appointment Booking option in odoo.pptx
AxisTechnolabs
 
PDF
intro_to_cpp_namespace_robotics_corner.pdf
MohamedSaied877003
 
PDF
IObit Driver Booster Pro 12.4.0.585 Crack Free Download
henryc1122g
 
PPTX
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
PPTX
Prompt Like a Pro. Leveraging Salesforce Data to Power AI Workflows.pptx
Dele Amefo
 
PPTX
From spreadsheets and delays to real-time control
SatishKumar2651
 
PDF
Dipole Tech Innovations – Global IT Solutions for Business Growth
dipoletechi3
 
PPTX
BB FlashBack Pro 5.61.0.4843 With Crack Free Download
cracked shares
 
UI5con_2025_Accessibility_Ever_Evolving_
gerganakremenska1
 
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
Salesforce Experience Cloud Consultant.pdf
VALiNTRY360
 
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
prodad heroglyph crack 2.0.214.2 Full Free Download
cracked shares
 
Meet in the Middle: Solving the Low-Latency Challenge for Agentic AI
Alluxio, Inc.
 
Why is partnering with a SaaS development company crucial for enterprise succ...
Nextbrain Technologies
 
MiniTool Power Data Recovery 8.8 With Crack New Latest 2025
bashirkhan333g
 
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
NPD Software -Omnex systems
omnex systems
 
Build a Custom Agent for Agentic Testing.pptx
klpathrudu
 
Smart Doctor Appointment Booking option in odoo.pptx
AxisTechnolabs
 
intro_to_cpp_namespace_robotics_corner.pdf
MohamedSaied877003
 
IObit Driver Booster Pro 12.4.0.585 Crack Free Download
henryc1122g
 
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
Prompt Like a Pro. Leveraging Salesforce Data to Power AI Workflows.pptx
Dele Amefo
 
From spreadsheets and delays to real-time control
SatishKumar2651
 
Dipole Tech Innovations – Global IT Solutions for Business Growth
dipoletechi3
 
BB FlashBack Pro 5.61.0.4843 With Crack Free Download
cracked shares
 
Ad

Dockerfiles building docker images automatically v (workdir, env, add, and entrypoint) 2018

  • 1. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1 DOCKERFILES : BUILDING DOCKER IMAGES AUTOMATICALLY V - WORKDIR, ENV, ADD, AND ENTRYPOINT (http://www.addthis.com/bookmark.php?v=250&username=khhong7) bogotobogo.com site search: Custom Search Search Continued from ... Continued from Docker le - Build Docker images automatically IV - CMD (http://www.bogotobogo.com/DevOps/Docker/Docker_Docker le_to_build_images_automatically_4_CMD.php) In this chapter, we're going to learn more on how to automate this process via instructions in Docker les. We'll be focusing on WORKDIR, ENV, ADD, and ENTRYPOINT. Docker e - WORKDIR & ENV This section is from http://docs.docker.com/reference/builder/ (http://docs.docker.com/reference/builder/). K Hong google.com/+KHongSanF Francisc… 4,504 followers Follow Ph.D. / Golden Gate Ave, San Francisco / Seoul National Univ / Carnegie Mellon / UC Berkeley / DevOps / Deep Learning / Visualization Sponsor Open Source development activities and free contents for everyone. Thank you. - K Hong (http://bogotobogo.com/about_us.php)
  • 2. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2 WORKDIR /path/to/workdir The WORKDIR instruction sets the working directory for any RUN , CMD and ENTRYPOINT instructions that follow it in the Dockerfile . It can be used multiple times in the one Dockerfile . If a relative path is provided, it will be relative to the path of the previous WORKDIR instruction. For example: WORKDIR /a WORKDIR b WORKDIR c RUN pwd The output of the nal pwd command in this Dockerfile would be /a/b/c. The WORKDIR instruction can resolve environment variables previously set using ENV . We can only use environment variables explicitly set in the Dockerfile . For example: ENV DIRPATH /path WORKDIR $DIRPATH/$DIRNAME The output of the nal pwd command in this Dockerfile would be /path/$DIRNAME . ENV <key> <value> The ENV instruction sets the environment variable <key> to the value <value>. This value will be passed to all future RUN instructions. This is functionally equivalent to pre xing the command with <key>=<value> The environment variables set using ENV will persist when a container is run from the resulting image. We can view the values using docker inspect , and change them using docker run --env <key>=<value> . Note: One example where this can cause unexpected consequences, is setting ENV DEBIAN_FRONTEND noninteractive. Which will persist when the container is run interactively; for example: docker run -t -i image bash . Docker Docker install on Amazon Linux AMI (/DevOps/Docker/Docker_Instal Docker install on EC2 Ubuntu 14.04 (/DevOps/Docker/Docker_Instal Docker container vs Virtual Machine (/DevOps/Docker/Docker_Conta Docker install on Ubuntu 14.04 (/DevOps/Docker/Docker_Instal Docker Hello World Application (/DevOps/Docker/Docker_Hello_ Nginx image - share/copy les, Docker le (/DevOps/Docker/Docker_Nginx Working with Docker images : brief introdution (/DevOps/Docker/Docker_Worki Docker image and container via docker commands (search, pull, run, ps, restart, attach, and rm) (/DevOps/Docker/Docker_Comm More on docker run command (docker run -it, docker run -- rm, etc.) (/DevOps/Docker/Docker_Run_C Docker Persistent Storage (/DevOps/Docker/Docker_Conta File sharing between host and container (docker run -d -p -v) (/DevOps/Docker/Docker_File_S Linking containers and volume for datastore
  • 3. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 3 WORKDIR & ENV - sample Here is our updated Dockerfile : FROM debian:latest MAINTAINER [email protected] # 1 - RUN RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apt-utils RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq htop RUN apt-get clean # 2 - CMD #CMD ["htop"] #CMD ["ls", "-l"] # 3 - WORKDIR and ENV WORKDIR /root ENV DZ version1 Let's build the image: Encuentra imágenes de alta calidad para tu proyecto de primavera Empezar ahora (/DevOps/Docker/Docker_Conta Docker le - Build Docker images automatically I - FROM, MAINTAINER, and build context (/DevOps/Docker/Docker_Docke Docker le - Build Docker images automatically II - revisiting FROM, MAINTAINER, build context, and caching (/DevOps/Docker/Docker_Docke Docker le - Build Docker images automatically III - RUN (/DevOps/Docker/Docker_Docke Docker le - Build Docker images automatically IV - CMD (/DevOps/Docker/Docker_Docke Docker le - Build Docker images automatically V - WORKDIR, ENV, ADD, and ENTRYPOINT (/DevOps/Docker/Docker_Docke Docker Compose - A gentle introduction with WordPress (/DevOps/Docker/Docker- Compose.php) MEAN Stack app on Docker containers : micro services (/MEAN-Stack/MEAN-Stack- NodeJS-Angular-Docker.php) MEAN Stack app on Docker containers : micro services via docker-compose (/MEAN- Stack/MEAN-Stack-NodeJS- Angular-Docker- Compose.php) Docker Compose with two containers - Flask REST API service container and an Apache server container (/DevOps/Docker/Docker- Compose-FlaskREST-Service- Container-and-Apache- Container.php) Docker compose : Nginx reverse proxy with multiple containers (/DevOps/Docker/Docker-
  • 4. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 4 Here we're using repository name (tag) for the image, and the dot('.') indicates our Docker le is in local directory. What images do we have now? Note the images tagged with <none>. These are the images which had no tag, and left behind when a new image is tagged as 'latest'. Now we're going to run a new container and run bash inside of it: $ docker run -it --rm bogodevops/demo /bin/bash We can check the WORKDIR and ENV settings in our Dockerfile : $ docker build -t bogodevops/demo . Sending build context to Docker daemon 2.56 kB Sending build context to Docker daemon Step 0 : FROM debian:latest ---> f6fab3b798be Step 1 : MAINTAINER [email protected] ---> Using cache ---> 511bcbdd59ba Step 2 : RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apt-uti ---> Using cache ---> e6e2c03b8efc Step 3 : RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq htop ---> Using cache ---> fac6e3168cfe Step 4 : RUN apt-get clean ---> Using cache ---> 358b5cc4b9fa Step 5 : WORKDIR /root ---> Running in 2ce95d5fede1 ---> a205c4badd68 Removing intermediate container 2ce95d5fede1 Step 6 : ENV DZ version1 ---> Running in 6ac629a3506b ---> 6f9de0a5099f Removing intermediate container 6ac629a3506b Successfully built 6f9de0a5099f $ $ docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL bogodevops/demo latest 6f9de0a5099f About a minute ago 96.16 MB <none> <none> d2f3de97b6ef About an hour ago 96.16 MB <none> <none> e171cd1dd9e7 About an hour ago 96.16 MB <none> <none> b64547129d16 About an hour ago 96.16 MB bogodevops/demo v2 358b5cc4b9fa 2 hours ago 96.16 MB bogodevops/demo v1 511bcbdd59ba 7 hours ago 85.1 MB debian latest f6fab3b798be 2 weeks ago 85.1 MB Compose-Nginx-Reverse- Proxy-Multiple- Containers.php) Docker Cheat Sheet (/DevOps/Docker/Docker- Cheat-Sheet.php) Installing LAMP via puppet on Docker (/DevOps/Docker/Installing- LAMP-with-puppet-on- Docker.php) Docker install via Puppet (/DevOps/Docker/Docker_puppe Nginx Docker install via Ansible (/DevOps/Ansible/Ansible- Deploy-Nginx-to-Docker.php) Apache Hadoop CDH 5.8 Install with QuickStarts Docker (/Hadoop/BigData_hadoop_CDH Sponsor Open Source development activities and free contents for everyone. Thank you. - K Hong (http://bogotobogo.com/about_us.php)
  • 5. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 5 root@52a10702207c:~# pwd /root root@52a10702207c:~# echo $DZ version1 root@52a10702207c:~# exit exit OK. We've got what we expected. Docker e - ADD ADD <src>... <dest> The ADD instruction copies new les, directories or remote le URLs from <src> and adds them to the lesystem of the container at the path <dest>. Multiple <src> resource may be speci ed but if they are les or directories then they must be relative to the source directory that is being built (the context of the build). Each <src> may contain wildcards and matching will be done using Go's filepath.Match rules. For most command line uses this should act as expected, for example: ADD hom* /mydir/ # adds all files starting with "hom" ADD hom?.txt /mydir/ # ? is replaced with any single character The <dest> is the absolute path to which the source will be copied inside the destination container. Here is our new Dockerfile : DevOps Phases of Continuous Integration (/DevOps/Continuous_Integratio Software development methodology (/DesignPatterns/software_deve Introduction to DevOps (/DevOps/DevOps_Jenkins_Chef_ Samples of Continuous Integration (CI) / Continuous Delivery (CD) - Use cases (/DevOps/DevOps_CI_CD_Pipelin Artifact repository and repository management (/DevOps/DevOps_Artifacts_Arti Linux - General, shell programming, processes & signals ... (/Linux/linux_tips1.php)
  • 6. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 6 FROM debian:latest MAINTAINER [email protected] # 1 - RUN RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apt-utils RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq htop RUN apt-get clean # 2 - CMD #CMD ["htop"] #CMD ["ls", "-l"] # 3 - WORKDIR and ENV WORKDIR /root ENV DZ version1 # 4 - ADD ADD run.sh /root/run.sh CMD ["./run.sh"] The run.sh should be referencing current working directory in our local machine. Here is the run.sh script: #!/bin/sh echo "The current directory : $(pwd)" echo "The DZ variable : $DZ" echo "There are $# arguments: $@" We should build the image: RabbitMQ... (/python/RabbitMQ_Celery/pyth MariaDB (/DevOps/DevOps_MariaDB.php New Relic APM with NodeJS : simple agent setup on AWS instance (/DevOps/DevOps_NewRelic- APM-Application- Performance-Management- setup.php) Nagios on CentOS 7 with Nagios Remote Plugin Executor (NRPE) (/DevOps/DevOps_CentOS_Nagi Remote-Plugin-Executor- NRPE.php) Nagios - The industry standard in IT infrastructure monitoring on Ubuntu (/DevOps/DevOps_Nagios_Infras Remote-Plugin-Executor- NRPE.php) Zabbix 3 install on Ubuntu 14.04 & adding hosts / items / graphs (/DevOps/DevOps- Zabbix3-Server-and-Agent- Install-Ubuntu14-Adding- Hosts-Items-Graphs.php) Datadog - Monitoring with PagerDuty/HipChat and APM (/DevOps/DevOps-Monitoring- with-Datadog-PagerDuty- HipChat.php) Install and Con gure Mesos Cluster (/DevOps/DevOps_Mesos_Instal Cassandra on a Single-Node Cluster (/DevOps/DevOps- Cassandra-On-A-Single-Node- Cluster.php) Container Orchestration : Docker Swarm vs Kubernetes vs Apache Mesos (/DevOps/DevOps-Docker- Swarm-vs-Kubernetes-vs- Apache-Mesos.php)
  • 7. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 7 Then, run a container with no command: $ docker run -it --rm bogodevops/demo The current directory : /root The DZ variable : version1 There are 0 arguments: If we add a command to docker run , we get this: $ docker run -it --rm bogodevops/demo ./run.sh Hello bogotobogo The current directory : /root The DZ variable : version1 There are 2 arguments: Hello bogotobogo Docker e - ENTRYPOINT ENTRYPOINT has two forms: 1. ENTRYPOINT ["executable", "param1", "param2"] (the preferred exec form) 2. ENTRYPOINT command param1 param2 (shell form) $ docker build -t bogodevops/demo . Sending build context to Docker daemon 3.584 kB Sending build context to Docker daemon Step 0 : FROM debian:latest ---> f6fab3b798be Step 1 : MAINTAINER [email protected] ---> Using cache ---> 511bcbdd59ba Step 2 : RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apt-uti ---> Using cache ---> e6e2c03b8efc Step 3 : RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq htop ---> Using cache ---> fac6e3168cfe Step 4 : RUN apt-get clean ---> Using cache ---> 358b5cc4b9fa Step 5 : WORKDIR /root ---> Using cache ---> a205c4badd68 Step 6 : ENV DZ version1 ---> Using cache ---> 6f9de0a5099f Step 7 : ADD run.sh /root/run.sh ---> b4a525cd8f8c Removing intermediate container 81ed15e4425d Step 8 : CMD ./run.sh ---> Running in 7f9dad902cff ---> b17ff9ebc8f8 Removing intermediate container 7f9dad902cff Successfully built b17ff9ebc8f8 OpenStack install on Ubuntu 16.04 server - DevStack (/DevOps/OpenStack-Install- On-Ubuntu-16-Server.php) AWS EC2 Container Service (ECS) & EC2 Container Registry (ECR) | Docker Registry (/DevOps/DevOps-ECS- ECR.php) CI/CD with CircleCI - Heroku deploy (/DevOps/DevOps- CircleCI-Heroku-Deploy.php) Introduction to Terraform with AWS elb & nginx (/DevOps/DevOps- Terraform.php) Kubernetes I - Running Kubernetes Locally via Minikube (/DevOps/DevOps- Kubernetes-1-Running- Kubernetes-Locally-via- Minikube.php) Kubernetes II - kops on AWS (/DevOps/DevOps- Kubernetes-II-kops-on- AWS.php) Kubernetes III - kubeadm on AWS (/DevOps/DevOps- Kubernetes-III-Kubernetes-on- Linux-with-kubeadm.php) DEVOPS / SYS ADMIN Q & A (1A) - Linux Commands (/DevOps/DevOps-Sys-Admin- Interview-Questions- Commands.php) (1B) - Linux Commands (/DevOps/DevOps-Sys-Admin- Interview-Questions- Commands-2.php) (2) - Networks (/DevOps/DevOps-Sys-Admin- Interview-Questions-
  • 8. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 8 An ENTRYPOINT allows us to con gure a container that will run as an executable. For example, the following will start nginx with its default content, listening on port 80: docker run -i -t --rm -p 80:80 nginx Command line arguments to docker run <image> will be appended after all elements in an exec form ENTRYPOINT , and will override all elements speci ed using CMD . This allows arguments to be passed to the entry point, i.e., docker run <image> -d will pass the -d argument to the entry point. We can override the ENTRYPOINT instruction using the docker run --entrypoint ag. Here is our updated Dockerfile which includes ENTRYPOINT : FROM debian:latest MAINTAINER [email protected] # 1 - RUN RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apt-utils RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq htop RUN apt-get clean # 2 - CMD #CMD ["htop"] #CMD ["ls", "-l"] # 3 - WORKDIR and ENV WORKDIR /root ENV DZ version1 # 4 - ADD ADD run.sh /root/run.sh #CMD ["./run.sh"] # 5 - ENTRYPOINT (vs CMD) ENTRYPOINT ["./run.sh"] CMD ["arg1"] Build our image again: Networks.php) (2B) - Networks (/DevOps/DevOps-Sys-Admin- Interview-Questions- Networks-2.php) (3) - Linux Systems (/DevOps/DevOps-Sys-Admin- Interview-Questions- Systems.php) (4) - Scripting (Ruby/Shell) (/DevOps/DevOps-Sys-Admin- Interview-Questions- Scripting.php) (5) - Con guration Management (/DevOps/DevOps-Sys-Admin- Interview-Questions- Con gurations.php) (6) - AWS VPC setup (public/private subnets with NAT) (/DevOps/DevOps-Sys- Admin-Interview-Questions- AWS-VPC-Setup.php) (6B) - AWS VPC Peering (/DevOps/DevOps-Sys-Admin- Interview-Questions-AWS-VPC- Peering.php) (7) - Web server (/DevOps/DevOps-Sys-Admin- Interview-Questions-Web- HTTP.php) (8) - Database (/DevOps/DevOps-Sys-Admin- Interview-Questions- Database.php) (9) - Linux System / Application Monitoring, Performance Tuning, Pro ling Methods & Tools (/DevOps/DevOps-Sys- Admin-Interview-Questions- Linux-Monitoring-System- Application-Performance- Tuning-Tools.php) (10) - Trouble Shooting: Load, Throughput, Response time and Leaks (/DevOps/DevOps- Sys-Admin-Interview- Questions-Trouble-Shooting-
  • 9. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 9 Container run without any argument: $ docker run -it --rm bogodevops/demo The current directory : /root The DZ variable : version1 There are 1 arguments: arg1 It still runs run.sh shell. If we pass in something like /bin/bash : $ docker run -it --rm bogodevops/demo /bin/bash The current directory : /root The DZ variable : version1 There are 1 arguments: /bin/bash Still it runs run.sh le while /bin/bash was passed in as an argument. Docker $ docker build -t bogodevops/demo . Sending build context to Docker daemon 3.584 kB Sending build context to Docker daemon Step 0 : FROM debian:latest ---> f6fab3b798be Step 1 : MAINTAINER [email protected] ---> Using cache ---> 511bcbdd59ba Step 2 : RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apt-uti ---> Using cache ---> e6e2c03b8efc Step 3 : RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq htop ---> Using cache ---> fac6e3168cfe Step 4 : RUN apt-get clean ---> Using cache ---> 358b5cc4b9fa Step 5 : WORKDIR /root ---> Using cache ---> a205c4badd68 Step 6 : ENV DZ version1 ---> Using cache ---> 6f9de0a5099f Step 7 : ADD run.sh /root/run.sh ---> Using cache ---> c7ecd3c5437e Step 8 : ENTRYPOINT ./run.sh ---> Running in 2f84e971ba97 ---> 9c6bcba955d9 Removing intermediate container 2f84e971ba97 Step 9 : CMD arg1 ---> Running in 42b50c05e9f8 ---> ff6f9d2ad977 Removing intermediate container 42b50c05e9f8 Successfully built ff6f9d2ad977 Slow-Application- Performance-BottleNecks- Leaks.php) (11) - SSH key pairs, SSL Certi cate, and SSL Handshake (/DevOps/DevOps- Sys-Admin-Interview- Questions-SSH-Connection- SSL-Certi cates.php) (12) - Why is the database slow? (/DevOps/DevOps-Sys- Admin-Interview-Questions- Why-is-database-slow.php) (13) - Is my web site down? (/DevOps/DevOps-Sys-Admin- Interview-Questions-Is- Website-down.php) (14) - Is my server down? (/DevOps/DevOps-Sys-Admin- Interview-Questions-Is-Server- down.php) (15) - Why is the server sluggish? (/DevOps/DevOps- Sys-Admin-Interview- Questions-Why-is-theServer- slow.php) (16A) - Serving multiple domains using Virtual Hosts - Apache (/DevOps/DevOps-Sys- Admin-Interview-Questions- Serving-Multiple-Domains- Using-Virtual-Hosts- Apache.php) (16B) - Serving multiple domains using server block - Nginx (/DevOps/DevOps-Sys- Admin-Interview-Questions- Serving-Multiple-Domains- Using-Virtual-Hosts- Nginx.php) (16C) - Reverse proxy servers and load balancers - Nginx (/DevOps/DevOps-Sys-Admin- Interview-Questions-Reverse- proxy-servers-and-load- balancing-Nginx.php) (17) - Linux startup process (/DevOps/DevOps-Sys-Admin- Interview-Questions-Linux-
  • 10. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1 Docker install on Amazon Linux AMI (/DevOps/Docker/Docker_Install_On_Amazon_Linux_AMI.php) Docker install on EC2 Ubuntu 14.04 (/DevOps/Docker/Docker_Install_On_EC2_Ubuntu.php) Docker container vs Virtual Machine (/DevOps/Docker/Docker_Container_vs_Virtual_Machine.php) Docker install on Ubuntu 14.04 (/DevOps/Docker/Docker_Install_On_Ubuntu_14.php) Docker Hello World Application (/DevOps/Docker/Docker_Hello_World_Application.php) Nginx image - share/copy les, Docker le (/DevOps/Docker/Docker_Nginx_WebServer.php) Working with Docker images : brief introdution (/DevOps/Docker/Docker_Working_with_images.php) Docker image and container via docker commands (search, pull, run, ps, restart, attach, and rm) (/DevOps/Docker/Docker_Commands_for_Images_Container.php) More on docker run command (docker run -it, docker run --rm, etc.) (/DevOps/Docker/Docker_Run_Command.php) Docker Persistent Storage (/DevOps/Docker/Docker_Container_Persistent_Storage_Data_Share.php) File sharing between host and container (docker run -d -p -v) (/DevOps/Docker/Docker_File_Share_between_Host_and_Container.php) Linking containers and volume for datastore (/DevOps/Docker/Docker_Container_Linking_Connect_with_linking_system_Communication_across_links_Environment_variables.php) Docker le - Build Docker images automatically I - FROM, MAINTAINER, and build context (/DevOps/Docker/Docker_Docker le_to_build_images_automatically.php) Docker le - Build Docker images automatically II - revisiting FROM, MAINTAINER, build context, and caching (/DevOps/Docker/Docker_Docker le_to_build_images_automatically_2.php) Docker le - Build Docker images automatically III - RUN (/DevOps/Docker/Docker_Docker le_to_build_images_automatically_3.php) Docker le - Build Docker images automatically IV - CMD (/DevOps/Docker/Docker_Docker le_to_build_images_automatically_4_CMD.php) Docker le - Build Docker images automatically V - WORKDIR, ENV, ADD, and ENTRYPOINT (/DevOps/Docker/Docker_Docker le_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php) Docker Compose - A gentle introduction with WordPress (/DevOps/Docker/Docker- Compose.php) MEAN Stack app on Docker containers : micro services (/MEAN-Stack/MEAN-Stack-NodeJS- Angular-Docker.php) MEAN Stack app on Docker containers : micro services via docker-compose (/MEAN- Stack/MEAN-Stack-NodeJS-Angular-Docker-Compose.php) Docker Compose with two containers - Flask REST API service container and an Apache server container (/DevOps/Docker/Docker-Compose-FlaskREST-Service-Container-and-Apache- Container.php) Docker compose : Nginx reverse proxy with multiple containers (/DevOps/Docker/Docker- Compose-Nginx-Reverse-Proxy-Multiple-Containers.php) Docker Cheat Sheet (/DevOps/Docker/Docker-Cheat-Sheet.php) Installing LAMP via puppet on Docker (/DevOps/Docker/Installing-LAMP-with-puppet-on- Docker.php) Docker install via Puppet (/DevOps/Docker/Docker_puppet.php) Nginx Docker install via Ansible (/DevOps/Ansible/Ansible-Deploy-Nginx-to-Docker.php) Apache Hadoop CDH 5.8 Install with QuickStarts Docker (/Hadoop/BigData_hadoop_CDH5.8_QuickStarts_Docker_Install.php) Boot-Startup-Process.php) (18) - phpMyAdmin with Nginx virtual host as a subdomain (/DevOps/DevOps_phpMyAdmin (19) - How to SSH login without password? (/DevOps/DevOps-Sys-Admin- Interview-Questions-SSH- login-without-password.php) (20) - Log Rotation (/DevOps/DevOps-Sys-Admin- Interview-Questions-Log- Rotation.php) (21) - Monitoring Metrics (/DevOps/DevOps-Sys-Admin- Interview-Questions- Monitoring-Metrics.php) (22) - lsof (/DevOps/DevOps- Sys-Admin-Interview- Questions-lsof.php) (23) - Wireshark introduction (/DevOps/DevOps-WireShark- Tutorial-Introduction.php) (24) - User account management (/DevOps/DevOps-Sys-Admin- Interview-Questions-Linux- User-Account- Management.php) (25) - Domain Name System (DNS) (/DevOps/DevOps-Sys- Admin-Interview-Questions- DNS.php) (26) - NGINX SSL/TLS, Caching, and Session (/DevOps/DevOps-Sys-Admin- Interview-Questions-NGINX- SSL-TLS-Caching-Session.php) (0) - Linux Sys Admin's Day to Day tasks (/DevOps/DevOps- Sys-Admin-Interview- Questions-Day-To-Day- Tasks.php)
  • 11. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1 Jenkins Install (/DevOps/Jenkins/Jenkins_Instal Con guration - Manage Jenkins - security setup (/DevOps/Jenkins/Jenkins_Con g Adding job and build (/DevOps/Jenkins/Jenkins_Addin Scheduling jobs (/DevOps/Jenkins/Jenkins_Sched Managing_plugins (/DevOps/Jenkins/Jenkins_Mana Git/GitHub plugins, SSH keys con guration, and Fork/Clone (/DevOps/Jenkins/Jenkins_Git_G JDK & Maven setup (/DevOps/Jenkins/Jenkins_Mave Build con guration for GitHub Java application with Maven (/DevOps/Jenkins/Jenkins_GitHu Build Action for GitHub Java application with Maven - Console Output, Updating Maven (/DevOps/Jenkins/Jenkins_GitHu Commit to changes to GitHub & new test results - Build Failure (/DevOps/Jenkins/Jenkins_GitHu Commit to changes to GitHub & new test results - Successful Build (/DevOps/Jenkins/Jenkins_GitHu Adding code coverage and metrics (/DevOps/Jenkins/Jenkins_Addin Jenkins on EC2 - creating an EC2 account, ssh to EC2, and install Apache server (/DevOps/Jenkins/Jenkins_on_EC
  • 12. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1 Jenkins on EC2 - setting up Jenkins account, plugins, and Con gure System (JAVA_HOME, MAVEN_HOME, noti cation email) (/DevOps/Jenkins/Jenkins_on_EC Jenkins on EC2 - Creating a Maven project (/DevOps/Jenkins/Jenkins_on_EC Jenkins on EC2 - Con guring GitHub Hook and Noti cation service to Jenkins server for any changes to the repository (/DevOps/Jenkins/Jenkins_on_EC Jenkins on EC2 - Line Coverage with JaCoCo plugin (/DevOps/Jenkins/Jenkins_on_EC Setting up Master and Slave nodes (/DevOps/Jenkins/Jenkins_on_EC Jenkins Build Pipeline & Dependency Graph Plugins (/DevOps/Jenkins/Jenkins_Build_ Jenkins Build Flow Plugin (/DevOps/Jenkins/Jenkins_Build_ Jenkins Setting up Slave nodes on AWS (/DevOps/Jenkins/Jenkins_Slave_ Puppet Puppet with Amazon AWS I - Puppet accounts (/DevOps/Puppet/puppet_amaz Puppet with Amazon AWS II (ssh & puppetmaster/puppet install) (/DevOps/Puppet/puppet_amaz Puppet with Amazon AWS III - Puppet running Hello World (/DevOps/Puppet/puppet_amaz
  • 13. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1 Puppet Code Basics - Terminology (/DevOps/Puppet/puppet_basics Puppet with Amazon AWS on CentOS 7 (I) - Master setup on EC2 (/DevOps/Puppet/puppet_amaz Puppet with Amazon AWS on CentOS 7 (II) - Con guring a Puppet Master Server with Passenger and Apache (/DevOps/Puppet/puppet_amaz Puppet master /agent ubuntu 14.04 install on EC2 nodes (/DevOps/Puppet/puppet_instal Puppet master post install tasks - master's names and certi cates setup, (/DevOps/Puppet/puppet_maste Puppet agent post install tasks - con gure agent, hostnames, and sign request (/DevOps/Puppet/puppet_agent EC2 Puppet master/agent basic tasks - main manifest with a le resource/module and immediate execution on an agent node (/DevOps/Puppet/puppet_basic_ Setting up puppet master and agent with simple scripts on EC2 / remote install from desktop (/DevOps/Puppet/puppet_settin EC2 Puppet - Install lamp with a manifest ('puppet apply') (/DevOps/Puppet/puppet_amaz EC2 Puppet - Install lamp with a module (/DevOps/Puppet/puppet_amaz Puppet variable scope (/DevOps/Puppet/puppet_variab Puppet packages, services, and les (/DevOps/Puppet/puppet_packa
  • 14. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1 Puppet packages, services, and les II with nginx (/DevOps/Puppet/puppet_packa Puppet templates (/DevOps/Puppet/puppet_temp Puppet creating and managing user accounts with SSH access (/DevOps/Puppet/puppet_creati Puppet Locking user accounts & deploying sudoers le (/DevOps/Puppet/puppet_lockin Puppet exec resource (/DevOps/Puppet/puppet_exec_ Puppet classes and modules (/DevOps/Puppet/puppet_classe Puppet Forge modules (/DevOps/Puppet/Puppet_Forge Puppet Express (/DevOps/Puppet/puppet_expre Puppet Express 2 (/DevOps/Puppet/puppet_expre Puppet 4 : Changes (/DevOps/Puppet/puppet4_chan Puppet --con gprint (/DevOps/Puppet/puppet_con g Puppet with Docker (/DevOps/Docker/Docker_puppe Ansible 2 What is Ansible? (/DevOps/Ansible/Ansible_What Quick Preview - Setting up web servers with Nginx, con gure enviroments, and deploy an App (/DevOps/Ansible/Ansible_Settin SSH connection & running commands
  • 15. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1 (/DevOps/Ansible/Ansible- SSH-Connection-Setup-Run- Command.php) Modules (/DevOps/Ansible/Ansible- Modules.php) Playbooks (/DevOps/Ansible/Ansible- Playbooks.php) Handlers (/DevOps/Ansible/Ansible- Handlers.php) Roles (/DevOps/Ansible/Ansible- Roles.php) Playbook for LAMP HAProxy (/DevOps/Ansible/Ansible- Playbook-Lamp-HAProxy.php) Installing Nginx on a Docker container (/DevOps/Ansible/Ansible- Deploy-Nginx-to-Docker.php) AWS : Creating an ec2 instance & adding keys to authorized_keys (/DevOps/Ansible/Ansible-aws- creating-ec2-instance.php) AWS : Auto Scaling via AMI (/DevOps/Ansible/Ansible-aws- AutoScaling.php) AWS : creating an ELB & registers an EC2 instance from the ELB (/DevOps/Ansible/Ansible-aws- creating-elb-and-register-ec2- instance.php) Deploying Wordpress micro- services with Docker containers on Vagrant box via Ansible (/DevOps/Ansible/Docker- WordPress-Microservices- with-Nginx-reverse-proxy- Varnish-Mysql-Deployed-via- Ansible.php) Setting up Apache web server (/DevOps/Ansible/Ansible_Settin
  • 16. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1 Chef What is Chef? (/DevOps/Chef/Chef_What_is_Ch Chef install on Ubuntu 14.04 - Local Workstation via omnibus installer (/DevOps/Chef/Install_Chef_on_ Setting up Hosted Chef server (/DevOps/Chef/Chef_Setting_up_ VirtualBox via Vagrant with Chef client provision (/DevOps/Chef/Chef_Virtual_Ma Creating and using cookbooks on a VirtualBox node (/DevOps/Chef/Chef_Creating_a Chef server install on Ubuntu 14.04 (/DevOps/Chef/Chef_Server_inst Chef workstation setup on EC2 Ubuntu 14.04 (/DevOps/Chef/Chef_Setting_Up Chef Client Node - Knife Bootstrapping a node on EC2 ubuntu 14.04 (/DevOps/Chef/Chef_Client_Nod Elasticsearch search engine, Logstash, and Kibana
  • 17. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1 Elasticsearch, search engine (/Hadoop/ELK/ELK_Elastic_Searc Logstash with Elasticsearch (/Hadoop/ELK/ELK_ElasticSearch Logstash, Elasticsearch, and Kibana 4 (/Hadoop/ELK/ELK_ElasticSearch Elasticsearch with Redis broker and Logstash Shipper and Indexer (/Hadoop/ELK/ELK_Logstash_Sh Samples of ELK architecture (/Hadoop/ELK/ELK_Architecture_ Elasticsearch indexing performance (/Hadoop/ELK/ELK_Elastic_Searc Vagrant VirtualBox & Vagrant install on Ubuntu 14.04 (/DevOps/Vagrant/Vagrant_Virtu Creating a VirtualBox using Vagrant (/DevOps/Vagrant/Creating_Virt Provisioning (/DevOps/Vagrant/Vagrant_Prov Networking - Port Forwarding (/DevOps/Vagrant/Vagrant_Netw Vagrant Share (/DevOps/Vagrant/Vagrant_Shar Vagrant Rebuild & Teardown (/DevOps/Vagrant/Vagrant_Rebu Vagrant & Ansible (/DevOps/Vagrant/Vagrant_Ansi
  • 18. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1 Big Data & Hadoop Tutorials Hadoop 2.6 - Installing on Ubuntu 14.04 (Single-Node Cluster) (/Hadoop/BigData_hadoop_Insta Hadoop 2.6.5 - Installing on Ubuntu 16.04 (Single-Node Cluster) (/Hadoop/BigData_hadoop_Insta Hadoop - Running MapReduce Job (/Hadoop/BigData_hadoop_Run Hadoop - Ecosystem (/Hadoop/BigData_hadoop_Ecos CDH5.3 Install on four EC2 instances (1 Name node and 3 Datanodes) using Cloudera Manager 5 (/Hadoop/BigData_hadoop_CDH CDH5 APIs (/Hadoop/BigData_hadoop_CDH QuickStart VMs for CDH 5.3 (/Hadoop/BigData_hadoop_Quic VMs for CDH 5.3.x.php) QuickStart VMs for CDH 5.3 II - Testing with wordcount (/Hadoop/BigData_hadoop_Quic VMs for CDH 5.3.x_II.php) QuickStart VMs for CDH 5.3 II - Hive DB query (/Hadoop/BigData_hadoop_Quic Scheduled start and stop CDH services (/Hadoop/BigData_hadoop_CDH CDH 5.8 Install with QuickStarts Docker (/Hadoop/BigData_hadoop_CDH Zookeeper & Kafka Install (/Hadoop/BigData_hadoop_Zoo
  • 19. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 1 Zookeeper & Kafka - single node single broker (/Hadoop/BigData_hadoop_Zoo Zookeeper & Kafka - Single node and multiple brokers (/Hadoop/BigData_hadoop_Zoo OLTP vs OLAP (/Hadoop/BigData_hadoop_OLT Apache Hadoop Tutorial I with CDH - Overview (/Hadoop/BigData_hadoop_Clou Apache Hadoop Tutorial II with CDH - MapReduce Word Count (/Hadoop/BigData_hadoop_Tuto Apache Hadoop Tutorial III with CDH - MapReduce Word Count 2 (/Hadoop/BigData_hadoop_Tuto Apache Hadoop (CDH 5) Hive Introduction (/Hadoop/BigData_hadoop_CDH CDH5 - Hive Upgrade to 1.3 to from 1.2 (/Hadoop/BigData_hadoop_CDH Apache Hive 2.1.0 install on Ubuntu 16.04 (/Hadoop/BigData_hadoop_Hive Apache HBase in Pseudo- Distributed mode (/Hadoop/BigData_hadoop_HBa Creating HBase table with HBase shell and HUE (/Hadoop/BigData_hadoop_HBa Apache Hadoop : Hue 3.11 install on Ubuntu 16.04 (/Hadoop/BigData_hadoop_Hue Creating HBase table with Java API (/Hadoop/BigData_hadoop_HBa HBase - Map, Persistent, Sparse, Sorted, Distributed and Multidimensional (/Hadoop/BigData_hadoop_HBa
  • 20. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2 Flume with CDH5: a single- node Flume deployment (telnet example) (/Hadoop/BigData_hadoop_CDH Apache Hadoop (CDH 5) Flume with VirtualBox : syslog example via NettyAvroRpcClient (/Hadoop/BigData_hadoop_CDH List of Apache Hadoop hdfs commands (/Hadoop/BigData_Hadoop_fs_c Apache Hadoop : Creating Wordcount Java Project with Eclipse Part 1 (/Hadoop/BigData_hadoop_Crea Apache Hadoop : Creating Wordcount Java Project with Eclipse Part 2 (/Hadoop/BigData_hadoop_Crea Apache Hadoop : Creating Card Java Project with Eclipse using Cloudera VM UnoExample for CDH5 - local run (/Hadoop/BigData_hadoop_Crea Apache Hadoop : Creating Wordcount Maven Project with Eclipse (/Hadoop/BigData_hadoop_Crea Wordcount MapReduce with Oozie work ow with Hue browser - CDH 5.3 Hadoop cluster using VirtualBox and QuickStart VM (/Hadoop/BigData_hadoop_Quic Spark 1.2 using VirtualBox and QuickStart VM - wordcount (/Hadoop/BigData_hadoop_Apa Spark Programming Model : Resilient Distributed Dataset (RDD) with CDH (/Hadoop/BigData_hadoop_Apa Apache Spark 2.0.2 with PySpark (Spark Python API) Shell (/Hadoop/BigData_hadoop_Apa
  • 21. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2 Apache Spark 2.0.2 tutorial with PySpark : RDD (/Hadoop/BigData_hadoop_Apa Apache Spark 2.0.0 tutorial with PySpark : Analyzing Neuroimaging Data with Thunder (/Hadoop/BigData_hadoop_Apa Apache Spark Streaming with Kafka and Cassandra (/Hadoop/BigData_hadoop_Apa Apache Spark 1.2 with PySpark (Spark Python API) Wordcount using CDH5 (/Hadoop/BigData_hadoop_Apa Apache Spark 1.2 Streaming (/Hadoop/BigData_hadoop_Apa Apache Drill with ZooKeeper install on Ubuntu 16.04 - Embedded & Distributed (/Drill/Drill_Tutorial_Install_on_u Apache Drill - Query File System, JSON, and Parquet (/Drill/Drill_Tutorial_Query_File_ Apache Drill - HBase query (/Drill/Drill_Tutorial_Query_HBas Apache Drill - Hive query (/Drill/Drill_Tutorial_Query_Hive Apache Drill - MongoDB query (/Drill/Drill_Tutorial_Query_Mon Redis In- Memory Database Redis vs Memcached (/DevOps/Redis/Redis_vs_Memc Redis 3.0.1 Install (/DevOps/Redis/Redis_Install.ph
  • 22. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2 Setting up mulitple server instances on a Linux host (/DevOps/Redis/Redis_Setting_u Redis with Python (/python/python_redis_with_pyt ELK : Elasticsearch with Redis broker and Logstash Shipper and Indexer (/Hadoop/ELK/ELK_Logstash_Sh AWS (Amazon Web Services) AWS : Creating a snapshot (cloning an image) (/DevOps/AWS/aws_snapshot_a AWS : Attaching Amazon EBS volume to an instance (/DevOps/AWS/aws_attaching_A AWS : Adding swap space to an attached volume via mkswap and swapon (/DevOps/AWS/aws_adding_swa AWS : Creating an EC2 instance and attaching Amazon EBS volume to the instance using Python boto module with User data (/DevOps/AWS/aws_creating_an AWS : Creating an instance to a new region by copying an AMI (/DevOps/AWS/Launching- Instance-to-a-New-Region- from-an-AMI.php) AWS : S3 (Simple Storage Service) 1 (/DevOps/AWS/aws_S3_Simple_S AWS : S3 (Simple Storage Service) 2 - Creating and Deleting a Bucket
  • 23. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2 (/DevOps/AWS/aws_S3_Simple_S AWS : S3 (Simple Storage Service) 3 - Bucket Versioning (/DevOps/AWS/aws_S3_Simple_S AWS : S3 (Simple Storage Service) 4 - Uploading a large le (/DevOps/AWS/aws_S3_uploadin AWS : S3 (Simple Storage Service) 5 - Uploading folders/ les recursively (/DevOps/AWS/aws-uploading- recursive-folder- le.php) AWS : S3 (Simple Storage Service) 6 - Bucket Policy for File/Folder View/Download (/DevOps/AWS/aws-S3-bucket- policy-view-download.php) AWS : S3 (Simple Storage Service) 7 - How to Copy or Move Objects from one region to another (/DevOps/AWS/aws-s3- Con gure-Cross-Region- Replication-Source-and- Destination-Buckets-Owned- by-the-Same-AWS-Account- How-to-Copy-or-Move- Objects-from-one-Region-to- another.php) AWS : S3 (Simple Storage Service) 8 - Archiving S3 Data to Glacier (/DevOps/AWS/aws- S3-Simple-Storage-Service- Archiving-Amazon-S3-Data-to- Amazon-Glacier.php) AWS : Creating a CloudFront distribution with an Amazon S3 origin (/DevOps/AWS/aws_Creating_Cl AWS : WAF (Web Application Firewall) with precon gured CloudFormation template and Web ACL for CloudFront distribution (/DevOps/AWS/aws-WAF-Web- Application-Firewall.php) AWS : CloudWatch & Logs with Lambda Function / S3
  • 24. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2 (/DevOps/AWS/aws- CloudWatch-logs-Lambda- S3.php) AWS : CLI (Command Line Interface) (/DevOps/AWS/aws- CLI-Command-Line- Interface.php) AWS : CLI (ECS with ALB & autoscaling) (/DevOps/AWS/aws-Amazon- ECS-ALB-Autoscaling-CLI.php) AWS Application Load Balancer (ALB) and ECS with Flask app (/DevOps/AWS/aws- ELB-ALB-Application-Load- Balancer-ECS.php) AWS : Load Balancing with HAProxy (High Availability Proxy) (/DevOps/AWS/aws- Load-Balancing-with-HAProxy- High-Availability-Proxy.php) AWS : VirtualBox on EC2 (/DevOps/AWS/aws_VirtualBox_ AWS : NTP setup on EC2 (/DevOps/AWS/aws_NTP.php) AWS & OpenSSL : Creating / Installing a Server SSL Certi cate (/DevOps/AWS/aws- HTTPS-OpenSSL- Certi cate.php) AWS : OpenVPN Access Server 2 Install (/DevOps/AWS/aws- OpenVPN-Access-Server- Install.php) AWS : VPC (Virtual Private Cloud) 1 - netmask, subnets, default gateway, and CIDR (/DevOps/AWS/aws-VPC- Virtual-Private-Cloud-1- netmast-subnet-default- gateway-CIDR.php) AWS : VPC (Virtual Private Cloud) 2 - VPC Wizard (/DevOps/AWS/aws-VPC- Virtual-Private-Cloud-2-VPC- Wizard.php) AWS : VPC (Virtual Private
  • 25. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2 Cloud) 3 - VPC Wizard with NAT (/DevOps/AWS/aws-VPC- Virtual-Private-Cloud-3-VPC- Wizard-with-NAT.php) DevOps / Sys Admin Q & A (VI) - AWS VPC setup (public/private subnets with NAT) (/DevOps/DevOps-Sys- Admin-Interview-Questions- AWS-VPC-Setup.php) AWS - OpenVPN Protocols : PPTP, L2TP/IPsec, and OpenVPN (/DevOps/AWS/aws- VPN-Protocols-OpenVPN- IPsec-L2TP-PPTP.php) AWS : Autoscaling group (ASG) (/DevOps/AWS/aws- Autoscaling-Group-ASG.php) AWS : Adding a SSH User Account on Linux Instance (/DevOps/AWS/aws-adding-a- ssh-user-account-on-linux- instance.php) AWS : Windows Servers - Remote Desktop Connections using RDP (/DevOps/AWS/aws_Windows_S AWS : Scheduled stopping and starting an instance - python & cron (/DevOps/AWS/aws_stopping_st AWS : Elastic Beanstalk with NodeJS (/DevOps/AWS/aws- Elastic-Beanstalk-with- NodeJS.php) AWS : Detecting stopped instance and sending an alert email using Mandrill smtp (/DevOps/AWS/aws_detecting_st AWS : Identity and Access Management (IAM) Roles for Amazon EC2 (/DevOps/AWS/aws-IAM- Roles.php) AWS : Identity and Access Management (IAM) Policies (/DevOps/AWS/aws-IAM- Policies.php)
  • 26. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2 AWS : Creating IAM Roles and associating them with EC2 Instances in CloudFormation (/DevOps/AWS/aws-creating- IAM-Roles-and-associating- them-with-EC2-Instances-in- CloudFormation.php) AWS Identity and Access Management (IAM) Roles, SSO(Single Sign On), SAML(Security Assertion Markup Language), IdP(identity provider), STS(Security Token Service), and ADFS(Active Directory Federation Services) (/DevOps/AWS/aws-IAM-Roles- SSO-Single-Sign-On-SAML- Security-Assertion-Markup- Language-ADFS-Active- Directory-Federation- Services.php) AWS : Amazon Route 53 (/DevOps/AWS/aws-Route53- DNS.php) AWS : Amazon Route 53 - DNS (Domain Name Server) setup (/DevOps/AWS/aws-Route53- DNS-Domain-Name-Server- Setup.php) AWS : Amazon Route 53 - subdomain setup and virtual host on Nginx (/DevOps/AWS/aws-Route53- DNS-Subdomain.php) AWS Amazon Route 53 : Private Hosted Zone (/DevOps/AWS/aws-Route53- DNS-Private-Hosted- Zone.php) AWS : SNS (Simple Noti cation Service) example with ELB and CloudWatch (/DevOps/AWS/aws-Amazon- SNS-Simple-Noti cation- Service-example-with- ELB.php) AWS : Lambda with AWS CloudTrail (/DevOps/AWS/aws- Lambda-with-AWS-
  • 27. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2 CloudTrail.php) AWS : SQS (Simple Queue Service) with NodeJS and AWS SDK (/DevOps/AWS/aws- Amazon-SQS-Simple-Queue- Service-with-NodeJS-AWS- SDK.php) AWS : Redshift data warehouse (/DevOps/AWS/aws_Redshift_da AWS : CloudFormation - templates, change sets, and CLI (/DevOps/AWS/aws- CloudFormation- Templates.php) AWS : CloudFormation Bootstrap UserData/Metadata (/DevOps/AWS/aws- CloudFormation-Bootstrap- UserData.php) AWS : CloudFormation - Creating an ASG with rolling update (/DevOps/AWS/aws- CloudFormation-Autoscaling- Group-ASG-Application-Load- Balancer-ALB-with-Update- Policy-Rolling-Updates.php) AWS : OpsWorks (/DevOps/AWS/aws- OpsWorks.php) AWS CodeDeploy : Deploy an Application from GitHub (/DevOps/AWS/aws- CodeDeploy-Deploy-an- Application-from-GitHub.php) AWS EC2 Container Service (ECS) (/DevOps/AWS/aws- Amazon-EC2-Container- Service-ECS.php) AWS Hello World Lambda Function (/DevOps/AWS/aws- Hello-World-Lambda- Function.php) AWS Node.js Lambda Function & API Gateway (/DevOps/AWS/aws-Lambda- Nodejs-API-Gateway.php)
  • 28. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2 Amazon Kinesis Streams (/DevOps/AWS/aws-Amazon- Kinesis-Streams.php) Amazon DynamoDB (/DevOps/AWS/aws-Amazon- DynamoDB.php) Amazon ML (Machine Learning) (/DevOps/AWS/aws- ML-Machine-Learning.php) Simple Systems Manager (SSM) (/DevOps/AWS/aws- SSM.php) AWS : RDS Connecting to a DB Instance Running the SQL Server Database Engine (/DevOps/AWS/aws_Connecting_ AWS : RDS Importing and Exporting SQL Server Data (/DevOps/AWS/aws_RDS_Import AWS : RDS PostgreSQL & pgAdmin III (/DevOps/AWS/aws_RDS_Postgr AWS : RDS PostgreSQL 2 - Creating/Deleting a Table (/DevOps/AWS/aws_RDS_Postgr AWS : MySQL Replication : Master-slave (/DevOps/AWS/aws-MySQL- Replication-Master-Slave.php) AWS : MySQL backup & restore (/DevOps/AWS/aws- MySQL-Backup-mysqldump- Restore.php) AWS RDS : Cross-Region Read Replicas for MySQL and Snapshots for PostgreSQL (/DevOps/AWS/aws-RDS- Cross-Region-Read-Replicas- for-MySQL-Snapshot-for- PostgreSQLs.php) AWS : Restoring Postgres on EC2 instance from S3 backup (/DevOps/AWS/aws_S3_EC2_Pos AWS : Scaling-Up (/DevOps/AWS/aws-Scaling- Up.php)
  • 29. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 2 Powershell 4 Tutorial Powersehll : Introduction (http://www.bogotobogo.com/P Powersehll : Help System (http://www.bogotobogo.com/P Powersehll : Running commands (http://www.bogotobogo.com/P Powersehll : Providers (http://www.bogotobogo.com/P Powersehll : Pipeline (http://www.bogotobogo.com/P Powersehll : Objects (http://www.bogotobogo.com/P Powersehll : Remote Control (http://www.bogotobogo.com/P Windows Management Instrumentation (WMI) (http://www.bogotobogo.com/P How to Enable Multiple RDP Sessions in Windows 2012 Server (http://www.bogotobogo.com/P How to install and con gure FTP server on IIS 8 in Windows 2012 Server (http://www.bogotobogo.com/P How to Run Exe as a Service on Windows 2012 Server (http://www.bogotobogo.com/P SQL Inner, Left, Right, and Outer Joins (http://www.bogotobogo.com/P
  • 30. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 3 Git/GitHub Tutorial One page express tutorial for GIT and GitHub (/cplusplus/Git/Git_GitHub_Expr Installation (/cplusplus/Git/Git_GitHub_Insta add/status/log (/cplusplus/Git/Git_GitHub_statu commit and di (/cplusplus/Git/Git_GitHub_com git commit --amend (/cplusplus/Git/Git_GitHub_com Deleting and Renaming les (/cplusplus/Git/Git_GitHub_Dele Undoing Things : File Checkout & Unstaging (/cplusplus/Git/Git_GitHub_Undo Reverting commit (/cplusplus/Git/Git_GitHub_Reve Soft Reset - (git reset --soft <SHA key>) (/cplusplus/Git/Git_GitHub_Soft_ Mixed Reset - Default (/cplusplus/Git/Git_GitHub_Mixe Hard Reset - (git reset --hard <SHA key>) (/cplusplus/Git/Git_GitHub_Hard Creating & switching Branches (/cplusplus/Git/Git_GitHub_Crea Fast-forward merge (/cplusplus/Git/Git_GitHub_Fast- Forward_Merge.php) Rebase & Three-way merge (/cplusplus/Git/Git_GitHub_Reba
  • 31. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 3 Merge con icts with a simple example (/cplusplus/Git/Git_GitHub_Merg GitHub Account and SSH (/cplusplus/Git/GitHub_Account_ Uploading to GitHub (/cplusplus/Git/GitHub_Uploadin GUI (/cplusplus/Git/GitHub_GUI.php Branching & Merging (/cplusplus/Git/Git_Branching_M Merging con icts (/cplusplus/Git/Git_Branching_M GIT on Ubuntu and OS X - Focused on Branching (/cplusplus/Git/Git_Ubuntu.php) Setting up a remote repository / pushing local project and cloning the remote repo (/cplusplus/Git/Git_Setting_Up_R Fork vs Clone, Origin vs Upstream (/cplusplus/Git/GitHub_Fork_Clo Git/GitHub Terminologies (/cplusplus/Git/Git_Terminologie Git/GitHub via SourceTree I : Commit & Push (/cplusplus/Git/Git_GitHub_Sour Git/GitHub via SourceTree II : Branching & Merging (/cplusplus/Git/Git_GitHub_Sour Git/GitHub via SourceTree III : Git Work Flow (/cplusplus/Git/Git_GitHub_Sour Git/GitHub via SourceTree IV : Git Reset (/cplusplus/Git/Git_GitHub_Sour Git wiki - quick command reference (/cplusplus/Git/Git_GitHub_quick
  • 32. 13/4/2018 Dockerfiles : building Docker images automatically V (WORKDIR, ENV, ADD, and ENTRYPOINT) - 2018 http://www.bogotobogo.com/DevOps/Docker/Docker_Dockerfile_to_build_images_automatically_5_WORKDIR_ENV_ADD_ENTRYPOINT.php 3 Subversion Subversion Install On Ubuntu 14.04 (/cplusplus/Subversion/Subvers Subversion creating and accessing I (/cplusplus/Subversion/Subvers Subversion creating and accessing II (/cplusplus/Subversion/Subvers CONTACT BogoToBogo [email protected] (mailto:#) FOLLOW BOGOTOBOGO  (https://www.facebook.com/KHongSanFrancisco)  (https://twitter.com/KHongTwit)  (https://plus.google.com/u/0/+KHongSanFrancisco/posts) ABOUT US (/ABOUT_US.PHP) [email protected] (mailto:#) Golden Gate Ave, San Francisco, CA 94115 Golden Gate Ave, San Francisco, CA 94115 Copyright © 2016, bogotobogo Design: Web Master (http://www.bogotobogo.com)