Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TheraNinjaCat opened this issue Jul 6, 2023 · 0 comments

Comments

@TheraNinjaCat
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant