@ladislavGazo
watch out!
Containers
[ kontanje:re ]
no guest OS
almost
we've heard Windows is coming :)
Scala stack?
Closure stack?
12 OpenSSHs on one machine?
4 balanced nginxes?
Scala stack?
Closure stack?
12 OpenSSHs on one machine?
4 balanced nginxes?
9 equal nginxes already there ;)
docker run --rm -ti nginx
docker ps -a
FROM dockerfile/java:oracle-java7
RUN useradd -m -s /bin/bash developer
RUN apt-get update && apt-get install -y mc
RUN apt-get install git-flow
ADD .alias /home/developer/
RUN export uid=1000 gid=1000 && \
mkdir -p /home/developer/opt && \
echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd
USER developer
ENV HOME /home/developer
CMD ["sudo", "/home/developer/entrypoint.sh"]
docker build --rm -t seges/mug-backend-java:oracle-7
docker images | grep nginx
Data
Service
Cron
nginx
spring boot
postgresql
80
One container
runit
nginx
spring boot
postgresql
80
spring boot
spring boot
postgresql
Scale
nginx
spring boot
app data
--volume-from
--link
--volume
/opt/docker/app/data
80
--publish
nginx
spring boot
app data
--volume-from
--link
--volume
/opt/docker/app/data
80
--publish
app config
Mug Developer's toolkit
$ git clone mypowerproject
$ cd mypowerproject-server
$ mug
34@89530> mvn clean install
$ cd mypowerproject-client
$ mug
9687d932> gulp build
docker run -ti --rm \ -e DISPLAY=$DISPLAY \ -v /tmp/.X11-unix:/tmp/.X11-unix \ firefox
Fleet
Ambassador
Bash
Consul
Registrator
DNS
Good practice is good practice
host persistent vs. not
check Dockerfile
so try not to in the container
inherit images
often UTF-8 is forgotten
although isolated, security rules still apply
think twice because of scalability and discovery
or nice & formatted Bash scripts
icc=false
e.g. in creating /separating microservices
golden rule
gazo@seges.sk
need a workshop? consulting? contact me...