我正在试图弄清楚如何为我的OpenShift应用程序安装安全更新。
这是一个社区创建的openshift'flask'框架,似乎没有收到自动更新:
https://hub.openshift.com/quickstarts/116-flask
我试图关注https://docs.openshift.org/latest/install_config/upgrading/manual_upgrades.html#install-config-upgrading-manual-upgrades,但没有任何yum命令有效。
\> yum install atomic-openshift-utils
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:
Error: rpmdb open failed
我从哪里开始?
答案 0 :(得分:0)
你的是一个python应用程序,所以你需要从 setup.py 文件中说出它的依赖性。
把它放在那里并填写pypi链接到哪里找
#!/usr/bin/env python
from setuptools import setup
setup(
# GETTING-STARTED: set your app name:
name='YourAppName',
# GETTING-STARTED: set your app version:
version='1.0',
# GETTING-STARTED: set your app description:
description='OpenShift App',
# GETTING-STARTED: set author name (your name):
author='Your Name',
# GETTING-STARTED: set author email (your email):
author_email='example@example.com',
# GETTING-STARTED: set author url (your url):
url='http://www.python.org/sigs/distutils-sig/',
# GETTING-STARTED: define required django version:
install_requires=[
'Flask==0.11,
],
dependency_links=[
'https://pypi.python.org/simple/flask/',
],
)