Skip to content

Commit

Permalink
make build.sh more accurately match what the github workflow does
Browse files Browse the repository at this point in the history
we need to do `composer install` for both the generator and the generated files, because phpcbf needs to be run from the output directory using the output-directory config files -- this PR makes it so that running `./.devcontainer/build.sh` should generate byte-identical output to the regen-bot
  • Loading branch information
shish committed Dec 2, 2024
1 parent a6a57ba commit 3c7f386
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ ARG DEBIAN_FRONTEND=noninteractive
ARG XDEBUG_MODE=coverage
RUN apt update -y && apt install -y git composer php-cli php-dom php-curl php-xdebug vim
WORKDIR /app
CMD cd /app/generator/doc && ./update.sh && cd /app/generator && composer install && php ./safe.php generate && composer cs-fix
CMD cd /app/generator/doc && ./update.sh && \
cd /app && composer install && \
cd /app/generator && composer install && php ./safe.php generate

0 comments on commit 3c7f386

Please sign in to comment.