diff --git a/.github/workflows/regtest.yml b/.github/workflows/regtest.yml index b7f095c08e..ada192af14 100644 --- a/.github/workflows/regtest.yml +++ b/.github/workflows/regtest.yml @@ -39,4 +39,6 @@ jobs: env: AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} - run: docker compose up --build --exit-code-from regtest + run: | + ./gradlew dockerBuild --info + docker compose up --build --exit-code-from regtest diff --git a/README.md b/README.md index e71c6c8a88..08890efaeb 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ select * from db1.table1; Running in Docker - `./gradlew dockerBuild` - To build the image. - Run `./gradlew dockerBuild --info` - To see docker build output -- `docker run -p 8181:8181 polaris:1.0.0` - To run the image in standalone mode. +- `docker run -p 8181:8181 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`. diff --git a/docker-compose.yml b/docker-compose.yml index 1f988c309f..5d9cc0a721 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,8 +19,7 @@ services: polaris: - build: - context: . + image: polaris:latest ports: - "8181:8181" - "8182" diff --git a/docker/build.gradle.kts b/docker/build.gradle.kts index 1d3f16c399..974a599340 100644 --- a/docker/build.gradle.kts +++ b/docker/build.gradle.kts @@ -32,6 +32,7 @@ docker { images { polarisDocker { imageName = "polaris" + imageVersion = "latest" files { from("src/docker") from(dockerImage) diff --git a/run.sh b/run.sh index 895bc51e27..37eba888c4 100755 --- a/run.sh +++ b/run.sh @@ -28,7 +28,7 @@ sh ./kind-registry.sh # build and deploy the server image echo "Building polaris image..." ./gradlew dockerBuild --info -docker tag polaris:1.0.0 localhost:5001/polaris:latest +docker tag polaris:latest localhost:5001/polaris:latest echo "Pushing polaris image..." docker push localhost:5001/polaris echo "Loading polaris image to kind..."