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/09/06 20:47:32 UTC

[GitHub] code-noggin opened a new issue #104: Unable to use 2.2.0 as base image

code-noggin opened a new issue #104: Unable to use 2.2.0 as base image
URL: https://github.com/apache/couchdb-docker/issues/104
 
 
   <!--- Provide a general summary of the issue in the Title above -->
   
   ## Expected Behavior
   <!--- If you're describing a bug, tell us what should happen -->
   <!--- If you're suggesting a change/improvement, tell us how it should work -->
   I'm trying to use 2.2.0 as a base image for my own docker image. I should be able to run `apt-get update` in my Dockerfile without an error.
   ```
   FROM couchdb:2.2.0
   RUN apt-get update 
   ```
   
   ## Current Behavior
   <!--- If describing a bug, tell us what happens instead of the expected behavior -->
   <!--- If suggesting a change/improvement, explain the difference from current behavior -->
   
   The `apt-get update` fails when fetching `https://apache.bintray.com/couchdb-deb/dists/stretch/InRelease` because the `apt-transport-https` package was purged at https://github.com/apache/couchdb-docker/blob/f429c1ccf22fe8cf7717383462fbf2f56e6d0301/2.2.0/Dockerfile#L138. 
   
   Here's the build output:
   ```
   docker build  .
   Sending build context to Docker daemon  146.4kB
   Step 1/16 : FROM couchdb:2.2.0
    ---> 44b2522e3e4a
   Step 2/16 : RUN apt-get update
    ---> Running in e6de50b54b92
   Get:1 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
   Get:2 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [393 kB]
   Ign:3 http://cdn-fastly.deb.debian.org/debian stretch InRelease
   Get:4 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
   Get:5 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]
   Get:6 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2434 B]
   Get:7 http://cdn-fastly.deb.debian.org/debian stretch-updates/main amd64 Packages [5148 B]
   Get:8 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages [7099 kB]
   Fetched 7802 kB in 2s (2943 kB/s)
   Reading package lists...
   E: The method driver /usr/lib/apt/methods/https could not be found.
   E: Failed to fetch https://apache.bintray.com/couchdb-deb/dists/stretch/InRelease
   E: Some index files failed to download. They have been ignored, or old ones used instead.
   The command '/bin/sh -c apt-get update' returned a non-zero code: 100
   ```
   
   ## Possible Solution
   <!--- Not obligatory, but suggest a fix/reason for the bug, -->
   <!--- or ideas how to implement the addition or change -->
   
   Do not include `apt-transport-https` as one of the `buildDeps` at https://github.com/apache/couchdb-docker/blob/f429c1ccf22fe8cf7717383462fbf2f56e6d0301/2.2.0/Dockerfile#L114. 
   
   ## Steps to Reproduce (for bugs)
   <!--- Provide a link to a live example, or an unambiguous set of steps to -->
   <!--- reproduce this bug. Include code to reproduce, if relevant -->
   
   ```
   #!/bin/sh
   
   cat <<-END-OF-DOCKERFILE > Dockerfile.couchdb_extension
           FROM couchdb:2.2.0
           RUN apt-get update
   END-OF-DOCKERFILE
   
   docker build -f Dockerfile.couchdb_extension .
   ```
   
   ## Context
   <!--- How has this issue affected you? What are you trying to accomplish? -->
   <!--- Providing context helps us come up with a solution that is most useful in the real world -->
   
   I'm trying to create a custom docker image based on the official couchdb:2.2.0 docker image. My image will have custom couchdb config and run an additional application in the background.
   
   ## Your Environment
   <!--- Include as many relevant details about the environment you experienced the bug in -->
   * Version used: `Docker version 18.06.1-ce, build e68fc7a`
   * Browser Name and version: n/a
   * Operating System and version (desktop or mobile): macOS High Sierra
   * Link to your project: n/a
   
   

----------------------------------------------------------------
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