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:

  • Docker container published ports not accessible?
  • Dockerized Rails 5 RC1 application not picking up updates to controllers and models in development
  • FROM Command in Docker File
  • How to setup heroku app locally using docker?
  • How to use sendmail on docker
  • Running a Docker container on AWS Elastic Beanstalk - 502 Bad Gateway nginx/1.6.2
  • 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 ?

  • Can docker containers be run on live web servers?
  • Docker 1.13.0 volume mapping file corruption
  • Where does Travis CI put my source files?
  • Centos docker container crashes with 6 Segmentation fault - where's the core dump
  • ECONNREFUSED for Postgres on nodeJS with dockers
  • How to get Container Id of Docker in Jenkins
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.