diff --git a/getting-started/assets/eclipselink/persistence.xml b/getting-started/assets/eclipselink/persistence.xml index e569a9183..eeaa606b0 100644 --- a/getting-started/assets/eclipselink/persistence.xml +++ b/getting-started/assets/eclipselink/persistence.xml @@ -26,7 +26,6 @@ org.apache.polaris.jpa.models.ModelEntity org.apache.polaris.jpa.models.ModelEntityActive org.apache.polaris.jpa.models.ModelEntityChangeTracking - org.apache.polaris.jpa.models.ModelEntityDropped org.apache.polaris.jpa.models.ModelGrantRecord org.apache.polaris.jpa.models.ModelPrincipalSecrets org.apache.polaris.jpa.models.ModelSequenceId @@ -40,6 +39,8 @@ + + diff --git a/getting-started/eclipselink/docker-compose.yml b/getting-started/eclipselink/docker-compose.yml index 252ea53d6..3499f1897 100644 --- a/getting-started/eclipselink/docker-compose.yml +++ b/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" + polaris-bootstrap: # 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: + polaris-purge: + condition: service_started postgres: condition: service_healthy environment: