Skip to content

Commit 341dee0

Browse files
author
SuJiaKuan
committed
Fix bugs of dockerization and execution of apps
1 parent d197ecb commit 341dee0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

apps/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ RUN pip3 --no-cache-dir install \
2323
COPY --chown=jager:jager analyzer.py .
2424
COPY --chown=jager:jager intrusion_detection.py .
2525
COPY --chown=jager:jager utils.py .
26+
COPY --chown=jager:jager events.py .
2627
COPY --chown=jager:jager coco.labels .
2728

2829
CMD python3 analyzer.py

deploy/docker_gen.py

+6
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ def _get_service_context(self, is_build=False):
8383

8484
def _get_app_context(self):
8585
context = self._config['apps']
86+
87+
# Remove the context of "base" because it is not an application to run.
88+
# TODO(JiaKuan Su): We need a standard to identify each one is an
89+
# application/service or not.
90+
context.pop('base', None)
91+
8692
return context
8793

8894
def generate(self, target, is_build=False):

0 commit comments

Comments
 (0)