Skip to content

Dockerfile with data #35

@Maxima078

Description

@Maxima078

Hi, this is probably related to #34 but just in case this is what I'm trying to do:

I'm preparing a Dockerfile from apache/couchdb:2.1.0. I want to overwrite local.ini and prepare data (default databases and _users database with design among other things). It was really easy to import my local.ini with the COPY command. But I cannot use ADD to import my own data folder, it's always erased by the container data. Here is my Dockerfile:

FROM apache/couchdb:2.1.0
MAINTAINER Max <maxima078@gmail.com>
ADD /data /opt/test/data
COPY local.ini /opt/couchdb/etc/local.ini

Is that even possible?

Thanks for any hints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions