thomasrebele commented on code in PR #6825: URL: https://github.com/apache/hive/pull/6825#discussion_r4193169468
########## standalone-metastore/metastore-server/docker/hive-postgres-tpcds-metastore/Dockerfile: ########## @@ -14,9 +14,16 @@ # See the License for the specific language governing permissions and # limitations under the License. # -FROM postgres:12.3 +FROM postgres:18-alpine + +ADD https://github.com/thomasrebele/hive-postgres-metastore/releases/download/tpcds-30tb-histogram-1.0/metastore_tpcds30tb_with_histograms.raw_db.zstd /tmp/metastore_db.zstd Review Comment: Thanks! Seems that podman and docker behave differently here: ``` $ podman version Client: Podman Engine Version: 4.9.3 API Version: 4.9.3 Go Version: go1.22.2 Built: Thu Jan 1 01:00:00 1970 OS/Arch: linux/amd64 $ cat Dockerfile FROM postgres:18-alpine RUN wget -O /tmp/metastore_db.zstd https://github.com/thomasrebele/hive-postgres-metastore/releases/download/tpcds-30tb-histogram-1.0/metastore_tpcds30tb_with_histograms.raw_db.zstd \ && echo '0423efc0cbc554611ac3bbf5e7919b050767bf96 /tmp/metastore_db.zstd' > /tmp/metastore_db.sha1 \ && sha1sum -c /tmp/metastore_db.sha1 \ && chown postgres:postgres /tmp/metastore_db.zstd \ && zstdcat /tmp/metastore_db.zstd | tar -C /var/lib/postgresql/ -x \ && rm /tmp/metastore_db.zstd $ podman build --tag apache/hive-postgres-tpcds-metastore:1.5-opt2 . <<< STEP 1/2: FROM postgres:18-alpine STEP 2/2: RUN wget -O /tmp/metastore_db.zstd https://github.com/thomasrebele/hive-postgres-metastore/releases/download/tpcds-30tb-histogram-1.0/metastore_tpcds30tb_with_histograms.raw_db.zstd && echo '0423efc0cbc554611ac3bbf5e7919b050767bf96 /tmp/metastore_db.zstd' > /tmp/metastore_db.sha1 && sha1sum -c /tmp/metastore_db.sha1 && chown postgres:postgres /tmp/metastore_db.zstd && zstdcat /tmp/metastore_db.zstd | tar -C /var/lib/postgresql/ -x && rm /tmp/metastore_db.zstd --> Using cache 91917c05c5923643f72cacd11d86e1e9d78001fcfc0440e8a78cc628212d1d20 COMMIT apache/hive-postgres-tpcds-metastore:1.5-opt2 --> 91917c05c592 Successfully tagged localhost/apache/hive-postgres-tpcds-metastore:1.5-opt2 91917c05c5923643f72cacd11d86e1e9d78001fcfc0440e8a78cc628212d1d20 $ podman image ls apache/hive-postgres-tpcds-metastore:1.5-opt2 REPOSITORY TAG IMAGE ID CREATED SIZE localhost/apache/hive-postgres-tpcds-metastore 1.5-opt2 91917c05c592 22 hours ago 307 MB ``` I would suggest moving forward with option 1. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
