Skip to content

Commit 14fdbb2

Browse files
committed
Update hydrodump-action
1 parent 6276c1d commit 14fdbb2

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

.env.example

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Postgres Database
2+
POSTGRES_HOST=database
3+
POSTGRES_PORT=5432
4+
POSTGRES_DB=reference
5+
POSTGRES_USER=root
6+
POSTGRES_PASSWORD=password
7+
8+
# Hydroshare credentials
9+
HYDRO_USERNAME=user
10+
HYDRO_PASSWORD=password
11+
HYDRO_RESOURCE=3295a17b4cc24d34bd6a5c5aaf753c50

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,5 @@ runs:
8080
- shell: bash
8181
run: docker exec hydrodump hydrodump run
8282
- shell: bash
83-
run: docker exec database pg_dump --clean --if-exists | gzip > ${{ inputs.db }}.sql.gz
83+
run: |
84+
docker exec database pg_dump --clean --if-exists | gzip > ${{ inputs.db }}.sql.gz

docker-compose.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Authors: Benjamin Webb <bwebb@lincolninst.edu>
44
#
5-
# Copyright (c) 2022 Benjamin Webb
5+
# Copyright (c) 2025 Benjamin Webb
66
#
77
# Permission is hereby granted, free of charge, to any person
88
# obtaining a copy of this software and associated documentation
@@ -26,9 +26,6 @@
2626
# OTHER DEALINGS IN THE SOFTWARE.
2727
#
2828
# =================================================================
29-
30-
version: '3'
31-
3229
services:
3330
hydrodump:
3431
container_name: hydrodump
@@ -50,21 +47,14 @@ services:
5047
- database
5148

5249
database:
53-
container_name: database
50+
container_name: $POSTGRES_HOST
5451
image: postgis/postgis:14-3.2-alpine
5552
volumes:
5653
- ./data:/data
5754
environment:
58-
- POSTGRES_HOST=$POSTGRES_HOST
5955
- POSTGRES_PORT=$POSTGRES_PORT
6056
- POSTGRES_DB=$POSTGRES_DB
61-
- PGDATABASE=$POSTGRES_DB
6257
- POSTGRES_USER=$POSTGRES_USER
63-
- PGUSER=$POSTGRES_USER
6458
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
65-
- PGPASSWORD=$POSTGRES_PASSWORD
66-
- HYDRO_USERNAME=$HYDRO_USERNAME
67-
- HYDRO_PASSWORD=$HYDRO_PASSWORD
68-
- HYDRO_RESOURCE=$HYDRO_RESOURCE
6959
ports:
7060
- 5432:5432

hydrodump/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
click
22
hsclient
3-
pydantic<2
3+
pydantic
44
# GDAL>=3.0.0

0 commit comments

Comments
 (0)