Skip to content

Commit 6dc7192

Browse files
committed
don't need to generate editors using npm
Signed-off-by: Valeriy Svydenko <[email protected]>
1 parent 69be46f commit 6dc7192

File tree

12 files changed

+10
-390
lines changed

12 files changed

+10
-390
lines changed

dependencies/che-plugin-registry/.htaccess

-20
This file was deleted.

dependencies/che-plugin-registry/build.sh

+2-9
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,6 @@ else
227227
jobconfigjson=/tmp/job-config.json
228228
fi
229229
REGISTRY_VERSION=$(jq -r '.Version' "${jobconfigjson}");
230-
REGISTRY_GENERATOR_VERSION=$(jq -r --arg REGISTRY_VERSION "${REGISTRY_VERSION}" '.Other["@eclipse-che/plugin-registry-generator"][$REGISTRY_VERSION]' "${jobconfigjson}");
231-
# echo "REGISTRY_VERSION=${REGISTRY_VERSION}; REGISTRY_GENERATOR_VERSION=${REGISTRY_GENERATOR_VERSION}"
232-
233-
echo "Generate artifacts"
234-
# do not generate digests as they'll be added at runtime from the operator (see CRW-1157)
235-
npx @eclipse-che/plugin-registry-generator@"${REGISTRY_GENERATOR_VERSION}" --root-folder:"$(pwd)" --output-folder:"$(pwd)/output" "${BUILD_FLAGS_ARRAY[@]}" --skip-digest-generation:true
236230

237231
if [ "${SKIP_OCI_IMAGE}" != "true" ]; then
238232
detectBuilder
@@ -244,15 +238,14 @@ if [ "${SKIP_OCI_IMAGE}" != "true" ]; then
244238
# TODO migrate this to cachito - https://issues.redhat.com/browse/CRW-3336
245239
prepareOVSXPackagingAsset
246240
prepareOpenvsxPackagingAsset
247-
# Tar up the outputted files as the Dockerfile depends on them
248-
tar -czvf resources.tgz ./output/v3/
241+
249242
echo "Build with $BUILDER $BUILD_COMMAND"
250243
IMAGE="${REGISTRY}/${ORGANIZATION}/pluginregistry-rhel8:${TAG}"
251244
# Copy to root directory to behave as if in Brew or devspaces-images
252245
cp "${DOCKERFILE}" ./builder.Dockerfile
253246
${BUILDER} ${BUILD_COMMAND} --progress=plain -t "${IMAGE}" -f ./builder.Dockerfile .
254247
# Remove copied Dockerfile and tarred zip
255-
rm ./builder.Dockerfile resources.tgz openvsx-server.tar.gz ovsx.tar.gz
248+
rm ./builder.Dockerfile openvsx-server.tar.gz ovsx.tar.gz
256249
# remove unneeded images from container registry
257250
cleanupImages
258251
fi

dependencies/che-plugin-registry/build/dockerfiles/Dockerfile

+4-10
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ RUN mkdir -p /tmp/opt
5454
COPY --chown=0:0 /ovsx.tar.gz .
5555
RUN tar -xf ovsx.tar.gz -C / && rm ovsx.tar.gz && ls -la /tmp/opt/ovsx/bin/
5656

57+
RUN mkdir -p /var/www/html/v3/plugins/
58+
5759
RUN \
5860
# Apply permissions to later change these files on httpd
5961
chmod g+rwx /var/log/httpd && chmod g+rw /run/httpd && \
@@ -69,22 +71,14 @@ RUN \
6971
COPY /build/scripts/import_vsix.sh /usr/local/bin
7072
COPY /build/scripts/start_services.sh /usr/local/bin/
7173
COPY /build/dockerfiles/openvsx.conf /etc/httpd/conf.d/
72-
COPY README.md .htaccess /var/www/html/
73-
COPY /build/scripts/*.sh resources.tgz che-*.yaml /build/
74+
COPY /build/scripts/*.sh /build/
7475

7576
RUN chmod 755 /usr/local/bin/*.sh && \
76-
tar --no-same-owner -xvf /build/resources.tgz -C /build/ && \
77-
rm -rf /build/output/v3/che-editors.yaml && \
78-
chmod -R g+rwX /build && \
79-
cp -r /build/output/v3 /var/www/html/
77+
chmod -R g+rwX /build
8078

81-
COPY v3/plugins/ /var/www/html/v3/plugins/
82-
COPY v3/images/*.* /var/www/html/v3/images/
8379
COPY /build/dockerfiles/entrypoint.sh /usr/local/bin/
8480

8581
RUN \
86-
# Apply permissions to later change these files (entrypoint update_extension_vsx_references)
87-
chmod g+rwx -R /var/www/html/v3 && \
8882
# Delete files that should not be copied into the final image
8983
rm -rf /build
9084

dependencies/che-plugin-registry/build/dockerfiles/rhel.Dockerfile

+4-10
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ RUN mkdir -p /tmp/opt
5757
COPY --chown=0:0 /ovsx.tar.gz .
5858
RUN tar -xf ovsx.tar.gz -C / && rm ovsx.tar.gz && ls -la /tmp/opt/ovsx/bin/
5959

60+
RUN mkdir -p /var/www/html/v3/plugins/
61+
6062
RUN \
6163
# Apply permissions to later change these files on httpd
6264
chmod g+rwx /var/log/httpd && chmod g+rw /run/httpd && \
@@ -72,22 +74,14 @@ RUN \
7274
COPY /build/scripts/import_vsix.sh /usr/local/bin
7375
COPY /build/scripts/start_services.sh /usr/local/bin/
7476
COPY /build/dockerfiles/openvsx.conf /etc/httpd/conf.d/
75-
COPY README.md .htaccess /var/www/html/
76-
COPY /build/scripts/*.sh resources.tgz che-*.yaml /build/
77+
COPY /build/scripts/*.sh /build/
7778

7879
RUN chmod 755 /usr/local/bin/*.sh && \
79-
tar --no-same-owner -xvf /build/resources.tgz -C /build/ && \
80-
rm -rf /build/output/v3/che-editors.yaml && \
81-
chmod -R g+rwX /build && \
82-
cp -r /build/output/v3 /var/www/html/
80+
chmod -R g+rwX /build
8381

84-
COPY v3/plugins/ /var/www/html/v3/plugins/
85-
COPY v3/images/*.* /var/www/html/v3/images/
8682
COPY /build/dockerfiles/entrypoint.sh /usr/local/bin/
8783

8884
RUN \
89-
# Apply permissions to later change these files (entrypoint update_extension_vsx_references)
90-
chmod g+rwx -R /var/www/html/v3 && \
9185
# Delete files that should not be copied into the final image
9286
rm -rf /build
9387

dependencies/che-plugin-registry/build/scripts/list_che_yaml.sh

-6
This file was deleted.

dependencies/che-plugin-registry/build/scripts/list_yaml.sh

-6
This file was deleted.

dependencies/che-plugin-registry/che-editors.yaml

-195
This file was deleted.

dependencies/che-plugin-registry/resources/images/default.svg

-46
This file was deleted.

dependencies/che-plugin-registry/v3/images/default.svg

-1
This file was deleted.

0 commit comments

Comments
 (0)