github.com/google/osv-scalibr@v0.4.1/artifact/image/testfixtures/README.md (about)

     1  This directory stores Docker configs used to create the container tars for the testdata in scalibr/artifacts/image.
     2  
     3  
     4  ## Creating or updating testdata
     5  
     6  1. Build the image.
     7  
     8    ```
     9    IMAGE_TAG="symlinks"
    10    DIRECTORY="symlinks"
    11  
    12    DOCKER_BUILDKIT=1 docker build -t $IMAGE_TAG third_party/scalibr/artifact/image/testfixtures/$DIRECTORY
    13    ```
    14  
    15  1. Save the built image as a tar file in the `testdata` directory.
    16  
    17    ```
    18    IMAGE_TAG="symlinks"
    19    TAR_NAME="symlinks"
    20  
    21    docker save $IMAGE_TAG > third_party/scalibr/artifact/image/unpack/testdata/$TAR_NAME.tar
    22    ```