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

fix: update to latest ddev (v1.22.7) #145

Closed
wants to merge 1 commit into from

Conversation

shaal
Copy link
Owner

@shaal shaal commented Mar 6, 2024

I am still getting an error when running ddev drush si demo_umami -y

Summary by CodeRabbit

  • Chores
    • Updated PHP version to 8.3 and database version to 10.6 to enhance performance and security.
    • Improved post-database import processes for better data handling and application updates.
    • Updated the Gitpod base image and tools for a more current development environment.

@shaal shaal self-assigned this Mar 6, 2024
Copy link

codesandbox bot commented Mar 6, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link
Contributor

coderabbitai bot commented Mar 6, 2024

Walkthrough

The recent updates involve upgrading the PHP and database versions in the .ddev/config.yaml, enhancing the development environment in .gitpod.yml by updating the base image, and refining tool versions in the Dockerfile for Gitpod. These changes aim to modernize the development setup, ensuring compatibility and leveraging the latest software improvements.

Changes

File(s) Change Summary
.ddev/config.yaml Updated php_version from "8.1" to "8.3", database version from "10.4" to "10.6". Modified post-import-db hooks.
.gitpod.yml Updated the base image from drupalpod/drupalpod-gitpod-base:20231222 to 20240306.
.gitpod/images/Dockerfile Updated GitUI and Minio client versions.

🐇✨
In the code's garden, under the moon's soft glow,
The rabbit hops, as the versions grow.
With a whisk of its tail, and a flick of its ear,
Upgrades bloom, and improvements appear.
"To the future," it whispers, with a twinkle in its eye,
"Onward we hop, beneath the vast, code-filled sky."
🚀🌌

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share

Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit-tests for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit tests for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 3

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between d3c2d4a and 8ae668e.
Files selected for processing (3)
  • .ddev/config.yaml (2 hunks)
  • .gitpod.yml (1 hunks)
  • .gitpod/images/Dockerfile (1 hunks)
Files skipped from review due to trivial changes (1)
  • .gitpod.yml
Additional comments: 3
.ddev/config.yaml (3)
  • 4-4: Updating the PHP version to "8.3" is a significant change that may affect compatibility with existing code. Ensure that all dependencies and the project codebase are compatible with PHP 8.3.
  • 11-11: The database version update to "10.6" is important for performance and security improvements. Verify that the application's database interactions are compatible with MariaDB 10.6.
  • 277-279: The addition of drush sql:sanitize, drush updatedb, and drush cache:rebuild commands in the post-import-db hooks is a good practice for maintaining a clean and updated database state. Ensure that these commands do not conflict with any custom database setup or sanitization processes already in place.

@@ -15,13 +15,13 @@ RUN echo "deb [signed-by=/etc/apt/keyrings/ddev.gpg] https://pkg.ddev.com/apt/ *
RUN sudo apt update && sudo apt install -y ddev

# Install GitUI (terminal-ui for git)
RUN wget https://github.com/extrawurst/gitui/releases/download/v0.24.3/gitui-linux-musl.tar.gz -P /tmp
RUN wget https://github.com/extrawurst/gitui/releases/download/v0.25.1/gitui-linux-musl.tar.gz -P /tmp
Copy link
Contributor

Choose a reason for hiding this comment

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

The command to download GitUI uses a hard-coded version (v0.25.1). Consider using a variable for the version number to make future updates easier.

- RUN wget https://github.com/extrawurst/gitui/releases/download/v0.25.1/gitui-linux-musl.tar.gz -P /tmp
+ ARG GITUI_VERSION=v0.25.1
+ RUN wget https://github.com/extrawurst/gitui/releases/download/${GITUI_VERSION}/gitui-linux-musl.tar.gz -P /tmp

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
RUN wget https://github.com/extrawurst/gitui/releases/download/v0.25.1/gitui-linux-musl.tar.gz -P /tmp
ARG GITUI_VERSION=v0.25.1
RUN wget https://github.com/extrawurst/gitui/releases/download/${GITUI_VERSION}/gitui-linux-musl.tar.gz -P /tmp

Comment on lines +23 to +24
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mcli_20240303001308.0.0_amd64.deb
RUN sudo dpkg -i mcli_20240303001308.0.0_amd64.deb
Copy link
Contributor

Choose a reason for hiding this comment

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

The Minio client installation uses a specific version (20240303001308.0.0). Similar to GitUI, consider using a variable for the version number to simplify updates.

- RUN wget https://dl.min.io/client/mc/release/linux-amd64/mcli_20240303001308.0.0_amd64.deb
+ ARG MINIO_CLIENT_VERSION=20240303001308.0.0
+ RUN wget https://dl.min.io/client/mc/release/linux-amd64/mcli_${MINIO_CLIENT_VERSION}_amd64.deb

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mcli_20240303001308.0.0_amd64.deb
RUN sudo dpkg -i mcli_20240303001308.0.0_amd64.deb
ARG MINIO_CLIENT_VERSION=20240303001308.0.0
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mcli_${MINIO_CLIENT_VERSION}_amd64.deb
RUN sudo dpkg -i mcli_20240303001308.0.0_amd64.deb

Comment on lines 15 to 27
RUN sudo apt update && sudo apt install -y ddev

# Install GitUI (terminal-ui for git)
RUN wget https://github.com/extrawurst/gitui/releases/download/v0.24.3/gitui-linux-musl.tar.gz -P /tmp
RUN wget https://github.com/extrawurst/gitui/releases/download/v0.25.1/gitui-linux-musl.tar.gz -P /tmp
RUN sudo tar xzf /tmp/gitui-linux-musl.tar.gz -C /usr/bin

# (get latest Minio version from https://dl.min.io/client/mc/release/linux-amd64/)
# Install Minio client
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mcli_20231220071422.0.0_amd64.deb
RUN sudo dpkg -i mcli_20231220071422.0.0_amd64.deb
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mcli_20240303001308.0.0_amd64.deb
RUN sudo dpkg -i mcli_20240303001308.0.0_amd64.deb
RUN sudo mv /usr/local/bin/mcli /usr/local/bin/mc

# End workspace-base
Copy link
Contributor

Choose a reason for hiding this comment

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

📝 NOTE
This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [4-25]

Using sudo in Dockerfiles is generally discouraged as it can introduce security vulnerabilities and configuration errors. Since the Dockerfile switches to the gitpod user and then back to using sudo, consider optimizing these commands to run as the root user directly where possible, and then switch to the gitpod user only when necessary.

@shaal shaal mentioned this pull request Apr 19, 2024
@mradcliffe
Copy link
Contributor

This is also resolved by #146

@rfay
Copy link
Collaborator

rfay commented Apr 22, 2024

And of course it's DDEV v1.23.0 now.

@shaal
Copy link
Owner Author

shaal commented Apr 23, 2024

fixed by #146

@shaal shaal closed this Apr 23, 2024
@shaal shaal deleted the issue/upgrade-to-ddev-1-22-7 branch September 17, 2024 15:52
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.

3 participants