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

bootstrap.sh/test.sh failing for me - No module named boto #19

Open
drnic opened this issue Jul 31, 2017 · 2 comments
Open

bootstrap.sh/test.sh failing for me - No module named boto #19

drnic opened this issue Jul 31, 2017 · 2 comments

Comments

@drnic
Copy link

drnic commented Jul 31, 2017

docker run -ti -v $PWD:/repo centos bash

Inside the container:

cd /repo
chmod +x bootstrap.sh
./bootstrap.sh # note - I had to remove 'set -e' since it was quietly failing early
./test/test.sh

Output:

HOME=/tmp/tmp.4n7WIFREAf
Traceback (most recent call last):
  File "/repo/bin/rpm-s3", line 14, in <module>
    import boto
ImportError: No module named boto
@slavaaaaaaaaaa
Copy link

You probably need to install python-boto from epel in the container.

@rdodev
Copy link

rdodev commented Sep 7, 2018

@drnic we ran into several issues when trying to run in a container, so we just built our own as follows:

Dockerfile:

FROM centos:7

RUN yum update -y 
RUN yum install -y deltarpm python-deltarpm
RUN yum install -y rpm-sign

RUN curl "https://bootstrap.pypa.io/get-pip.py" | python

ADD . /rpm-s3
WORKDIR /rpm-s3

RUN pip install boto
  • build/tag the image, then run.

Worked for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants