File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ WORKDIR /headlamp-plugins
88# Add multi-arch build arguments
99ARG PLUGIN
1010ARG TARGETPLATFORM
11- ARG TARGETOS
1211ARG TARGETARCH
1312
1413# Check if the PLUGIN argument is provided
@@ -17,6 +16,12 @@ RUN if [ -z "$PLUGIN" ]; then \
1716 exit 1; \
1817 fi
1918
19+ # Enforce that TARGETARCH is specified
20+ RUN if [ -z "$TARGETARCH" ]; then \
21+ echo "Error: TARGETARCH argument is required" ; \
22+ exit 1; \
23+ fi
24+
2025# Create a directory for the plugin build
2126RUN mkdir -p /headlamp-plugins/build/${PLUGIN}
2227
@@ -48,4 +53,4 @@ LABEL org.opencontainers.image.licenses=MIT
4853LABEL org.opencontainers.image.platform=$TARGETPLATFORM
4954
5055# Set the default command to list the installed plugins
51- CMD ["sh" , "-c" , "echo Plugins installed at /plugins/:; ls /plugins/" ]
56+ CMD ["sh" , "-c" , "echo Plugins installed at /plugins/:; ls /plugins/" ]
You can’t perform that action at this time.
0 commit comments