@sw-tsdk/connector 3.13.5 → 3.14.0-next.f332e96

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,52 @@
1
+ # syntax=docker/dockerfile:1.2
2
+ ARG COMPILE_BASE=quay.io/swimlane-connectors/connector-python-compile-definition-base-fips:3.10-latest
3
+ ARG PYTHON_DEV_IMAGE=cgr.dev/swimlane.com/python-fips:3.10-dev
4
+ ARG RUNNER_IMAGE_NAME=quay.io/swimlane-connectors/connector-python-runner-definition-base-fips:3.10-latest
5
+ ARG RUNTIME_IMAGE=runtime-image
6
+
7
+ # Stage 1: reference-only — pull the published compile-fips base to copy pre-installed swimlane libs
8
+ FROM ${COMPILE_BASE} AS compile-base-libs
9
+
10
+ # Stage 2: builder — dev image has shell, apk, and pip for all build-time operations.
11
+ # The final FIPS image is distroless (no shell), so ALL RUN commands must happen here.
12
+ FROM ${PYTHON_DEV_IMAGE} AS builder
13
+ USER root
14
+
15
+ # Carry over pre-installed swimlane SDK packages from the compile-fips base
16
+ COPY --from=compile-base-libs /usr/local/lib /usr/local/lib
17
+ COPY --from=compile-base-libs /usr/local/bin /usr/local/bin
18
+
19
+ # Run compile-time OS package installs and custom scripts
20
+ COPY compile.* /scripts/
21
+ RUN if [ $(stat -c %s "/scripts/compile.txt") -ne 0 ]; then apk add --no-cache $(cat /scripts/compile.txt); fi
22
+ RUN if [ $(stat -c %s "/scripts/compile.sh") -ne 0 ]; then chmod +x /scripts/compile.sh && /scripts/compile.sh; fi
23
+
24
+ # Run runner-time OS package installs and custom scripts here too,
25
+ # since the final runner FIPS image has no shell
26
+ COPY runner.* /scripts/
27
+ RUN if [ $(stat -c %s "/scripts/runner.txt") -ne 0 ]; then apk add --no-cache $(cat /scripts/runner.txt); fi
28
+ RUN if [ $(stat -c %s "/scripts/runner.sh") -ne 0 ]; then chmod +x /scripts/runner.sh && /scripts/runner.sh; fi
29
+
30
+ RUN rm -rf /scripts
31
+
32
+ # Install connector Python dependencies
33
+ COPY requirements.txt .
34
+ RUN pip install -r requirements.txt
35
+
36
+ # Stage 3: runtime-image — minimal distroless FIPS image, no shell, only copy artifacts
37
+ FROM ${RUNNER_IMAGE_NAME} AS runtime-image
38
+ USER root
39
+ ARG ASSET_KEYS
40
+ ENV ASSET_KEYS=$ASSET_KEYS
41
+
42
+ COPY --from=builder /usr/local/lib /usr/local/lib
43
+ COPY --from=builder /usr/local/bin /usr/local/bin
44
+
45
+ COPY connector /app
46
+ WORKDIR /app
47
+ ENTRYPOINT ["python", "run.py"]
48
+
49
+ FROM ${RUNTIME_IMAGE} AS connector-image
50
+ {{#each labels}}
51
+ LABEL {{{@key}}}="{{{this}}}"
52
+ {{/each}}
@@ -0,0 +1,52 @@
1
+ # syntax=docker/dockerfile:1.2
2
+ ARG COMPILE_BASE=quay.io/swimlane-connectors/connector-python-compile-definition-base-fips:3.11-latest
3
+ ARG PYTHON_DEV_IMAGE=cgr.dev/swimlane.com/python-fips:3.11-dev
4
+ ARG RUNNER_IMAGE_NAME=quay.io/swimlane-connectors/connector-python-runner-definition-base-fips:3.11-latest
5
+ ARG RUNTIME_IMAGE=runtime-image
6
+
7
+ # Stage 1: reference-only — pull the published compile-fips base to copy pre-installed swimlane libs
8
+ FROM ${COMPILE_BASE} AS compile-base-libs
9
+
10
+ # Stage 2: builder — dev image has shell, apk, and pip for all build-time operations.
11
+ # The final FIPS image is distroless (no shell), so ALL RUN commands must happen here.
12
+ FROM ${PYTHON_DEV_IMAGE} AS builder
13
+ USER root
14
+
15
+ # Carry over pre-installed swimlane SDK packages from the compile-fips base
16
+ COPY --from=compile-base-libs /usr/local/lib /usr/local/lib
17
+ COPY --from=compile-base-libs /usr/local/bin /usr/local/bin
18
+
19
+ # Run compile-time OS package installs and custom scripts
20
+ COPY compile.* /scripts/
21
+ RUN if [ $(stat -c %s "/scripts/compile.txt") -ne 0 ]; then apk add --no-cache $(cat /scripts/compile.txt); fi
22
+ RUN if [ $(stat -c %s "/scripts/compile.sh") -ne 0 ]; then chmod +x /scripts/compile.sh && /scripts/compile.sh; fi
23
+
24
+ # Run runner-time OS package installs and custom scripts here too,
25
+ # since the final runner FIPS image has no shell
26
+ COPY runner.* /scripts/
27
+ RUN if [ $(stat -c %s "/scripts/runner.txt") -ne 0 ]; then apk add --no-cache $(cat /scripts/runner.txt); fi
28
+ RUN if [ $(stat -c %s "/scripts/runner.sh") -ne 0 ]; then chmod +x /scripts/runner.sh && /scripts/runner.sh; fi
29
+
30
+ RUN rm -rf /scripts
31
+
32
+ # Install connector Python dependencies
33
+ COPY requirements.txt .
34
+ RUN pip install -r requirements.txt
35
+
36
+ # Stage 3: runtime-image — minimal distroless FIPS image, no shell, only copy artifacts
37
+ FROM ${RUNNER_IMAGE_NAME} AS runtime-image
38
+ USER root
39
+ ARG ASSET_KEYS
40
+ ENV ASSET_KEYS=$ASSET_KEYS
41
+
42
+ COPY --from=builder /usr/local/lib /usr/local/lib
43
+ COPY --from=builder /usr/local/bin /usr/local/bin
44
+
45
+ COPY connector /app
46
+ WORKDIR /app
47
+ ENTRYPOINT ["python", "run.py"]
48
+
49
+ FROM ${RUNTIME_IMAGE} AS connector-image
50
+ {{#each labels}}
51
+ LABEL {{{@key}}}="{{{this}}}"
52
+ {{/each}}
@@ -0,0 +1,52 @@
1
+ # syntax=docker/dockerfile:1.2
2
+ ARG COMPILE_BASE=quay.io/swimlane-connectors/connector-python-compile-definition-base-fips:3.12-latest
3
+ ARG PYTHON_DEV_IMAGE=cgr.dev/swimlane.com/python-fips:3.12-dev
4
+ ARG RUNNER_IMAGE_NAME=quay.io/swimlane-connectors/connector-python-runner-definition-base-fips:3.12-latest
5
+ ARG RUNTIME_IMAGE=runtime-image
6
+
7
+ # Stage 1: reference-only — pull the published compile-fips base to copy pre-installed swimlane libs
8
+ FROM ${COMPILE_BASE} AS compile-base-libs
9
+
10
+ # Stage 2: builder — dev image has shell, apk, and pip for all build-time operations.
11
+ # The final FIPS image is distroless (no shell), so ALL RUN commands must happen here.
12
+ FROM ${PYTHON_DEV_IMAGE} AS builder
13
+ USER root
14
+
15
+ # Carry over pre-installed swimlane SDK packages from the compile-fips base
16
+ COPY --from=compile-base-libs /usr/local/lib /usr/local/lib
17
+ COPY --from=compile-base-libs /usr/local/bin /usr/local/bin
18
+
19
+ # Run compile-time OS package installs and custom scripts
20
+ COPY compile.* /scripts/
21
+ RUN if [ $(stat -c %s "/scripts/compile.txt") -ne 0 ]; then apk add --no-cache $(cat /scripts/compile.txt); fi
22
+ RUN if [ $(stat -c %s "/scripts/compile.sh") -ne 0 ]; then chmod +x /scripts/compile.sh && /scripts/compile.sh; fi
23
+
24
+ # Run runner-time OS package installs and custom scripts here too,
25
+ # since the final runner FIPS image has no shell
26
+ COPY runner.* /scripts/
27
+ RUN if [ $(stat -c %s "/scripts/runner.txt") -ne 0 ]; then apk add --no-cache $(cat /scripts/runner.txt); fi
28
+ RUN if [ $(stat -c %s "/scripts/runner.sh") -ne 0 ]; then chmod +x /scripts/runner.sh && /scripts/runner.sh; fi
29
+
30
+ RUN rm -rf /scripts
31
+
32
+ # Install connector Python dependencies
33
+ COPY requirements.txt .
34
+ RUN pip install -r requirements.txt
35
+
36
+ # Stage 3: runtime-image — minimal distroless FIPS image, no shell, only copy artifacts
37
+ FROM ${RUNNER_IMAGE_NAME} AS runtime-image
38
+ USER root
39
+ ARG ASSET_KEYS
40
+ ENV ASSET_KEYS=$ASSET_KEYS
41
+
42
+ COPY --from=builder /usr/local/lib /usr/local/lib
43
+ COPY --from=builder /usr/local/bin /usr/local/bin
44
+
45
+ COPY connector /app
46
+ WORKDIR /app
47
+ ENTRYPOINT ["python", "run.py"]
48
+
49
+ FROM ${RUNTIME_IMAGE} AS connector-image
50
+ {{#each labels}}
51
+ LABEL {{{@key}}}="{{{this}}}"
52
+ {{/each}}
@@ -0,0 +1,52 @@
1
+ # syntax=docker/dockerfile:1.2
2
+ ARG COMPILE_BASE=quay.io/swimlane-connectors/connector-python-compile-definition-base-fips:3.9-latest
3
+ ARG PYTHON_DEV_IMAGE=cgr.dev/swimlane.com/python-fips:3.9-dev
4
+ ARG RUNNER_IMAGE_NAME=quay.io/swimlane-connectors/connector-python-runner-definition-base-fips:3.9-latest
5
+ ARG RUNTIME_IMAGE=runtime-image
6
+
7
+ # Stage 1: reference-only — pull the published compile-fips base to copy pre-installed swimlane libs
8
+ FROM ${COMPILE_BASE} AS compile-base-libs
9
+
10
+ # Stage 2: builder — dev image has shell, apk, and pip for all build-time operations.
11
+ # The final FIPS image is distroless (no shell), so ALL RUN commands must happen here.
12
+ FROM ${PYTHON_DEV_IMAGE} AS builder
13
+ USER root
14
+
15
+ # Carry over pre-installed swimlane SDK packages from the compile-fips base
16
+ COPY --from=compile-base-libs /usr/local/lib /usr/local/lib
17
+ COPY --from=compile-base-libs /usr/local/bin /usr/local/bin
18
+
19
+ # Run compile-time OS package installs and custom scripts
20
+ COPY compile.* /scripts/
21
+ RUN if [ $(stat -c %s "/scripts/compile.txt") -ne 0 ]; then apk add --no-cache $(cat /scripts/compile.txt); fi
22
+ RUN if [ $(stat -c %s "/scripts/compile.sh") -ne 0 ]; then chmod +x /scripts/compile.sh && /scripts/compile.sh; fi
23
+
24
+ # Run runner-time OS package installs and custom scripts here too,
25
+ # since the final runner FIPS image has no shell
26
+ COPY runner.* /scripts/
27
+ RUN if [ $(stat -c %s "/scripts/runner.txt") -ne 0 ]; then apk add --no-cache $(cat /scripts/runner.txt); fi
28
+ RUN if [ $(stat -c %s "/scripts/runner.sh") -ne 0 ]; then chmod +x /scripts/runner.sh && /scripts/runner.sh; fi
29
+
30
+ RUN rm -rf /scripts
31
+
32
+ # Install connector Python dependencies
33
+ COPY requirements.txt .
34
+ RUN pip install -r requirements.txt
35
+
36
+ # Stage 3: runtime-image — minimal distroless FIPS image, no shell, only copy artifacts
37
+ FROM ${RUNNER_IMAGE_NAME} AS runtime-image
38
+ USER root
39
+ ARG ASSET_KEYS
40
+ ENV ASSET_KEYS=$ASSET_KEYS
41
+
42
+ COPY --from=builder /usr/local/lib /usr/local/lib
43
+ COPY --from=builder /usr/local/bin /usr/local/bin
44
+
45
+ COPY connector /app
46
+ WORKDIR /app
47
+ ENTRYPOINT ["python", "run.py"]
48
+
49
+ FROM ${RUNTIME_IMAGE} AS connector-image
50
+ {{#each labels}}
51
+ LABEL {{{@key}}}="{{{this}}}"
52
+ {{/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.5",
13
- "@sw-tsdk/core": "3.13.5",
14
- "@sw-tsdk/docker": "3.13.5",
12
+ "@sw-tsdk/common": "3.14.0-next.f332e96",
13
+ "@sw-tsdk/core": "3.14.0-next.f332e96",
14
+ "@sw-tsdk/docker": "3.14.0-next.f332e96",
15
15
  "@swimlane/connector-interfaces": "1.11.0",
16
16
  "@swimlane/cosign": "1.4.1",
17
17
  "archiver": "5.3.1",
@@ -66,6 +66,6 @@
66
66
  "test": "jest --passWithNoTests"
67
67
  },
68
68
  "types": "lib/index.d.ts",
69
- "version": "3.13.5",
70
- "gitHead": "e56963b3e0a07de2e3d374035789be8b70f97b3b"
69
+ "version": "3.14.0-next.f332e96",
70
+ "gitHead": "f332e9640320c8365449e33c8c73aa1fc38fa834"
71
71
  }