fixes resource replace upload (#41)

* fixes resource replace upload

* Add rust and cargo in order to build cryptography

Co-authored-by: Marko Bocevski <marko.bocevski@keitaro.com>
This commit is contained in:
Blagoja Stojkoski 2021-02-18 14:36:39 +01:00 committed by GitHub
parent e4ab5814d2
commit 08c10f2dc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- ckan/ckan/logic/action/update.py 2021-02-17 16:46:55.673578728 +0100
+++ ckan/ckan/logic/action/update-edit.py 2021-02-17 16:47:28.905879170 +0100
@@ -929,7 +929,7 @@
'''
model = context['model']
- session = model.Session
+ session = model.meta.create_local_session()
context['session'] = session
user = context['user']

View File

@ -33,7 +33,9 @@ RUN apk add --no-cache \
libffi-dev \
openssl-dev \
libxml2-dev \
libxslt-dev
libxslt-dev \
rust \
cargo
# Create the src directory
RUN mkdir -p ${SRC_DIR}