-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addressed comments for Unified Dockerfile
Signed-off-by: Tushar Tathgur <[email protected]>
- Loading branch information
Tushar Tathgur
authored and
Tushar Tathgur
committed
Mar 7, 2023
1 parent
05d77bd
commit 557cd9a
Showing
5 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
FROM gcr.io/spark-operator/spark-py:v3.1.1 | ||
|
||
LABEL maintainer="Antrea <[email protected]>" | ||
LABEL description="A docker image to deploy policy recommendation and throughput anomaly detector Spark job." | ||
LABEL description="A docker image to deploy policy recommendation and throughput anomaly detection Spark job." | ||
|
||
WORKDIR /opt/spark/work-dir | ||
USER root | ||
|
@@ -13,11 +13,11 @@ RUN apt-get --allow-releaseinfo-change update && \ | |
COPY plugins/policy-recommendation/policy_recommendation_job.py /opt/spark/work-dir/policy_recommendation_job.py | ||
COPY plugins/policy-recommendation/policy_recommendation_utils.py /opt/spark/work-dir/policy_recommendation_utils.py | ||
COPY plugins/policy-recommendation/antrea_crd.py /opt/spark/work-dir/antrea_crd.py | ||
COPY plugins/anomaly-detection/AnomalyDetection.py /opt/spark/work-dir/AnomalyDetection.py | ||
COPY plugins/anomaly-detection/requirements.txt /opt/spark/work-dir/requirements.txt | ||
COPY plugins/anomaly-detection/anomaly_detection.py /opt/spark/work-dir/anomaly_detection.py | ||
COPY plugins/anomaly-detection/requirements.txt /opt/spark/work-dir/anomaly_detection_requirements.txt | ||
|
||
|
||
RUN pip3 install --upgrade pip && \ | ||
pip3 install pyyaml && \ | ||
pip3 install kubernetes && \ | ||
pip3 install -r /opt/spark/work-dir/requirements.txt | ||
pip3 install -r /opt/spark/work-dir/anomaly_detection_requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters