我正在寻找一个扩展,该扩展使CKAN能够将资源上传到AWS S3等云存储。我正在寻找具有适当支持并支持最新CKAN版本的产品。到目前为止,我已经研究过;
CKAN CloudConnectorhttps://extensions.ckan.org/extension/cloudconnector/
将资源上传到AWS S3的CKAN扩展https://extensions.ckan.org/extension/s3-resources/
开放式知识基金会https://github.com/okfn/ckanext-s3filestore
ckanext-cloudstoragehttps://github.com/open-data/ckanext-cloudstorage
FileStore和文件上传(看起来不再受支持)https://docs.ckan.org/en/ckan-1.7.4/filestore.html#cloud-storage
我是CKAN领域的新手,因此非常感谢您的帮助。
问候
我尝试了您提到的所有扩展。但并非所有文件都会自动上传到s3
您能否参考以下信息?
在此示例中,我们将输入运行中的ckan容器,从源代码安装ckanext-geoview,从GitHub安装ckanext-showcase,从PyPi安装ckanext-envvars:
# Enter the running ckan container:
docker exec -it ckan /bin/bash -c "export TERM=xterm; exec bash"
# Inside the running container, activate the virtualenv
source $CKAN_VENV/bin/activate && cd $CKAN_VENV/src/
# Option 1: From source
git clone https://github.com/ckan/ckanext-geoview.git
cd ckanext-geoview
pip install -r pip-requirements.txt
python setup.py install
python setup.py develop
cd ..
# Option 2: Pip install from GitHub
pip install -e "git+https://github.com/ckan/ckanext-showcase.git#egg=ckanext-showcase"
# Option 3: Pip install from PyPi
pip install ckanext-envvars
# exit the ckan container:
exit
我选择了ckanext-cloudstorage https://github.com/open-data/ckanext-cloudstorage作为要使用的扩展名。易于设置和配置。
我在使用S3权限时遇到了一些麻烦。因此,请确保S3设置正确。我使用s3api命令来验证我的访问权限。