Bug 1373035

Summary: Please help me install these dependencies libjpeg8 libjpeg8-dev build-dep python-imaging
Product: OpenShift Online Reporter: Nhan <nhantrantnt>
Component: BuildAssignee: Cesar Wong <cewong>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Wang Haoran <haowang>
Severity: low Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, nhantrantnt, pweil, wewang
Target Milestone: ---Flags: cewong: needinfo? (nhantrantnt)
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-14 20:08:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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?