<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/54686>54686</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Dockerfiles out of date
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          aditink
      </td>
    </tr>
</table>

<pre>
    Dockerfile https://github.com/llvm/llvm-project/blob/main/llvm/utils/docker/debian10/Dockerfile is out of date and does not work, as it references the old svn repository that is no longer publicly available.
To reproduce: 
1. Follow the instructions at https://github.com/llvm/llvm-project/blob/main/llvm/docs/Docker.rst. In particular, you can use the last snippet, 
```
    ./llvm/utils/docker/build_docker_image.sh \
    -s debian10 -d clang-debian10 -t "staging" \
    --branch branches/google/stable \
    -p clang -i install-clang -i install-clang-resource-headers \
    -- \
    -DCMAKE_BUILD_TYPE=Release
```
Note that there is a typo in the docs, and the -d flag should have only one hyphen before it.
2. The first problem one runs into is at line 22. Attempting to wget ninja-build fails because github redirects, and docker does not retain headers while following this redirect. A possible solution is to use ADD instead of RUN wget: replace lines 22 to 26 with 
```
ADD https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip tmp/ninja-linux.zip
RUN echo "d2fea9ff33b3ef353161ed906f260d565ca55b8ca0568fa07b1d2cab90a84a07 tmp/ninja-linux.zip" \
        | sha256sum -c  && \
    unzip tmp/ninja-linux.zip -d /usr/local/bin && \
    rm tmp/ninja-linux.zip
```
3. Finally, the dockerfile now gets stuck at line 35. The error message is
```svn: E170013: Unable to connect to a repository at URL 'https://llvm.org/svn/llvm-project/llvm/branches/google/stable'
svn: E175013: Access to '/svn/llvm-project/llvm/branches/google/stable' forbidden```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytVU1v4zYQ_TXyZWBBH5ZiH3zwxllg0e2iCJJDTwFFjiRua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