-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1288 from GSA/snyk-fix
update snyk expirations and remove outdated
- Loading branch information
Showing
5 changed files
with
48 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,42 +9,42 @@ all: build | |
# ############################################### | ||
|
||
build: | ||
docker-compose build --parallel | ||
docker compose build --parallel | ||
|
||
ci: | ||
docker-compose up -d | ||
docker compose up -d | ||
|
||
clean: | ||
docker-compose down -v --remove-orphans | ||
docker compose down -v --remove-orphans | ||
|
||
cypress: | ||
# Turn on local system, and open cypress in interactive mode | ||
# If you haven't remapped localhost > ckan, you should change baseURL to "http://localhost:5000" in `e2e/cypress.json` | ||
docker-compose up -d && cd e2e && CYPRESS_USER=admin CYPRESS_USER_PASSWORD=password npx [email protected] open | ||
docker compose up -d && cd e2e && CYPRESS_USER=admin CYPRESS_USER_PASSWORD=password npx [email protected] open | ||
|
||
dev: | ||
docker build -t ghcr.io/gsa/catalog.data.gov:latest ckan/ | ||
docker-compose build | ||
docker-compose up | ||
docker compose build | ||
docker compose up | ||
|
||
debug: | ||
docker build -t ghcr.io/gsa/catalog.data.gov:latest ckan/ | ||
docker-compose build | ||
docker-compose run --service-ports ckan | ||
docker compose build | ||
docker compose run --service-ports ckan | ||
|
||
up: | ||
docker-compose up $(ARGS) | ||
docker compose up $(ARGS) | ||
|
||
update-dependencies: | ||
docker-compose run --rm -T ckan /app/ckan/freeze-requirements.sh $(shell id -u) $(shell id -g) | ||
docker compose run --rm -T ckan /app/ckan/freeze-requirements.sh $(shell id -u) $(shell id -g) | ||
|
||
# ############################################### | ||
# Test commands | ||
# ############################################### | ||
|
||
test: build | ||
# docker build -t ghcr.io/gsa/catalog.data.gov:latest ckan/ | ||
docker-compose -f docker-compose.yml -f docker-compose.test.yml up --abort-on-container-exit test | ||
docker compose -f docker-compose.yml -f docker-compose.test.yml up --abort-on-container-exit test | ||
|
||
# everytime you added some new variables, you need to swap it with some test values | ||
# and swap it back after the test. This is because "nginx -t" test cannot read env variables. | ||
|
@@ -79,31 +79,31 @@ validate-proxy: | |
|
||
quick-bat-test: | ||
# if local environment is already build and running | ||
docker-compose -f docker-compose.yml -f docker-compose.test.yml up --abort-on-container-exit test | ||
docker compose -f docker-compose.yml -f docker-compose.test.yml up --abort-on-container-exit test | ||
|
||
test-extensions: | ||
# test our extensions | ||
|
||
# deal with the CKAN path | ||
docker-compose exec ckan bash -c "ln -sf $(CKAN_HOME)/src/ckan $(CKAN_HOME)/ckan" | ||
docker compose exec ckan bash -c "ln -sf $(CKAN_HOME)/src/ckan $(CKAN_HOME)/ckan" | ||
|
||
# full test datajson | ||
docker-compose exec ckan bash -c \ | ||
docker compose exec ckan bash -c \ | ||
"cd $(CKAN_HOME)/src/ckanext-datajson && \ | ||
nosetests --ckan --with-pylons=$(CKAN_HOME)/src/ckan/test-catalog-next.ini ckanext/datajson/tests --debug=ckanext" | ||
|
||
# full test datagovtheme | ||
docker-compose exec ckan bash -c \ | ||
docker compose exec ckan bash -c \ | ||
"cd $(CKAN_HOME)/src/ckanext-datagovtheme && \ | ||
nosetests --ckan --with-pylons=$(CKAN_HOME)/src/ckan/test-catalog-next.ini ckanext/datagovtheme/tests --debug=ckanext" | ||
|
||
# full test geodatagov | ||
docker-compose exec ckan bash -c \ | ||
docker compose exec ckan bash -c \ | ||
"cd $(CKAN_HOME)/src/ckanext-geodatagov && \ | ||
nosetests --ckan --with-pylons=$(CKAN_HOME)/src/ckan/test-catalog-next.ini ckanext/geodatagov/tests --debug=ckanext" | ||
|
||
# full test geodatagov | ||
docker-compose exec ckan bash -c \ | ||
docker compose exec ckan bash -c \ | ||
"cd $(CKAN_HOME)/src/ckanext-datagovdatalog && \ | ||
nosetests --ckan --with-pylons=$(CKAN_HOME)/src/ckan/test-catalog-next.ini ckanext/datagovdatalog/tests --debug=ckanext" | ||
|
||
|
@@ -119,10 +119,10 @@ clear-solr-volume: | |
|
||
unlock-solr-volume: | ||
# Corruptible | ||
docker-compose run solr /bin/bash -c "rm -rf /var/solr/data/ckan/data/index/write.lock" | ||
docker compose run solr /bin/bash -c "rm -rf /var/solr/data/ckan/data/index/write.lock" | ||
|
||
search-index-rebuild: | ||
docker-compose exec ckan /bin/bash -c "ckan search-index rebuild" | ||
docker compose exec ckan /bin/bash -c "ckan search-index rebuild" | ||
|
||
copy-src: | ||
docker cp catalog-app_ckan_1:$(CKAN_HOME)/src . | ||
|
@@ -136,7 +136,7 @@ test-import-tool: | |
python -m pytest --vcr-record=none tests/ | ||
|
||
lint-all: | ||
docker-compose exec -T ckan \ | ||
docker compose exec -T ckan \ | ||
bash -c "cd $(CKAN_HOME)/src && \ | ||
pip install pip==20.3.3 && \ | ||
pip install flake8 && \ | ||
|
@@ -146,31 +146,31 @@ lint-all: | |
# qa: | ||
# ifeq (${PARAMS}, all) | ||
# # PARAMS=all make qa | ||
# docker-compose exec ckan ckan report generate | ||
# docker compose exec ckan ckan report generate | ||
# else ifeq (${PARAMS}, openness) | ||
# # PARAMS=openness make qa | ||
# # generate report at /report/openness | ||
# docker-compose exec ckan ckan report generate openness | ||
# docker compose exec ckan ckan report generate openness | ||
# else ifeq (${PARAMS}, update) | ||
# # PARAMS=update make qa | ||
# # QA is performed when a dataset/resource is archived, or you can run it manually using a ckan command: | ||
# docker-compose exec ckan ckan qa update | ||
# docker compose exec ckan ckan qa update | ||
# else ifeq (${PARAMS}, archive) | ||
# # PARAMS=archive make qa | ||
# # Archive datasets to perform QA | ||
# docker-compose exec ckan ckan archiver update --queue bulk | ||
# docker compose exec ckan ckan archiver update --queue bulk | ||
# else ifeq (${PARAMS}, worker) | ||
# # PARAMS=worker make qa | ||
# docker-compose exec ckan ckan jobs worker bulk | ||
# docker compose exec ckan ckan jobs worker bulk | ||
# endif | ||
|
||
update-tracking-info: | ||
# https://docs.ckan.org/en/2.8/maintaining/tracking.html | ||
docker-compose exec ckan ckan tracking update | ||
docker compose exec ckan ckan tracking update | ||
|
||
harvest: | ||
# Pass any of the following arguments to run them | ||
# ARGS=run make harvest | ||
# ARGS=gather-consumer make harvest | ||
# ARGS=fetch-consumer make harvest | ||
docker-compose exec ckan ckan harvester $(ARGS) | ||
docker compose exec ckan ckan harvester $(ARGS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters