You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polaris.apache.org by "MonkeyCanCode (via GitHub)" <gi...@apache.org> on 2024/09/23 04:48:48 UTC

[PR] Add eclipseLinkDeps options for Dockerfile and run.sh [polaris]

MonkeyCanCode opened a new pull request, #313:
URL: https://github.com/apache/polaris/pull/313

   # Description
   
   This is a follow up PR based on https://github.com/apache/polaris/pull/227 where additional document as well as new optional build argument (`ECLIPSELINK_DEPS`) for `Dockerfile` and `run.sh`.
   
   I saw https://github.com/apache/polaris/pull/311 already added the additional option for `Dockerfile`, so I ended up using that change as well.
   
   ## Type of change
   
   Please delete options that are not relevant.
   
   - [ ] Bug fix (non-breaking change which fixes an issue)
   - [x] Documentation update
   - [x] New feature (non-breaking change which adds functionality)
   - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
   - [x] This change requires a documentation update
   
   # How Has This Been Tested?
   
   Tested build options on `Dockerfile`:
   ```
   # default
   docker build -t localhost:5001/polaris:latest .
   # with eclipse link enabled
   docker build -t localhost:5001/polaris:latest --build-arg ECLIPSELINK=true .
   # with eclipse link enabled and one dependency
   docker build -t localhost:5001/polaris:latest --build-arg ECLIPSELINK=true --build-arg ECLIPSELINK_DEPS=org.postgresql:postgresql:42.1.4 .
   # with eclipse link enabled and multiple dependencies
   docker build -t localhost:5001/polaris:latest --build-arg ECLIPSELINK=true --build-arg ECLIPSELINK_DEPS=org.postgresql:postgresql:42.1.4,com.mysql:mysql-connector-j:8.1.0 .
   ```
   
   Tested build options on `run.sh`:
   ```
   # default
   ./run.sh
   # with eclipse link enabled
   ./run.sh -b "ECLIPSELINK=true"
   # with eclipse link enabled and one dependency
   ./run.sh -b "ECLIPSELINK=true;ECLIPSELINK_DEPS=org.postgresql:postgresql:42.1.4"
   # with eclipse link enabled and multiple dependencies
   ./run.sh -b "ECLIPSELINK=true;ECLIPSELINK_DEPS=org.postgresql:postgresql:42.1.4,com.mysql:mysql-connector-j:8.1.0"
   ```
   
   # Checklist:
   
   Please delete options that are not relevant.
   
   - [x] I have performed a self-review of my code
   - [x] I have commented my code, particularly in hard-to-understand areas
   - [x] I have made corresponding changes to the documentation
   - [x] My changes generate no new warnings
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add eclipseLinkDeps options for Dockerfile and run.sh [polaris]

Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on code in PR #313:
URL: https://github.com/apache/polaris/pull/313#discussion_r1773678162


##########
README.md:
##########
@@ -67,10 +67,16 @@ Apache Polaris supports the following optional build options:
 ### More build and run options
 Running in Docker
 - `docker build -t localhost:5001/polaris:latest .` - To build the image.
+  - Optional build options:
+    - `docker build -t localhost:5001/polaris:latest --build-arg ECLIPSELINK=true .` - Enables the EclipseLink extension.
+    - `docker build -t localhost:5001/polaris:latest --build-arg ECLIPSELINK=true --build-arg ECLIPSELINK_DEPS=[groupId]:[artifactId]:[version],... .` – Enabled the EclipseLink extension with one or more additional dependencies for EclipseLink (e.g., JDBC drivers), separated by commas.
 - `docker run -p 8181:8181 localhost:5001/polaris:latest` - To run the image in standalone mode.
 
 Running in Kubernetes
 - `./run.sh` - To run Polaris as a mini-deployment locally. This will create one pod that bind itself to ports `8181` and `8182`.
+  - Optional run options:
+    - `./run.sh -b "ECLIPSELINK=true"` - Enables the EclipseLink extension.
+    - `./run.sh -b "ECLIPSELINK=true;ECLIPSELINK_DEPS=[groupId]:[artifactId]:[version],..."` – Enabled the EclipseLink extension with one or more additional dependencies for EclipseLink (e.g., JDBC drivers), separated by commas.

Review Comment:
   style: `Enabled` -> `Enables`, `e.g.,` -> `e.g.`. `drivers),` -> `drivers)`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add eclipseLinkDeps options for Dockerfile and run.sh [polaris]

Posted by "flyrain (via GitHub)" <gi...@apache.org>.
flyrain merged PR #313:
URL: https://github.com/apache/polaris/pull/313


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add eclipseLinkDeps options for Dockerfile and run.sh [polaris]

Posted by "flyrain (via GitHub)" <gi...@apache.org>.
flyrain commented on PR #313:
URL: https://github.com/apache/polaris/pull/313#issuecomment-2371768456

   Hi @MonkeyCanCode, can you rebase for the conflict?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add eclipseLinkDeps options for Dockerfile and run.sh [polaris]

Posted by "MonkeyCanCode (via GitHub)" <gi...@apache.org>.
MonkeyCanCode commented on code in PR #313:
URL: https://github.com/apache/polaris/pull/313#discussion_r1773697779


##########
README.md:
##########
@@ -67,10 +67,16 @@ Apache Polaris supports the following optional build options:
 ### More build and run options
 Running in Docker
 - `docker build -t localhost:5001/polaris:latest .` - To build the image.
+  - Optional build options:
+    - `docker build -t localhost:5001/polaris:latest --build-arg ECLIPSELINK=true .` - Enables the EclipseLink extension.
+    - `docker build -t localhost:5001/polaris:latest --build-arg ECLIPSELINK=true --build-arg ECLIPSELINK_DEPS=[groupId]:[artifactId]:[version],... .` – Enabled the EclipseLink extension with one or more additional dependencies for EclipseLink (e.g., JDBC drivers), separated by commas.
 - `docker run -p 8181:8181 localhost:5001/polaris:latest` - To run the image in standalone mode.
 
 Running in Kubernetes
 - `./run.sh` - To run Polaris as a mini-deployment locally. This will create one pod that bind itself to ports `8181` and `8182`.
+  - Optional run options:
+    - `./run.sh -b "ECLIPSELINK=true"` - Enables the EclipseLink extension.
+    - `./run.sh -b "ECLIPSELINK=true;ECLIPSELINK_DEPS=[groupId]:[artifactId]:[version],..."` – Enabled the EclipseLink extension with one or more additional dependencies for EclipseLink (e.g., JDBC drivers), separated by commas.

Review Comment:
   The deps for `ECLIPSELINK_DEPS` but the diff options are separated by commas. So following format:
   ```
   -b "KEY1=V1;KEY2=V2,V3,V4;KEY3=v4"
   ```
   
   This is because the delimiter is comma for diff optional options. Thus, I can't use comma to split deps as well. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add eclipseLinkDeps options for Dockerfile and run.sh [polaris]

Posted by "flyrain (via GitHub)" <gi...@apache.org>.
flyrain commented on PR #313:
URL: https://github.com/apache/polaris/pull/313#issuecomment-2372352711

   Thanks @MonkeyCanCode for the PR. Thanks @eric-maynard @aihuaxu for the review.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add eclipseLinkDeps options for Dockerfile and run.sh [polaris]

Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on code in PR #313:
URL: https://github.com/apache/polaris/pull/313#discussion_r1773678719


##########
README.md:
##########
@@ -67,10 +67,16 @@ Apache Polaris supports the following optional build options:
 ### More build and run options
 Running in Docker
 - `docker build -t localhost:5001/polaris:latest .` - To build the image.
+  - Optional build options:
+    - `docker build -t localhost:5001/polaris:latest --build-arg ECLIPSELINK=true .` - Enables the EclipseLink extension.
+    - `docker build -t localhost:5001/polaris:latest --build-arg ECLIPSELINK=true --build-arg ECLIPSELINK_DEPS=[groupId]:[artifactId]:[version],... .` – Enabled the EclipseLink extension with one or more additional dependencies for EclipseLink (e.g., JDBC drivers), separated by commas.
 - `docker run -p 8181:8181 localhost:5001/polaris:latest` - To run the image in standalone mode.
 
 Running in Kubernetes
 - `./run.sh` - To run Polaris as a mini-deployment locally. This will create one pod that bind itself to ports `8181` and `8182`.
+  - Optional run options:
+    - `./run.sh -b "ECLIPSELINK=true"` - Enables the EclipseLink extension.
+    - `./run.sh -b "ECLIPSELINK=true;ECLIPSELINK_DEPS=[groupId]:[artifactId]:[version],..."` – Enabled the EclipseLink extension with one or more additional dependencies for EclipseLink (e.g., JDBC drivers), separated by commas.

Review Comment:
   It's semicolons not commas right?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org