File tree 5 files changed +29
-12
lines changed
5 files changed +29
-12
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,22 @@ FROM $vdk_base_python_image
7
7
8
8
WORKDIR /vdk
9
9
10
- ENV VDK_VERSION $vdk_version
10
+ ENV VDK_VERSION $vdk_versiongit
11
11
12
12
# Install VDK
13
13
ARG vdk_version
14
14
ARG vdk_package
15
15
ARG pip_extra_index_url
16
16
RUN pip install --extra-index-url $pip_extra_index_url $vdk_package==$vdk_version
17
+
18
+ # Install bash
19
+ RUN apt-get update && apt-get install -y bash && echo "Bash installed successfully" || echo "Bash installation failed"
20
+
21
+ # Set default shell to bash
22
+ SHELL ["/bin/bash", "-c"]
23
+
24
+ # Default command
25
+ CMD ["/bin/bash"]
26
+
27
+ # Force a snapshot with a no-op RUN command
28
+ RUN echo "Forcing snapshot"
Original file line number Diff line number Diff line change @@ -41,11 +41,12 @@ echo "{\"auths\":{\"$VDK_DOCKER_REGISTRY_URL\":{\"username\":\"$VDK_DOCKER_REGIS
41
41
42
42
SCRIPT_DIR=$( dirname " $0 " )
43
43
DOCKERFILE_PATH=" $SCRIPT_DIR /Dockerfile-vdk-base"
44
- /kaniko/executor --force --single-snapshot \
44
+ /kaniko/executor --force \
45
45
--dockerfile=" ${DOCKERFILE_PATH} " \
46
46
--destination=" ${DOCKER_REGISTRY_IMAGE} :${VDK_VERSION} " \
47
47
--destination=" ${DOCKER_REGISTRY_IMAGE} :${BUILD_TYPE} " \
48
48
--build-arg=vdk_package=" ${VDK_PACKAGE} " \
49
49
--build-arg=vdk_version=" ${VDK_VERSION} " \
50
50
--build-arg=pip_extra_index_url=" ${PIP_EXTRA_INDEX_URL} " \
51
- --build-arg=vdk_base_python_image=" ${VDK_BASE_PYTHON_IMAGE} "
51
+ --build-arg=vdk_base_python_image=" ${VDK_BASE_PYTHON_IMAGE} " \
52
+ --cache=false
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ def set_properties_factory_method(
68
68
"""
69
69
Register properties implementation backend.
70
70
Properties API enable keeping state of a data job.
71
- Default implementation is in-memory so it's strongly recommended to install vdk-properties plugin
71
+ Default implementation is in-memory, so it's strongly recommended to install vdk-properties plugin
72
72
which provides API based properties implementation
73
73
74
74
IPropertiesServiceClient is used as provides logic of how properties are persisted
Original file line number Diff line number Diff line change 21
21
retry : !reference [.retry, retry_options]
22
22
rules : # we want to trigger build jobs if there are changes to this plugin,
23
23
# but not if there are changes to other plugins or the main directory
24
- - if : ' $CI_COMMIT_BRANCH == "main" || $CI_PIPELINE_SOURCE == "external_pull_request_event" '
24
+ - if : ' $CI_COMMIT_BRANCH == "main"'
25
25
changes :
26
26
- " projects/vdk-plugins/$PLUGIN_NAME/**/*"
27
27
artifacts :
38
38
USE_VDKCORE_DEV_VERSION : " yes"
39
39
extends : .build-plugin-dind
40
40
rules :
41
- - if : ' $CI_COMMIT_BRANCH == "main" || $CI_PIPELINE_SOURCE == "external_pull_request_event" '
41
+ - if : ' $CI_COMMIT_BRANCH == "main"'
42
42
changes :
43
43
- " projects/vdk-core/*"
44
44
- " projects/vdk-core/src/**/*"
74
74
- if : ' $CI_COMMIT_BRANCH == "main"'
75
75
changes :
76
76
- " projects/vdk-plugins/$PLUGIN_NAME/**/*"
77
+ # - if: '$CI_PIPELINE_SOURCE == "external_pull_request_event"'
77
78
78
79
79
80
.release-vdk-image :
102
103
- if : ' $CI_COMMIT_BRANCH == "main"'
103
104
changes :
104
105
- " projects/vdk-plugins/$PLUGIN_NAME/**/*"
106
+ # - if: '$CI_PIPELINE_SOURCE == "external_pull_request_event"'
Original file line number Diff line number Diff line change @@ -87,16 +87,18 @@ release-quickstart-vdk:
87
87
variables :
88
88
PLUGIN_NAME : quickstart-vdk
89
89
rules :
90
- - if : ' $CI_COMMIT_BRANCH == "main"'
91
- changes : *test_quickstart_vdk_locations
90
+ # - if: '$CI_COMMIT_BRANCH == "main"'
91
+ # changes: *test_quickstart_vdk_locations
92
+ - if : ' $CI_PIPELINE_SOURCE == "external_pull_request_event"'
92
93
extends : .release-plugin
93
94
94
95
release-vdk-image-quickstart-vdk :
95
96
variables :
96
97
PLUGIN_NAME : quickstart-vdk
97
98
extends : .release-vdk-image
98
99
rules :
99
- - if : ' $CI_COMMIT_BRANCH == "main"'
100
- changes : *test_quickstart_vdk_locations
101
- - if : ' $CI_PIPELINE_SOURCE == "schedule"'
102
- when : never
100
+ # - if: '$CI_COMMIT_BRANCH == "main"'
101
+ # changes: *test_quickstart_vdk_locations
102
+ # - if: '$CI_PIPELINE_SOURCE == "schedule"'
103
+ # when: never
104
+ - if : ' $CI_PIPELINE_SOURCE == "external_pull_request_event"'
You can’t perform that action at this time.
0 commit comments