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(ingest): add opt/oracle in datahub-ingestion image #11099

Closed

Conversation

lima-renan
Copy link
Contributor

@lima-renan lima-renan commented Aug 5, 2024

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

Summary by CodeRabbit

  • New Features

    • Updated Docker images to utilize the latest versions of Oracle Instant Client libraries, improving compatibility and fixing potential issues.
  • Enhancements

    • Improved build process by refining versioning strategy and including necessary Oracle files in the final Docker image, ensuring a more complete deployment environment.

Copy link
Contributor

coderabbitai bot commented Aug 5, 2024

Walkthrough

The recent changes improve the Dockerfiles for the datahub-ingestion project by updating the Oracle Instant Client library versions, enhancing the build arguments, and ensuring essential files are included in the final image. These updates focus on using the latest software versions and optimizing the build process, ultimately leading to a more efficient and robust Docker container.

Changes

Files Change Summary
docker/.../Dockerfile Updated Oracle Instant Client versions for x86_64 and arm64; adjusted library path configurations.
docker/datahub-ingestion/Dockerfile Changed DOCKER_VERSION from head to head-full and added copying of /opt/oracle from a build stage.

Poem

In the world of Docker, we hop and play,
With new Oracle versions, brightening the day.
From head to head-full, our builds now gleam,
Each file in its place, like a rabbit's sweet dream! 🐰✨
So here’s to the changes, let’s cheer and rejoice,
In the land of containers, we’ve made a fine choice!


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 testing code 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 testing code 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 testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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 an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

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

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • 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/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

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.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between e4e77c3 and 1b94906.

Files selected for processing (2)
  • docker/datahub-ingestion-base/Dockerfile (1 hunks)
  • docker/datahub-ingestion/Dockerfile (2 hunks)
Additional comments not posted (8)
docker/datahub-ingestion/Dockerfile (2)

4-4: LGTM! Verify the impact of the updated Docker version.

The change to use head-full instead of head for the DOCKER_VERSION argument is approved.

Ensure that the new version does not introduce any unexpected changes or dependencies.


51-51: LGTM! Verify the presence of Oracle files.

The addition of the line to copy Oracle files from the full-install-build stage is approved.

Ensure that the Oracle files are correctly included in the final image.

docker/datahub-ingestion-base/Dockerfile (6)

88-88: LGTM! Verify the updated URL for the Oracle Instant Client library (x86_64).

The update to use version 21.15.0 for the Oracle Instant Client library (x86_64) is approved.

Ensure that the URL is correct and accessible.

Verification successful

Verified: The updated URL for the Oracle Instant Client library (x86_64) is correct and accessible.

The URL https://download.oracle.com/otn_software/linux/instantclient/2115000/instantclient-basic-linux.x64-21.15.0.0.0dbru.zip returned an HTTP 200 OK status, confirming its accessibility and correctness.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the updated URL for the Oracle Instant Client library (x86_64).

# Test: Check if the URL is accessible.
curl -I https://download.oracle.com/otn_software/linux/instantclient/2115000/instantclient-basic-linux.x64-21.15.0.0.0dbru.zip

Length of output: 814


96-96: LGTM! Verify the updated URL for the Oracle Instant Client library (arm64).

The update to use version 19.23.0 for the Oracle Instant Client library (arm64) is approved.

Ensure that the URL is correct and accessible.

Verification successful

The URL for the Oracle Instant Client library (arm64) version 19.23.0 is correct and accessible.

  • The curl -I command returned an HTTP 200 OK status, confirming that the file is available for download.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the updated URL for the Oracle Instant Client library (arm64).

# Test: Check if the URL is accessible.
curl -I https://download.oracle.com/otn_software/linux/instantclient/1923000/instantclient-basic-linux.arm64-19.23.0.0.0dbru.zip

Length of output: 736


89-89: LGTM! Verify the unzip command for the Oracle Instant Client library (x86_64).

The update to the unzip command to reflect version 21.15.0 for the Oracle Instant Client library (x86_64) is approved.

Ensure that the unzip command works correctly.

Verification successful

The unzip command for the Oracle Instant Client library (x86_64) is correctly used.

The instantclient-basic-linux.x64-21.15.0.0.0dbru.zip file is referenced in the Dockerfile for downloading, unzipping, and removing the file, confirming its correct usage.

  • docker/datahub-ingestion-base/Dockerfile
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the unzip command for the Oracle Instant Client library (x86_64).

# Test: Check if the unzip command works correctly.
unzip -t instantclient-basic-linux.x64-21.15.0.0.0dbru.zip

Length of output: 133


Script:

#!/bin/bash
# Description: Verify the presence and usage of the Oracle Instant Client library zip file in the Dockerfile.

# Search for references to the zip file in the Dockerfile and other relevant files.
rg "instantclient-basic-linux.x64-21.15.0.0.0dbru.zip" -A 5

Length of output: 841


91-91: LGTM! Verify the library path configuration for the Oracle Instant Client library (x86_64).

The update to the library path configuration to reflect version 21.15 for the Oracle Instant Client library (x86_64) is approved.

Ensure that the library path configuration works correctly.


90-90: LGTM! Verify the removal command for the Oracle Instant Client library zip file (x86_64).

The update to the removal command to reflect version 21.15.0 for the Oracle Instant Client library zip file (x86_64) is approved.

Ensure that the removal command works correctly.


97-97: LGTM! Verify the unzip command for the Oracle Instant Client library (arm64).

The update to the unzip command to reflect version 19.23.0 for the Oracle Instant Client library (arm64) is approved.

Ensure that the unzip command works correctly.

Verification successful

The wget and unzip commands for the Oracle Instant Client library (arm64) are correctly set up in the Dockerfile.

The Dockerfile includes a wget command to download the instantclient-basic-linux.arm64-19.23.0.0.0dbru.zip file, followed by an unzip command to extract it. This ensures that the required file is available for extraction during the Docker build process.

  • wget command to download the file:

    wget --no-verbose -c https://download.oracle.com/otn_software/linux/instantclient/1923000/instantclient-basic-linux.arm64-19.23.0.0.0dbru.zip
  • unzip command to extract the file:

    unzip instantclient-basic-linux.arm64-19.23.0.0.0dbru.zip
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the unzip command for the Oracle Instant Client library (arm64).

# Test: Check if the unzip command works correctly.
unzip -t instantclient-basic-linux.arm64-19.23.0.0.0dbru.zip

Length of output: 135


Script:

#!/bin/bash
# Description: Check if the Oracle Instant Client zip file exists in the repository.

# Search for the zip file in the repository.
fd -H 'instantclient-basic-linux.arm64-19.23.0.0.0dbru.zip'

Length of output: 59


Script:

#!/bin/bash
# Description: Check the Dockerfile for commands related to downloading the Oracle Instant Client zip file.

# Search the Dockerfile for any wget or curl commands related to the zip file.
rg 'wget|curl' docker/datahub-ingestion-base/Dockerfile -A 3

Length of output: 979

@lima-renan
Copy link
Contributor Author

@david-leifker, Please check this new change!

@github-actions github-actions bot added devops PR or Issue related to DataHub backend & deployment community-contribution PR or Issue raised by member(s) of DataHub Community labels Aug 5, 2024
@lima-renan
Copy link
Contributor Author

@david-leifker, I checked today that PR 11163 has resolved this issue.

@lima-renan lima-renan closed this Aug 16, 2024
@lima-renan lima-renan deleted the add-oracle-lib-ingestion branch August 16, 2024 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution PR or Issue raised by member(s) of DataHub Community devops PR or Issue related to DataHub backend & deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants