From 311e6e34fdaa68fcef3618089e668e8287774cce Mon Sep 17 00:00:00 2001 From: leitosama Date: Tue, 20 Aug 2024 13:29:02 +0300 Subject: [PATCH 1/3] Fix OpenCTI-Platform/connectors#2507 Signed-off-by: leitosama --- internal-import-file/import-document/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal-import-file/import-document/Dockerfile b/internal-import-file/import-document/Dockerfile index 918fb50f1b..492ab81ce6 100644 --- a/internal-import-file/import-document/Dockerfile +++ b/internal-import-file/import-document/Dockerfile @@ -13,5 +13,6 @@ RUN apk --no-cache add git build-base libmagic libffi-dev libxml2-dev libxslt-de # Expose and entrypoint COPY entrypoint.sh / -RUN chmod +x /entrypoint.sh +RUN chmod +x /entrypoint.sh && chown -R :root /opt/opencti-connector-import-document && chmod -R g+rwX /opt/opencti-connector-import-document +WORKDIR /opt/opencti-connector-import-document ENTRYPOINT ["/entrypoint.sh"] From 03945e63882fd2c9d3a712df990d7589bcd09b04 Mon Sep 17 00:00:00 2001 From: leitosama Date: Wed, 21 Aug 2024 13:27:32 +0000 Subject: [PATCH 2/3] Fix OpenCTI-Platform#2507 for connector-import-file-stix Signed-off-by: leitosama --- internal-import-file/import-file-stix/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal-import-file/import-file-stix/Dockerfile b/internal-import-file/import-file-stix/Dockerfile index 9fdda79de5..12c0acb333 100644 --- a/internal-import-file/import-file-stix/Dockerfile +++ b/internal-import-file/import-file-stix/Dockerfile @@ -13,5 +13,6 @@ RUN apk --no-cache add git build-base libmagic libffi-dev libxml2-dev libxslt-de # Expose and entrypoint COPY entrypoint.sh / -RUN chmod +x /entrypoint.sh +RUN chmod +x /entrypoint.sh && chown -R :root /opt/opencti-connector-import-file-stix && chmod -R g+rwX /opt/opencti-connector-import-file-stix +WORKDIR /opt/opencti-connector-import-file-stix ENTRYPOINT ["/entrypoint.sh"] From 676ff8c268762233ad3dae4513e5d94241aff7e9 Mon Sep 17 00:00:00 2001 From: leitosama Date: Mon, 26 Aug 2024 17:34:51 +0000 Subject: [PATCH 3/3] Add HOME env to import-file-stix --- internal-import-file/import-file-stix/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/internal-import-file/import-file-stix/Dockerfile b/internal-import-file/import-file-stix/Dockerfile index 12c0acb333..871195d827 100644 --- a/internal-import-file/import-file-stix/Dockerfile +++ b/internal-import-file/import-file-stix/Dockerfile @@ -15,4 +15,5 @@ RUN apk --no-cache add git build-base libmagic libffi-dev libxml2-dev libxslt-de COPY entrypoint.sh / RUN chmod +x /entrypoint.sh && chown -R :root /opt/opencti-connector-import-file-stix && chmod -R g+rwX /opt/opencti-connector-import-file-stix WORKDIR /opt/opencti-connector-import-file-stix +ENV HOME=/opt/opencti-connector-import-file-stix ENTRYPOINT ["/entrypoint.sh"]