-1

我试图弄清楚如何为我的 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 

我从这里去哪里?

4

1 回答 1

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/',
    ],
 )
于 2016-07-05T08:37:49.910 回答