Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Live Update on Dockerized App

Live Update on Dockerized App

Ngalam Backend Community

March 16, 2019
Tweet

More Decks by Ngalam Backend Community

Other Decks in Programming

Transcript

  1. We are Humanizing Interaction through Artificial Intelligence Reyhan Sofian Haqqi

    Software Engineer @ Kata.ai Co-lead @ Facebook Developer Circle Malang
  2. We are Humanizing Interaction through Artificial Intelligence Containers are small

    compared to VMs …depend on your base image and build stage…
  3. We are Humanizing Interaction through Artificial Intelligence Bind mounts …a

    file or directory on the host machine is mounted into a container…
  4. We are Humanizing Interaction through Artificial Intelligence Use Case -

    Sharing configuration files from the host machine to containers. E.g. DNS resolutions from `/etc/resolv.conf` - Sharing source code or build artifacts between a development environment on the Docker host and a container
  5. We are Humanizing Interaction through Artificial Intelligence Use Case -

    Sharing data among multiple running containers. E.g. environment variable configuration - Store data on a remote host or cloud providers - Back up, restore, or migrate data from one Docker host to another
  6. We are Humanizing Interaction through Artificial Intelligence Update the application

    configuration inside container without having restart the container
  7. We are Humanizing Interaction through Artificial Intelligence You need to

    change the value of your application’s configs …without downtime
  8. We are Humanizing Interaction through Artificial Intelligence Container can’t update

    the environment variable after it run …same with the running application…
  9. We are Humanizing Interaction through Artificial Intelligence Make your application

    read environment variables from file …you need file watcher tho…
  10. We are Humanizing Interaction through Artificial Intelligence Using `docker run`

    docker run —name container-name -v </path/on/host>:</path/on/container>
  11. We are Humanizing Interaction through Artificial Intelligence Using Docker Volume

    Name docker run —name container-name -v <volume-name>:</path/on/container> docker volume create <volume-name>