You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/03/19 14:32:54 UTC

[GitHub] guatedude2 opened a new issue #72: How to populate with data build

guatedude2 opened a new issue #72: How to populate with data build
URL: https://github.com/apache/couchdb-docker/issues/72
 
 
   When creating a custom build, how does one populate the instance with data?
   when trying to use `curl` I get the following output:
   
   ```
   Step 1/3 : FROM couchdb:latest
    ---> 612df5f25616
   Step 2/3 : COPY local.ini /opt/couchdb/etc/
    ---> Using cache
    ---> 8014ca35a3eb
   Step 3/3 : RUN curl -X PUT http://127.0.0.1:5984/datastore
    ---> Running in dbc3f52dc398
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                    Dload  Upload   Total   Spent    Left  Speed
     0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to 127.0.0.1 port 5984: Connection refused
   ERROR: Service 'db' failed to build: The command '/bin/sh -c curl -X PUT http://127.0.0.1:5984/datastore' returned a non-zero code: 7
   ```
   
   here's my `Dockerfile`
   
   ```
   FROM couchdb:latest
   COPY local.ini /opt/couchdb/etc/
   RUN curl -X PUT http://127.0.0.1:5984/datastore
   ```
   
   Any ideas how this can be achieved during build?
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services