mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-29 05:35:43 +01:00
130452111b
Vulnerability Scan Data (CVE) Export Functionality Proposal - goharbor/community#174 Closes - https://github.com/goharbor/harbor/issues/17150 Changes: * CVE Data export to CSV with filtering support. * Implement CSV data export job for creating CSVs * APIs to trigger CSV export job executions Signed-off-by: prahaladdarkin <prahaladd@vmware.com>
25 lines
848 B
Docker
25 lines
848 B
Docker
ARG harbor_base_image_version
|
|
ARG harbor_base_namespace
|
|
FROM ${harbor_base_namespace}/harbor-jobservice-base:${harbor_base_image_version}
|
|
|
|
COPY ./make/photon/common/install_cert.sh /harbor/
|
|
COPY ./make/photon/jobservice/entrypoint.sh /harbor/
|
|
COPY ./make/photon/jobservice/harbor_jobservice /harbor/
|
|
|
|
|
|
RUN chown -R harbor:harbor /etc/pki/tls/certs \
|
|
&& chown -R harbor:harbor /harbor/ \
|
|
&& chmod u+x /harbor/entrypoint.sh \
|
|
&& chmod u+x /harbor/install_cert.sh \
|
|
&& chmod u+x /harbor/harbor_jobservice
|
|
|
|
WORKDIR /harbor/
|
|
|
|
USER harbor
|
|
|
|
VOLUME ["/var/log/jobs/", "/var/scandata_exports"]
|
|
|
|
HEALTHCHECK CMD curl --fail -s http://localhost:8080/api/v1/stats || curl -sk --fail --key /etc/harbor/ssl/job_service.key --cert /etc/harbor/ssl/job_service.crt https://localhost:8443/api/v1/stats || exit 1
|
|
|
|
ENTRYPOINT ["/harbor/entrypoint.sh"]
|