diff --git a/docker-compose.yml b/docker-compose.yml index 9b729b69f..5cf53ae1a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -43,9 +43,7 @@ services: links: - pg pg: - image: postgres - build: - context: docker/postgres/. + image: "ghcr.io/codeforjapan/postgresql_bigm:12-latest" volumes: - pg-data:/var/lib/postgresql/data environment: diff --git a/docker/postgres/Dockerfile b/docker/postgres/Dockerfile deleted file mode 100644 index 71826578f..000000000 --- a/docker/postgres/Dockerfile +++ /dev/null @@ -1,16 +0,0 @@ -FROM postgres:12 - -RUN apt update -RUN apt install -y postgresql-server-dev-12 make gcc curl libicu-dev - -RUN cd /tmp && \ - curl -L -O https://github.com/pgbigm/pg_bigm/archive/refs/tags/v1.2-20240606.tar.gz && \ - tar zxf v1.2-20240606.tar.gz && \ - cd pg_bigm-1.2-20240606 && \ - make USE_PGXS=1 && \ - make USE_PGXS=1 install && \ - rm -rf /tmp/pg_bigm-1.2-20240606 /tmp/v1.2-20240606.tar.gz - -RUN mkdir -p /docker-entrypoint-initdb.d -COPY ./initdb-pg_bigm.sql /docker-entrypoint-initdb.d/10_pg_bigm.sql - diff --git a/docker/postgres/initdb-pg_bigm.sql b/docker/postgres/initdb-pg_bigm.sql deleted file mode 100644 index 7aac902db..000000000 --- a/docker/postgres/initdb-pg_bigm.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE EXTENSION IF NOT EXISTS pg_bigm; \ No newline at end of file