Skip to content

Commit

Permalink
Merge pull request #106 from opendatacube/bump_odc-tools_versions
Browse files Browse the repository at this point in the history
Bump version numbers
  • Loading branch information
omad authored Oct 17, 2023
2 parents 934f0d8 + cbd6706 commit 6a1d4dc
Show file tree
Hide file tree
Showing 8 changed files with 123 additions and 137 deletions.
12 changes: 2 additions & 10 deletions index/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM osgeo/gdal:ubuntu-small-3.4.2
FROM ghcr.io/osgeo/gdal:ubuntu-small-3.7.2

ENV DEBIAN_FRONTEND=noninteractive \
LC_ALL=C.UTF-8 \
Expand All @@ -22,20 +22,12 @@ RUN apt-get update \
lsb-release \
# for shapely with --no-binary
libgeos-dev \
postgresql-client-14 \
# Cleanup
&& apt-get autoclean \
&& apt-get autoremove \
&& rm -rf /var/lib/{apt,dpkg,cache,log}

# Setup PostgreSQL APT repository and install postgresql-client-13
RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN apt-get update \
&& apt-get install -y postgresql-client-13 \
&& apt-get autoclean \
&& apt-get autoremove \
&& rm -rf /var/lib/{apt,dpkg,cache,log}

COPY requirements.txt constraints.txt version.txt /conf/

RUN cat /conf/version.txt \
Expand Down
10 changes: 9 additions & 1 deletion index/assets/bootstrap-odc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,16 @@ set -o nounset
product_catalog=$1
metadata_catalog=$2

datacube system init --no-default-types --no-init-users
# Workaround for system init bug
#PGPASSWORD=$DB_PASSWORD psql -h "$DB_HOSTNAME" -c 'create schema agdc;' -U "$DB_USERNAME" "$DB_DATABASE"

datacube system init --no-default-types
# Created using : datacube metadata list | awk '{print $1}' | xargs datacube metadata show

# Workaround for system init bug
#PGPASSWORD=$DB_PASSWORD psql -h "$DB_HOSTNAME" -c 'drop view agdc.dv_eo3_dataset ; drop view agdc.dv_eo_dataset ; drop view agdc.dv_telemetry_dataset ; delete from agdc.metadata_type' -U "$DB_USERNAME" "$DB_DATABASE"


datacube metadata add "$metadata_catalog"
dc-sync-products "$product_catalog"

Expand Down
Loading

0 comments on commit 6a1d4dc

Please sign in to comment.