Understanding how to import a map.osm file into a postgres database.

I was just reading a tutorial HERE.

I am assigned with the following task:

  • Nginx proxy (jwilder/nginx-proxy) Connection reset by peer (502 Bad Gateway)
  • fetch all maven dependencies including plugin dependencies
  • insufficient_scope error with docker registry v2 and curl
  • Proxying request from webpack 2 using webpack-dev-server to backend api in docker containers
  • Connection issue with Jenkins within Docker on RaspberryPi 3 (rpi-jenkins) when cloning a Bitbucket Git Repo
  • docker .env file reuse declared variables
  • The task is to create a Docker image that has PostgreSQL installed.
    The PostgreSQL database should be PostGIS-enabled. The Docker image
    should also allow quick and easy import of an .osm map data file into
    the database. The database should contain a routable osm-based road
    network which can be used to run simple default pgRouting queries
    (shortest path, A star).

    I know how to do the initial and final part of it but i am a bit confused about the following part:

    The Docker image should also allow quick and easy import of an .osm
    map data file into the database.

    How do i make this possible ? Dockerfile ? but still how ?

  • How to mount a directory in the docker container to the host?
  • Bcrypt: invalid ELF header with Docker and Sails.JS
  • Unable to ssh to master node in mesos local cluster installed system
  • can't run docker container with simple node app example in bluemix
  • Generating new (not renewed) SSL Certificates with “letsencrypt certonly” in non-interactive mode
  • Docker swarm replicas on different nodes
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.