Python 3 / Upstream Kubernetes

This commit is contained in:
Shane McDonald
2019-01-14 17:33:01 -05:00
committed by Ryan Petrello
parent 2016798e0f
commit 04da4503db
6 changed files with 16 additions and 8 deletions

View File

@@ -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"]

View File

@@ -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")