Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 31, 2022
1 parent 16c1c5e commit dd783ec
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 12 deletions.
1 change: 0 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,3 @@ services:
- "8000:8000"
volumes:
- ./artifacts:/mnt/artifacts

1 change: 0 additions & 1 deletion dump.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1505,4 +1505,3 @@ ALTER TABLE ONLY agdc.dataset_type
--
-- PostgreSQL database dump complete
--

2 changes: 1 addition & 1 deletion locust/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN set -ex \
&& pip install -r /requirements.txt

EXPOSE 8089/tcp
CMD locust -f /mnt/locust/locustfile.py --config=/mnt/locust/locust.conf
CMD locust -f /mnt/locust/locustfile.py --config=/mnt/locust/locust.conf
2 changes: 1 addition & 1 deletion locust/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ services:
build: .
volumes:
- ./:/mnt/locust
command: -f /mnt/locust/locustfile.py --worker --master-host master
command: -f /mnt/locust/locustfile.py --worker --master-host master
2 changes: 1 addition & 1 deletion locust/locustfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ def get_test_data():



# https://ows.dev.dea.ga.gov.au/wps/?service=WPS&request=Execute
# https://ows.dev.dea.ga.gov.au/wps/?service=WPS&request=Execute
2 changes: 1 addition & 1 deletion locust/request_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
<wps:ResponseForm>
<wps:ResponseDocument storeExecuteResponse="true" status="true"/>
</wps:ResponseForm>
</wps:Execute>
</wps:Execute>
10 changes: 5 additions & 5 deletions setup-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ if [ ! -f dump.sql ]; then

stac () { curl -s "$index/stac/search?collections=$1&datetime=$2T00:00:00Z/$3T00:00:00Z&bbox=$4&limit=500" |
jq '.features[].links[] | select(.rel == "odc_yaml") | .href'; }

{
stac ga_ls_wo_3 2000-01-01 2001-01-01 "137.01,-28.76,137.02,-28.75"
stac ga_ls_wo_3 2000-01-01 2001-01-01 "137.01,-28.76,137.02,-28.75"

stac "ga_ls8c_ard_3,ga_ls7e_ard_3,ga_ls_fc_3,ga_ls_wo_3" 2019-03-01 2019-08-01 "146.65,-36.16,147.29,-35.66"

stac mangrove_cover 2000-01-01 2006-01-01 "143.98,-14.69,144.27,-14.39"

} | xargs -L1 $cmd -v dataset add --confirm-ignore-lineage
Expand All @@ -33,7 +33,7 @@ if [ ! -f dump.sql ]; then

else

echo Reusing cache..
echo Reusing cache..

docker-compose exec -T -u postgres postgres psql < dump.sql

Expand Down

0 comments on commit dd783ec

Please sign in to comment.