Bug 1373035 - Please help me install these dependencies libjpeg8 libjpeg8-dev build-dep python-imaging [NEEDINFO]
Summary: Please help me install these dependencies libjpeg8 libjpeg8-dev build-dep pyt...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Build
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Cesar Wong
QA Contact: Wang Haoran
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-05 00:40 UTC by Nhan
Modified: 2016-10-14 20:08 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-14 20:08:38 UTC
Target Upstream Version:
cewong: needinfo? (nhantrantnt)


Attachments (Terms of Use)

Description Nhan 2016-09-05 00:40:34 UTC
Description of problem:
I am running Django 1.10 and this requires the dependencies below to work properly
 libjpeg8 libjpeg8-dev build-dep python-imaging

I have tried apt-get and yum, but no luck. Could you please please help me?
$ apt-get install libjpeg8 libjpeg8-dev
$ apt-get build-dep python-imaging


Version-Release number of selected component (if applicable):


How reproducible:
VERY

Steps to Reproduce:
1. Install Mezzanine + Django following this http://mezzanine.jupo.org/
2. Put that django/python app on openshift
3. deploy. When you try to upload the image to the website, some features such as generating thumbnail doesn't work because of the missing dependencies

I just need to install the above packages!

Comment 1 Cesar Wong 2016-09-05 03:04:17 UTC
You need to be root inside the container in order to install additional packages. You can create your own builder image that includes your dependencies:

-----
FROM openshift/python-33-centos7:latest

# Switch to root
USER root

# Install your packages
RUN yum -y install [ ... your dependencies here ... ]

# Reset the user
USER 1001
-----

Build that image locally and push it to docker hub or to the OpenShift online registry. Then use that image to build your source code.

Comment 2 Cesar Wong 2016-09-30 03:15:24 UTC
Did the above suggestion solve your problem?


Note You need to log in before you can comment on or make changes to this bug.