hkfuertes/altserverd

docker-compose run altserver - fatal: destination path 'scripts' already exists and is not an empty directory

TheraNinjaCat opened this issue · 0 comments

The docker-compose run altserver command doesn't build correctly because the corecrypto.zip file downloaded from Apple already has a scripts folder within it, and git clone will not clone into an existing directory.

=> [altserver  2/20] RUN  apk add zsh git curl wget g++ clang boost-static ninja boost-dev cmake make sudo bash vim libressl-dev util-linux-dev zlib-dev zlib-static      121.3s
=> [altserver  3/20] RUN mkdir /buildenv                                                                                                                                    0.3s
=> [altserver  4/20] WORKDIR /buildenv                                                                                                                                      0.0s
=> [altserver  5/20] RUN curl -JO 'https://developer.apple.com/file/?file=security&agree=Yes' -H 'Referer: https://developer.apple.com/security/' && unzip corecrypto.zip  10.8s
=> [altserver  6/20] WORKDIR /buildenv/corecrypto                                                                                                                           0.0s
=> ERROR [altserver  7/20] RUN git clone https://github.com/StableCoder/cmake-scripts scripts                                                                               0.6s
------
> [altserver  7/20] RUN git clone https://github.com/StableCoder/cmake-scripts scripts:
#0 0.555 fatal: destination path 'scripts' already exists and is not an empty directory.
------
failed to solve: process "/bin/sh -c git clone https://github.com/StableCoder/cmake-scripts scripts" did not complete successfully: exit code: 128

I got it building correctly by simply editing the docker/altserver.dockerfile file and adding a line after WORKDIR /buildenv/corecrypto reading RUN rm -r scripts.