DataPower

DataPower

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Problem mounting volumes to save configuration with Datapower docker image

    Posted Sat October 24, 2020 10:48 PM

    I am using docker datapower image for local development. I am using this image

    https://hub.docker.com/layers/ibmcom/datapower/latest/images/sha256-35b1a3fcb57d7e036d60480a25e2709e517901f69fab5407d70ccd4b985c2725?context=explore

    Datapower version: IDG.10.0.1.0

    System: Docker for mac

    Docker version 19.03.13

    I am running the container with the following config

    docker run -it \ -v $PWD/config:/drouter/config \ -v $PWD/local:/drouter/local \ -e DATAPOWER_ACCEPT_LICENSE=true \ -e DATAPOWER_INTERACTIVE=true \ -p 9090:9090 \ -p 9022:22 \ -p 5554:5554 \ -p 8000-8010:8000-8010 \ ibmcom/datapower

    when I create files in file management or save a DP object configuration I do not see the changes reflected in the directory on my machine

    also I would expect to be able to create files on my host directory and see them reflected in /drouter/config + /drouter/local in the container as well as in the management GUI

    the volume mounts don't seem to be working correctly or perhaps I misunderstand something about Datapower or Docker

    I have tried mounting volumes in other docker containers under the same path and that works fine so I don't think its an issue with file sharing settings in docker.



    #DataPower
    #Support
    #SupportMigration


  • 2.  RE: Problem mounting volumes to save configuration with Datapower docker image
    Best Answer

    Posted Sun October 25, 2020 05:44 PM

    mounting the volumes like this fixed it for me

    -v $PWD/config:/opt/ibm/datapower/drouter/config \ -v $PWD/local:/opt/ibm/datapower/drouter/local \

    It seems the container is persisting configuration here instead. This is different than the instructions on dockerHub



    #DataPower
    #Support
    #SupportMigration


  • 3.  RE: Problem mounting volumes to save configuration with Datapower docker image
    Best Answer

    Posted Mon October 26, 2020 12:46 PM

    Hi,

    DataPower container internal folder structure changed in version 10. In older versions drouter folder was in the root. Apparently they haven't updated the instructions.

    --Hermanni



    #DataPower
    #Support
    #SupportMigration