Skip to main content
Participating Frequently
Jun 9, 2023 2:18 PM UTC
Answered

Issues with building Adobe's docker image.

The documentation states : "For importing configurations using CAR, the CAR archives mounted to the /data directory are automatically imported during startup."  ( https://helpx.adobe.com/coldfusion/using/docker-images-coldfusion.html ) .

 

I have a .car file in there, but I don't see that it is imported. As a simple test, I just added a couple datasources, and then run the packaging & deployment > create an archive. This is how my directory structure looks like : 

C:\coldfusion-docker\docker-compose.yaml        

                                  \coldfusion.env

                                  \data\cf.car

 

When I run docker-compose up, the CF admin does not have those datasources.

 

Also, I am running this instance on port 8506. I am having trouble finding these files. Where are they located?

 

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Charlie Arehart
    Charlie ArehartCorrect answer
    Community Expert
    Jun 17, 2023 9:54 PM UTC

    The data folder needs to be IN the image, not just in the path where you RUN the image. You can either copy it in (like in a dockerfile), or by adding a volume mapping in the compose file to mount the latter into the former. I show that specifically here:

     

    https://github.com/carehart/awesome-cf-compose/tree/master/cf-2021-car-setup

     

    which is one of dozens of compose examples for working with CF images. Hope it gets you going and takes you still farther. 

    /Charlie (troubleshooter, carehart. org)

    6 replies

    Participant
    Apr 26, 2024 9:06 PM UTC

    I'm not having that problem, I have my volumes mounted and I can see the car file, but I'm trying to spin up a docker container, which has three cf instances, one being cfusion and two others but I can't figure out how to create multiple instances in the same container, using car files.

    I'm also migrating from cf2016 using car files and I want to use them to migrate them to cf2023 using a setupconfig script
    similar to this:
    <?xml version="1.0" encoding="UTF-8">
    <setupconfig>
    <runsetupwizard>false</runsetupwizard>
    <runmigrationwizard>true</runmigrationwizard>
    <runmxmigrationwizard>false</runmxmigrationwizard>
    <runsecureprofile>false</runsecureprofile>
    <migratecf2021>false</migratecf2021>
    <migratecf2018>false</migratecf2018>
    <migratecf2016>false</migratecf2016>
    <migratecf11/>
    <migratecf10/>
    <setupoptions>
    <sampleapps>false<</sampleapps>
    <odbc>false</odbc>
    <enablerds>true</enablerds>
    </setupoptions>
    </setupconfig>

    Translate
    Charlie Arehart
    Community Expert
    Charlie ArehartCommunity ExpertCorrect answer
    Community Expert
    Jun 17, 2023 9:54 PM UTC

    The data folder needs to be IN the image, not just in the path where you RUN the image. You can either copy it in (like in a dockerfile), or by adding a volume mapping in the compose file to mount the latter into the former. I show that specifically here:

     

    https://github.com/carehart/awesome-cf-compose/tree/master/cf-2021-car-setup

     

    which is one of dozens of compose examples for working with CF images. Hope it gets you going and takes you still farther. 

    Translate
    /Charlie (troubleshooter, carehart. org)
    CF NinjaAuthor
    Participating Frequently
    Jun 20, 2023 5:46 PM UTC

    Adding this mapping worked : 

    - ./data:/data
    Thanks
    Translate
    Charlie Arehart
    Community Expert
    Community Expert
    Jun 20, 2023 7:18 PM UTC

    Yep, that's what I was proposing amd which my compose file showed. I wanted to offer that more complete example for those who may benefit from it, and the rest of the examples. 

    Translate
    /Charlie (troubleshooter, carehart. org)
    CF NinjaAuthor
    Participating Frequently
    Jun 9, 2023 2:27 PM UTC

     Just noticed this, not sure why my cf.car is not listed.

     

    Translate
    CF NinjaAuthor
    Participating Frequently
    Jun 17, 2023 1:39 PM UTC

    all crickets?

    Translate