mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
Python 3 / Upstream Kubernetes
This commit is contained in:
committed by
Ryan Petrello
parent
2016798e0f
commit
04da4503db
@@ -7,13 +7,14 @@ RUN yum install -y bzip2 \
|
||||
gettext \
|
||||
git \
|
||||
make \
|
||||
python \
|
||||
python-pip
|
||||
python36-setuptools
|
||||
|
||||
RUN curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -
|
||||
RUN yum install -y nodejs
|
||||
RUN npm set progress=false
|
||||
|
||||
RUN ln -s /usr/bin/python36 /usr/bin/python3
|
||||
|
||||
WORKDIR "/awx"
|
||||
|
||||
ENTRYPOINT ["/bin/bash", "-c"]
|
||||
|
||||
@@ -5,7 +5,7 @@ import os
|
||||
|
||||
def get_secret():
|
||||
if os.path.exists("/etc/tower/SECRET_KEY"):
|
||||
return file('/etc/tower/SECRET_KEY', 'rb').read().strip()
|
||||
return open('/etc/tower/SECRET_KEY', 'rb').read().strip()
|
||||
return os.getenv("SECRET_KEY", "privateawx")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user