File tree Expand file tree Collapse file tree 6 files changed +15
-12
lines changed Expand file tree Collapse file tree 6 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 5
5
# ## the COMPOSE_FILE variable each separated with ':'. If you are on windows, replace all ':' with ';'.
6
6
# ## Reference to Docker's official Docs: https://docs.docker.com/compose/reference/envvars/#compose_file#compose_file
7
7
8
- INTELOWL_TAG_VERSION = v1.5.0
8
+ INTELOWL_TAG_VERSION = v1.5.1
9
9
10
10
# ##### Default (Production) ######
11
11
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ ENV DJANGO_SETTINGS_MODULE intel_owl.settings
5
5
ENV PYTHONPATH /opt/deploy/intel_owl
6
6
ENV LOG_PATH /var/log/intel_owl
7
7
ENV ELASTICSEARCH_DSL_VERSION 7.1.4
8
+ ENV watch_logs_cmd "watch -n1 tail -n10 /var/log/intel_owl/django/api_app.log"
8
9
9
10
RUN mkdir -p ${LOG_PATH} \
10
11
${LOG_PATH}/django ${LOG_PATH}/uwsgi \
Original file line number Diff line number Diff line change 1
1
# Stage 1: Get build artifacts from intelowl-ng
2
- FROM intelowlproject/intelowl_ng:v1.5.0 AS angular-prod-build
2
+ FROM intelowlproject/intelowl_ng:v1.5.1 AS angular-prod-build
3
3
4
4
# Stage 2: Inject the build artifacts into nginx container
5
5
FROM library/nginx:1.16.1-alpine
Original file line number Diff line number Diff line change @@ -211,14 +211,6 @@ def send_analysis_request(request):
211
211
{"error" : "813" }, status = status .HTTP_400_BAD_REQUEST
212
212
)
213
213
214
- runtime_conf = data_received .get ("runtime_configuration" , None )
215
- if runtime_conf :
216
- if not isinstance (runtime_conf , dict ):
217
- return Response (
218
- {"error" : "817" }, status = status .HTTP_400_BAD_REQUEST
219
- )
220
- params ["runtime_configuration" ] = runtime_conf
221
-
222
214
# we need to clean the list of requested analyzers,
223
215
# ... based on configuration data
224
216
analyzers_config = helpers .get_analyzer_config ()
@@ -274,7 +266,7 @@ def send_analysis_request(request):
274
266
general .start_analyzers (
275
267
params ["analyzers_to_execute" ],
276
268
analyzers_config ,
277
- runtime_conf ,
269
+ serialized_data [ "runtime_configuration" ] ,
278
270
job_id ,
279
271
md5 ,
280
272
is_sample ,
Original file line number Diff line number Diff line change
1
+ import json
2
+
1
3
from django .contrib .auth .models import Group
2
4
from rest_framework import serializers
3
5
from rest_framework_guardian .serializers import ObjectPermissionsAssignmentMixin
@@ -99,6 +101,14 @@ def get_permissions_map(self, created):
99
101
"view_job" : [* grps ],
100
102
}
101
103
104
+ def validate (self , data ):
105
+ # check and validate runtime_configuration
106
+ runtime_conf = data .get ("runtime_configuration" , {})
107
+ if runtime_conf and isinstance (runtime_conf , list ):
108
+ runtime_conf = json .loads (runtime_conf [0 ])
109
+ data ["runtime_configuration" ] = runtime_conf
110
+ return data
111
+
102
112
def create (self , validated_data ):
103
113
tags = validated_data .pop ("tags_id" , None )
104
114
job = Job .objects .create (** validated_data )
Original file line number Diff line number Diff line change 22
22
author = "Matteo Lodi"
23
23
24
24
# The full version, including alpha/beta/rc tags
25
- release = "1.5.0 "
25
+ release = "1.5.1 "
26
26
27
27
28
28
# -- General configuration ---------------------------------------------------
You can’t perform that action at this time.
0 commit comments