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:

  • how to simply run image with volume
  • How to use docker image, without mounting the default volumes?
  • Oci runtime error docker-compose not a directory
  • 502 Bad Gateway Error(Nginx as Docker container + Consul Docker run + Tomcat as a Docker container + Nomad)
  • docker run complains file not found
  • How can I remove the Cmd entry from a Docker image configuration?
  • 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 ?

  • Use Container Metrics from Prometheus
  • How to run appium test using aluedeke/appium-android docker image?
  • Set hostname of service container to host's hostname
  • Using UnixSignal in Mono throws System.ArgumentException
  • How to control how many docker services to run on each EC2?
  • Unsupported config option: 'healthcheck'
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.