adutra commented on code in PR #1125:
URL: https://github.com/apache/polaris/pull/1125#discussion_r1983707813


##########
getting-started/eclipselink/docker-compose.yml:
##########
@@ -49,10 +49,27 @@ services:
       timeout: 10s
       retries: 10
 
+  polaris-purge:
+    # IMPORTANT: the image MUST contain the Postgres JDBC driver and 
EclipseLink dependencies, see README for instructions
+    image: apache/polaris-admin-tool:postgres-latest
+    depends_on:
+      postgres:
+        condition: service_started
+    environment:
+      polaris.persistence.type: eclipse-link
+      polaris.persistence.eclipselink.configuration-file: 
/deployments/config/eclipselink/persistence.xml
+    volumes:
+      - ../assets/eclipselink/:/deployments/config/eclipselink
+    command:
+      - "purge"
+      - "--realm=POLARIS"

Review Comment:
   We can remove this container, but the issue, as @singhpk234 noted, is that 
if you shut down the containers, then run them again, the realm will be already 
bootstrapped and `polaris-bootstrap` will fail. 
   
   We don't have currently a way to say "ignore already-bootstrapped realms" 
when running the bootstrap command. I was planning to add that, but got 
side-tracked. That would imho be the best "fix" for the issue here.



-- 
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