Skip to content

Commit

Permalink
Tidying and attempting to fix GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
omad committed Jul 2, 2024
1 parent 65333c8 commit 5d12afb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 20 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ jobs:
make build-prod
make up-prod
- name: Sleep for 10 seconds
uses: whatnick/wait-action@master
with:
time: '5s'
- name: Sleep for 30 seconds
run: sleep 30s
shell: bash

- name: Prepare explorer schema
run: |
Expand Down
28 changes: 14 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,55 +88,55 @@ clean: ## Clean all working/temporary files

# DOCKER STUFF
up: ## Start server using Docker
docker-compose up --quiet-pull
docker compose up --quiet-pull

up-d: ## Start server using Docker in background
docker-compose up -d --quiet-pull
docker compose up -d --quiet-pull

build: ## Build the dev Docker image
docker-compose build
docker compose build

docker-clean: ## Get rid of the local docker env and DB
docker-compose down
docker compose down

build-prod: ## Build the prod Docker image
docker-compose \
docker compose \
--file docker-compose.yml \
build

up-prod: ## Start using the prod Docker image
docker-compose \
docker compose \
--file docker-compose.yml \
up -d --quiet-pull

init-odc: ## Initialise ODC Database
docker-compose exec -T explorer \
docker compose exec -T explorer \
datacube system init

docker-shell: ## Get a shell into local Docker environ
docker-compose exec -T explorer \
docker compose exec -T explorer \
bash

schema: ## Initialise Explorer DB using Docker
docker-compose exec -T explorer \
docker compose exec -T explorer \
cubedash-gen -v --init

index: ## Update Explorer DB using Docker
docker-compose exec -T explorer \
docker compose exec -T explorer \
cubedash-gen --all

force-refresh: ## Entirely refresh the Explorer tables in Docker
docker-compose exec -T explorer \
docker compose exec -T explorer \
cubedash-gen --force-refresh --refresh-stats --all

create-test-db-docker: ## Create a test database inside Docker
docker-compose run --rm -T explorer \
docker compose run --rm -T explorer \
bash /code/.docker/create_db.sh

lint-docker: ## Run linting inside inside Docker
docker-compose run --rm explorer \
docker compose run --rm explorer \
make lint

test-docker: ## Run tests inside Docker
docker-compose run --rm explorer \
docker compose run --rm explorer \
pytest --cov=cubedash --cov-report=xml -r sx --durations=5
1 change: 0 additions & 1 deletion docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: "3.4"
services:
explorer:
build:
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: "3.4"
services:
explorer:
build:
Expand Down

0 comments on commit 5d12afb

Please sign in to comment.