@sw-tsdk/connector 3.9.1 → 3.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# syntax=docker/dockerfile:1.2
|
|
2
|
+
ARG BASE_COMPILE_IMAGE_NAME=quay.io/swimlane-connectors/connector-python-compile-definition-base:3.12-latest
|
|
3
|
+
ARG RUNNER_IMAGE_NAME=quay.io/swimlane-connectors/connector-python-runner-definition-base:3.12-latest
|
|
4
|
+
ARG RUNTIME_IMAGE=runtime-image
|
|
5
|
+
ARG DEBUG=false
|
|
6
|
+
FROM ${BASE_COMPILE_IMAGE_NAME} AS compile-image
|
|
7
|
+
|
|
8
|
+
COPY compile.* /scripts/
|
|
9
|
+
RUN if [ $(stat -c %s "/scripts/compile.txt") -ne 0 ]; then apt-get update && xargs -a /scripts/compile.txt apt-get install -y --no-install-recommends; fi
|
|
10
|
+
RUN if [ $(stat -c %s "/scripts/compile.sh") -ne 0 ]; then chmod +x /scripts/compile.sh && /scripts/compile.sh; fi
|
|
11
|
+
RUN rm -rf /scripts
|
|
12
|
+
|
|
13
|
+
# Install OS packages
|
|
14
|
+
COPY requirements.txt .
|
|
15
|
+
RUN pip install -r requirements.txt
|
|
16
|
+
|
|
17
|
+
FROM ${RUNNER_IMAGE_NAME} AS runtime-image
|
|
18
|
+
ARG ASSET_KEYS
|
|
19
|
+
ENV ASSET_KEYS=$ASSET_KEYS
|
|
20
|
+
RUN if [ -z "$DEBUG" ] ; then echo 'DEBUG not enabled' ; else echo 'DEBUG is enabled'; pip install debugpy ; fi
|
|
21
|
+
COPY runner.* /scripts/
|
|
22
|
+
|
|
23
|
+
RUN if [ $(stat -c %s "/scripts/runner.txt") -ne 0 ]; then apt-get update && xargs -a /scripts/runner.txt apt-get install -y --no-install-recommends; fi
|
|
24
|
+
RUN if [ $(stat -c %s "/scripts/runner.sh") -ne 0 ]; then chmod +x /scripts/runner.sh && /scripts/runner.sh; fi
|
|
25
|
+
RUN rm -rf /scripts
|
|
26
|
+
|
|
27
|
+
COPY --from=compile-image /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
|
|
28
|
+
|
|
29
|
+
COPY connector /app
|
|
30
|
+
WORKDIR app/
|
|
31
|
+
ENTRYPOINT ["python", "run.py"]
|
|
32
|
+
|
|
33
|
+
FROM ${RUNTIME_IMAGE} AS connector-image
|
|
34
|
+
{{#each labels}}
|
|
35
|
+
LABEL {{{@key}}}="{{{this}}}"
|
|
36
|
+
{{/each}}
|
package/package.json
CHANGED
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"@oclif/core": "2.8.5",
|
|
10
10
|
"@oclif/plugin-help": "5.2.9",
|
|
11
11
|
"@oclif/plugin-plugins": "3.1.2",
|
|
12
|
-
"@sw-tsdk/common": "^3.
|
|
13
|
-
"@sw-tsdk/core": "^3.
|
|
14
|
-
"@sw-tsdk/docker": "^3.
|
|
12
|
+
"@sw-tsdk/common": "^3.11.1",
|
|
13
|
+
"@sw-tsdk/core": "^3.11.1",
|
|
14
|
+
"@sw-tsdk/docker": "^3.11.1",
|
|
15
15
|
"@swimlane/connector-interfaces": "1.11.0",
|
|
16
16
|
"@swimlane/cosign": "1.4.1",
|
|
17
17
|
"archiver": "5.3.1",
|
|
@@ -65,6 +65,6 @@
|
|
|
65
65
|
"test": "jest --passWithNoTests"
|
|
66
66
|
},
|
|
67
67
|
"types": "lib/index.d.ts",
|
|
68
|
-
"version": "3.
|
|
69
|
-
"gitHead": "
|
|
68
|
+
"version": "3.11.1",
|
|
69
|
+
"gitHead": "19426fb8524bccb52b4bfdbf42db5aac349ba80c"
|
|
70
70
|
}
|