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

refactor: split common parts out of build.sh #816

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

mcdurdin
Copy link
Member

No description provided.

@mcdurdin mcdurdin added this to the A17S22 milestone Sep 26, 2023
Comment on lines +96 to +104
if [ ! -L vendor ]; then
# Create link to vendor/ folder
CONTAINER_ID=$(get_docker_container_id $CONTAINER_NAME)
if [ -z "$CONTAINER_ID" ]; then
builder_die "Docker container appears to have failed to start in order to create link to vendor/"
fi

docker exec -i $CONTAINER_ID sh -c "ln -s /var/www/vendor vendor && chown -R www-data:www-data vendor"
fi
Copy link
Contributor

Choose a reason for hiding this comment

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

Will docker.inc.sh eventually get refactored to a separate/shared repo?
We would skip this for sites that don't use composer, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Will docker.inc.sh eventually get refactored to a separate/shared repo?

Yes, that's my thinking. We may have a code snippet to source it via curl, and then it will copy other shared elements in with build.sh configure

We would skip this for sites that don't use composer, right?

Yes we may need to add a bit to skip the vendor copy for s.keyman.com etc.

@mcdurdin mcdurdin marked this pull request as ready for review September 27, 2023 01:55
Copy link
Contributor

@darcywong00 darcywong00 left a comment

Choose a reason for hiding this comment

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

lgtm

@mcdurdin mcdurdin merged commit 80f8cc1 into staging Sep 28, 2023
3 checks passed
@mcdurdin mcdurdin deleted the refactor/build-sh-into-common-components branch September 28, 2023 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants