Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while creating docker image of azure-cli with Alpine linux as base image #4352

Closed
kishorebasisth opened this issue Aug 31, 2017 · 2 comments
Labels
Packaging question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@kishorebasisth
Copy link

Description

I am trying to create a Alpine docker image with azure-cli installed on it.

My docker files is as follow:

FROM alpine:3.4
RUN set -x \
        && apk update \
        && apk add --no-cache bash \
                              python \
                              curl \
                              coreutils \ 
                              openssl \
                              jq \
                              py-pip \
        && apk add --virtual=build \
                             gcc \
                             libffi-dev \
                             musl-dev \
                             libxml2-dev \
                             libxslt-dev \    
                             linux-headers \   
                             gcc \    
                             libffi \                        
                             openssl-dev \
                             python-dev \    
        && pip install azure-cli \    
        && apk del --purge build

When I run the docker build command, I get the following errors:

config.status: creating src/libsodium/include/sodium/version.h
    config.status: creating test/default/Makefile
    config.status: creating test/Makefile
    config.status: executing depfiles commands
    config.status: executing libtool commands
    error: [Errno 2] No such file or directory

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ayCiZW/pynacl/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-3Yq3c3-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ayCiZW/pynacl/
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

What am I doing wrong here? Am I missing any dependencies?

@derekbekoe derekbekoe added Packaging question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Aug 31, 2017
@derekbekoe
Copy link
Member

The CLI Docker image is built from python:3.5.2-alpine
https://github.com/Azure/azure-cli/blob/master/Dockerfile

That Docker file may help you.

@kishorebasisth
Copy link
Author

kishorebasisth commented Sep 1, 2017

@derekbekoe Thanks a lot, I was missing make on the image. I will close this issue.

@haroldrandom haroldrandom added Packaging question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Packaging question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

3 participants