monali45 commented on issue #1916:
URL: https://github.com/apache/polaris/issues/1916#issuecomment-2996702877

   Hi @adutra 
   
   Both commands run fine:
   ```
   
   sudo docker build -f runtime/server/src/main/docker/Dockerfile.jvm -t 
docker.io/apache/polaris:postgres-latest runtime/server
   [+] Building 8.4s (15/15) FINISHED                                      
docker:default
    => [internal] load build definition from Dockerfile.jvm                     
     0.0s
    => => transferring dockerfile: 2.10kB                                       
     0.0s
    => [internal] load metadata for 
registry.access.redhat.com/ubi9/openjdk-21-runt  0.3s
    => [internal] load .dockerignore                                            
     0.0s
    => => transferring context: 2B                                              
     0.0s
    => [ 1/10] FROM 
registry.access.redhat.com/ubi9/openjdk-21-runtime:1.22-1.17494  0.0s
    => [internal] load build context                                            
     3.0s
    => => transferring context: 214.23MB                                        
     2.9s
    => CACHED [ 2/10] RUN groupadd --gid 10001 polaris       && useradd --uid 
10000  0.0s
    => CACHED [ 3/10] WORKDIR /home/polaris                                     
     0.0s
    => [ 4/10] COPY --chown=polaris:polaris build/quarkus-app/lib/ 
/deployments/lib  3.4s
    => [ 5/10] COPY --chown=polaris:polaris build/quarkus-app/*.jar 
/deployments/    0.0s
    => [ 6/10] COPY --chown=polaris:polaris build/quarkus-app/app/ 
/deployments/app  0.0s
    => [ 7/10] COPY --chown=polaris:polaris build/quarkus-app/quarkus/ 
/deployments  0.0s
    => [ 8/10] COPY --chown=polaris:polaris distribution/LICENSE /deployments/  
     0.1s
    => [ 9/10] COPY --chown=polaris:polaris distribution/NOTICE /deployments/   
     0.0s
    => [10/10] COPY --chown=polaris:polaris distribution/DISCLAIMER 
/deployments/    0.0s
    => exporting to image                                                       
     1.4s
    => => exporting layers                                                      
     1.4s
    => => writing image 
sha256:828d528fe1017ab7414490ba4b406213f102c20de7c0c361bfd1  0.0s
    => => naming to docker.io/apache/polaris:postgres-latest                    
     0.0s
   monali_nayak@apache-polaris-dev:~/app/polaris$ sudo docker build -f 
runtime/admin/src/main/docker/Dockerfile.jvm -t 
docker.io/apache/polaris-admin-tool:postgres-latest runtime/admin
   [+] Building 1.9s (15/15) FINISHED                                      
docker:default
    => [internal] load build definition from Dockerfile.jvm                     
     0.0s
    => => transferring dockerfile: 2.11kB                                       
     0.0s
    => [internal] load metadata for 
registry.access.redhat.com/ubi9/openjdk-21-runt  0.3s
    => [internal] load .dockerignore                                            
     0.0s
    => => transferring context: 2B                                              
     0.0s
    => [internal] load build context                                            
     1.5s
    => => transferring context: 111.09MB                                        
     1.5s
    => [ 1/10] FROM 
registry.access.redhat.com/ubi9/openjdk-21-runtime:1.22-1.17494  0.0s
    => CACHED [ 2/10] RUN groupadd --gid 10001 polaris       && useradd --uid 
10000  0.0s
    => CACHED [ 3/10] WORKDIR /home/polaris                                     
     0.0s
    => CACHED [ 4/10] COPY --chown=polaris:polaris build/quarkus-app/lib/ 
/deployme  0.0s
    => CACHED [ 5/10] COPY --chown=polaris:polaris 
build/quarkus-app/quarkus-run.ja  0.0s
    => CACHED [ 6/10] COPY --chown=polaris:polaris build/quarkus-app/app/ 
/deployme  0.0s
    => CACHED [ 7/10] COPY --chown=polaris:polaris build/quarkus-app/quarkus/ 
/depl  0.0s
    => CACHED [ 8/10] COPY --chown=polaris:polaris distribution/LICENSE 
/deployment  0.0s
    => CACHED [ 9/10] COPY --chown=polaris:polaris distribution/NOTICE 
/deployments  0.0s
    => CACHED [10/10] COPY --chown=polaris:polaris distribution/DISCLAIMER 
/deploym  0.0s
    => exporting to image                                                       
     0.0s
    => => exporting layers                                                      
     0.0s
    => => writing image 
sha256:1a02cba7b6e3460a072b2fa374e251475e7d35cf8892c82bca5b  0.0s
    => => naming to docker.io/apache/polaris-admin-tool:postgres-latest         
     0.0s
   ```
   
   
   Update:
   I am using last 2 commands to setup polaris on VM 
https://github.com/apache/polaris/blob/main/getting-started/assets/cloud_providers/deploy-gcp.sh#L50C1-L55C131
   
   1. Gradle command: 
   
   ```
   sudo /gradlew clean :polaris-server:assemble :polaris-admin:assemble \
          -Dquarkus.container-image.tag=postgres-latest \
          -Dquarkus.container-image.build=true \
          --no-build-cache
   ```
   
   Result: getting warnings on gradle cmd, but build is successful:
   
   ```
       T extends Object declared in class Builder
   
/home/monali_nayak/app/polaris/polaris-core/src/main/java/org/apache/polaris/core/config/FeatureConfiguration.java:184:
 warning: [deprecation] catalogConfigUnsafe(String) in Builder has been 
deprecated
             .catalogConfigUnsafe("drop-with-purge.enabled")
             ^
     where T is a type-variable:
       T extends Object declared in class Builder
   8 warnings
   
   [Incubating] Problems report is available at: 
file:///home/monali_nayak/app/polaris/build/reports/problems/problems-report.html
   
   Deprecated Gradle features were used in this build, making it incompatible 
with Gradle 9.0.
   
   You can use '--warning-mode all' to show the individual deprecation warnings 
and determine if they come from your own scripts or plugins.
   
   For more on this, please refer to 
https://docs.gradle.org/8.14.2/userguide/command_line_interface.html#sec:command_line_warnings
 in the Gradle documentation.
   
   BUILD SUCCESSFUL in 2m 31s
   136 actionable tasks: 125 executed, 11 up-to-date
   ```
   
   
   2. Docker command: 
   
   `sudo docker compose -p polaris -f 
getting-started/jdbc/docker-compose-bootstrap-db.yml -f 
getting-started/jdbc/docker-compose.yml up -d`
   
   Result: Variables are assigned but getting warnings. And 
polaris-polaris-bootstrap-1 container failing to start
   
   ```
   
   WARN[0000] The "QUARKUS_DATASOURCE_JDBC_URL" variable is not set. Defaulting 
to a blank string. 
   WARN[0000] The "QUARKUS_DATASOURCE_USERNAME" variable is not set. Defaulting 
to a blank string. 
   WARN[0000] The "QUARKUS_DATASOURCE_PASSWORD" variable is not set. Defaulting 
to a blank string. 
   WARN[0000] The "QUARKUS_DATASOURCE_JDBC_URL" variable is not set. Defaulting 
to a blank string. 
   WARN[0000] The "QUARKUS_DATASOURCE_PASSWORD" variable is not set. Defaulting 
to a blank string. 
   WARN[0000] The "CLIENT_ID" variable is not set. Defaulting to a blank 
string. 
   WARN[0000] The "CLIENT_SECRET" variable is not set. Defaulting to a blank 
string. 
   WARN[0000] The "QUARKUS_DATASOURCE_USERNAME" variable is not set. Defaulting 
to a blank string. 
   WARN[0000] The "STORAGE_LOCATION" variable is not set. Defaulting to a blank 
string. 
   WARN[0000] The "AWS_ROLE_ARN" variable is not set. Defaulting to a blank 
string. 
   WARN[0000] The "AZURE_TENANT_ID" variable is not set. Defaulting to a blank 
string. 
   WARN[0000] The "CLIENT_ID" variable is not set. Defaulting to a blank 
string. 
   WARN[0000] The "CLIENT_SECRET" variable is not set. Defaulting to a blank 
string. 
   WARN[0000] The "ASSETS_PATH" variable is not set. Defaulting to a blank 
string. 
   WARN[0000] The "CLIENT_ID" variable is not set. Defaulting to a blank 
string. 
   WARN[0000] The "CLIENT_SECRET" variable is not set. Defaulting to a blank 
string. 
   WARN[0000] The "ASSETS_PATH" variable is not set. Defaulting to a blank 
string. 
   [+] Running 6/6
    ✔ Network polaris_default                Created                            
     0.1s 
    ✘ Container polaris-polaris-bootstrap-1  service "polaris-bootstrap" didn't 
complete successfully: exit 32.1s aris-1            Create...                   
            0.0s 
    ✔ Container polaris-polaris-1            Create...                          
     0.0s 
    ✔ Container polaris-polaris-setup-1      Created                            
     0.0s 
    ✔ Container polaris-spark-sql-1          Crea...                            
     0.1s 
    ✔ Container polaris-trino-1              Created                            
     0.1s 
   
   
   ```
   
   


-- 
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: issues-unsubscr...@polaris.apache.org

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

Reply via email to