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

Keep composer cache in local directory #278

Closed
wants to merge 1 commit into from
Closed

Conversation

piggito
Copy link
Contributor

@piggito piggito commented Aug 31, 2020

To speed up site building we can keep composer cache in a local directory to be reused on future builds

@andypost
Copy link
Contributor

Related #275

Copy link
Contributor

@andypost andypost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the goal back should not duplicate provision

$(call php-0, kill -USR2 1)
$(call php, composer global require -o --update-no-dev --no-suggest "hirak/prestissimo:^0.3")

## Install backend dependencies
back:
mkdir -p $(COMPOSER_HOME_CACHE)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason to duplicate provision goal here?

@@ -146,6 +153,10 @@ ifdef MYSQL_DIR
@echo "Removing mysql data from $(MYSQL_DIR) ..."
docker run --rm --user 0:0 -v $(shell dirname $(MYSQL_DIR)):/mnt $(IMAGE_PHP) sh -c "rm -fr /mnt/`basename $(MYSQL_DIR)`"
endif
ifdef COMPOSER_HOME_CACHE
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cache should not be cleared as it will be shared in CI

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andypost
Copy link
Contributor

Closing it for #290

@andypost andypost closed this Oct 22, 2020
@andypost andypost deleted the composer_cache branch October 22, 2020 15:35
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

Successfully merging this pull request may close these issues.

2 participants