Custom docker run script


We use Neo4j with APOC plugin, and we need to change some configuration by mounting conf volume, and this need a custom run script

docker run --rm \
    --volume=$HOME/neo4j/conf:/conf \
    neo4j:3.4 dump-config

How can we use the image with this custom run script?

this is a sample of our config.yml:

version: 2
      - image: circleci/php:7.2.3-node-browsers
      # - image: elasticsearch
      - image: digitalcloudsa/neo4j

    working_directory: ~/repo

Have a look in the docs for subkeys under the docker key - I believe there is something called command, in which you can supply the command dump-config.

However you can’t supply a --volume as far as I know - that would expect a volume on the Docker host, not in your build container, and of course you cannot do that for security reasons. Do you need this?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.