Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 43fd35f

Browse files
authored
Merge pull request #59 from jmolmo/fix_dockerfile
Fixing problem installing with pip
2 parents 13d7ea4 + 9310c83 commit 43fd35f

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

Dockerfile

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ FROM centos:7
33
# Install dependencies
44
RUN yum -y install epel-release && \
55
yum -y install bash wget unzip \
6-
pexpect python-daemon bubblewrap gcc \
7-
bzip2 openssh openssh-clients python2-psutil\
8-
python36 python36-devel python36-setuptools\
9-
nginx supervisor && \
10-
localedef -c -i en_US -f UTF-8 en_US.UTF-8
11-
RUN easy_install-3.6 -d /usr/lib/python3.6/site-packages pip && \
12-
ln -s /usr/lib/python3.6/site-packages/pip3 /usr/local/bin/pip3
6+
pexpect python-daemon bubblewrap gcc \
7+
bzip2 openssh openssh-clients python2-psutil\
8+
python36 python36-devel python36-setuptools\
9+
nginx supervisor && \
10+
localedef -c -i en_US -f UTF-8 en_US.UTF-8
1311

14-
RUN /usr/local/bin/pip3 install ansible cryptography docutils psutil PyYAML \
15-
pyOpenSSL flask flask-restful uwsgi netaddr notario && \
16-
/usr/local/bin/pip3 install --no-cache-dir ansible-runner==1.3.2 && \
12+
RUN /usr/bin/python3 -m pip install ansible cryptography docutils psutil PyYAML \
13+
pyOpenSSL flask flask-restful uwsgi netaddr notario && \
14+
/usr/bin/python3 -m pip install --no-cache-dir ansible-runner==1.4.6 && \
1715
rm -rf /var/cache/yum
1816

1917
# Prepare folders for shared access and ssh

misc/nginx/uwsgi.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
# General settings
44
logto = /var/log/uwsgi.log
5-
plugin = python3
65

76
# App settings
87
chdir = /root/ansible-runner-service

0 commit comments

Comments
 (0)