~alpine/users

2 2

[alpine-user] Mongo DB Tools

Details
Message ID
<CANKXKxE=-rafvmwyV1ysUz=2FiL2LEkvAy7R4=HvqXHsE7Q6jw@mail.gmail.com>
Sender timestamp
1523173257
DKIM signature
missing
Download raw message
Dear All,

I am building a Docker Image from  node:8-Alpine, and I am trying to add
not only mongodb but also mongodb-tools (mongorestore, mongodump etc
commands), and apk add mongodb-tools is not working:

libsasl2-dev (missing):
    required by: world[libsasl2-dev]

but I have added libsasl2-dev earlier:


RUN apk update && apk upgrade && \
    apk add \
      bash \
      g++ \
      gcc \
      make \
      boost-system \
      boost \
      mongodb \
      go \
      libsasl2-dev \
      libpcap \
      libpcap-dev \
      mongodb-tools \
      --no-cache && \
    rm -rf /var/cache/apk/*

Can you please let me know how to install mongodb-tools?

Thanks,

Gabor
Details
Message ID
<20180408085815.GA29198@alpine.my.domain>
In-Reply-To
<CANKXKxE=-rafvmwyV1ysUz=2FiL2LEkvAy7R4=HvqXHsE7Q6jw@mail.gmail.com> (view parent)
Sender timestamp
1523177895
DKIM signature
missing
Download raw message
Gabor Toth wrote:

> I am building a Docker Image from  node:8-Alpine, and I am trying to
> add not only mongodb but also mongodb-tools (mongorestore, mongodump
> etc commands), and apk add mongodb-tools is not working:
> Can you please let me know how to install mongodb-tools?

Hi,

libsasl2-dev is a non-existent package. "apk add mongodb-tools" works
in edge. Which version are you using? In 3.7 the dependencies are:
libpcap, libressl2.6-libcrypto, libress2.6-libssl, libsasl, musl.
In edge: libpcap, libsasl, musl. cyrus-sasl-dev is needed to build it.

Cheers

--
caóc



---
Unsubscribe:  alpine-user+unsubscribe@lists.alpinelinux.org
Help:         alpine-user+help@lists.alpinelinux.org
---
Details
Message ID
<CANKXKxGyr7_T6cEN=Dhw1LxdHa8TTvSHyT=LqLzgEA=vk9KthQ@mail.gmail.com>
In-Reply-To
<20180408085815.GA29198@alpine.my.domain> (view parent)
Sender timestamp
1523255114
DKIM signature
missing
Download raw message
Hi,

Many thanks for the answer. cat /etc/apk/repositories output after building
the container

http://dl-cdn.alpinelinux.org/alpine/v3.6/main

http://dl-cdn.alpinelinux.org/alpine/v3.6/community

http://dl-2.alpinelinux.org/alpine/edge/community/


After this I tried this in the container but did not work:

sudo apk add --update --repository http://dl-cdn.alpinelinux.org/
alpine/v3.7/community mongodb-tools

I am wondering how I can add the edge repo when building the docker
container? Are dependencies automatically added or should I apk update them
myself?

Thanks,

Gabor


2018-04-08 10:58 GMT+02:00 Cág <ca6c@bitmessage.ch>:

> Gabor Toth wrote:
>
> > I am building a Docker Image from  node:8-Alpine, and I am trying to
> > add not only mongodb but also mongodb-tools (mongorestore, mongodump
> > etc commands), and apk add mongodb-tools is not working:
> > Can you please let me know how to install mongodb-tools?
>
> Hi,
>
> libsasl2-dev is a non-existent package. "apk add mongodb-tools" works
> in edge. Which version are you using? In 3.7 the dependencies are:
> libpcap, libressl2.6-libcrypto, libress2.6-libssl, libsasl, musl.
> In edge: libpcap, libsasl, musl. cyrus-sasl-dev is needed to build it.
>
> Cheers
>
> --
> caóc
>
>
>
> ---
> Unsubscribe:  alpine-user+unsubscribe@lists.alpinelinux.org
> Help:         alpine-user+help@lists.alpinelinux.org
> ---
>
>
Reply to thread Export thread (mbox)