k8s.io/kubernetes@v1.29.3/test/e2e_node/conformance/build/Dockerfile (about)

     1  # Copyright 2016 The Kubernetes Authors.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  FROM BASEIMAGE
    16  
    17  COPY ginkgo /usr/local/bin/
    18  COPY e2e_node.test /usr/local/bin
    19  
    20  # This is a placeholder that will be substituted in the Makefile.
    21  COPY_SYSTEM_SPEC_FILE
    22  
    23  # The following environment variables can be override when starting the container.
    24  # FOCUS is regex matching test to run. By default run all conformance test.
    25  # SKIP is regex matching test to skip. By default skip flaky and serial test.
    26  # PARALLELISM is the number of processes the test will run in parallel.
    27  # REPORT_PATH is the path in the container to save test result and logs.
    28  # FLAKE_ATTEMPTS is the time to retry when there is a test failure. By default 2.
    29  # TEST_ARGS is the test arguments passed into the test.
    30  # EXTRA_ENVS is the extra environment variables needed for node e2e tests.
    31  ENV FOCUS="\[Conformance\]" \
    32  	   SKIP="\[Flaky\]|\[Serial\]" \
    33  	   PARALLELISM=8 \
    34  	   REPORT_PATH="/var/result" \
    35  	   FLAKE_ATTEMPTS=1 \
    36  	   TEST_ARGS="" \
    37  	   EXTRA_ENVS=""
    38  
    39  ENTRYPOINT ginkgo --focus="$FOCUS" \
    40  	--skip="$SKIP" \
    41  	--nodes=$PARALLELISM \
    42  	--flakeAttempts=$FLAKE_ATTEMPTS \
    43  	/usr/local/bin/e2e_node.test \
    44  	-- --conformance=true \
    45  	--prepull-images=false \
    46  	--report-dir="$REPORT_PATH" \
    47  	# This is a placeholder that will be substituted in the Makefile.
    48  	--system-spec-name=SYSTEM_SPEC_NAME \
    49  	# This is a placeholder that will be substituted in the Makefile.
    50  	--system-spec-file=SYSTEM_SPEC_FILE_PATH \
    51  	--extra-envs=$EXTRA_ENVS \
    52  	$TEST_ARGS