Skip to content

Commit

Permalink
Fixes #44 (#45)
Browse files Browse the repository at this point in the history
* Fixes #44

* Fix wording
  • Loading branch information
dominicschaff authored Sep 20, 2021
1 parent 852dbb5 commit 61b83c1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ help: ## Print this help
@echo
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-10s\033[0m %s\n", $$1, $$2}'

setup: build up init product index ## Run a full setup, or manually run the following 4 steps
setup: build up init product index ## Run a full local/development setup
setup-prod: up-prod init product index ## Run a full production setup

up: ## 1. Bring up your Docker environment
docker-compose up -d postgres
Expand Down Expand Up @@ -70,7 +71,9 @@ push-image:

up-prod: ## Bring up production version
docker-compose -f docker-compose-prod.yml pull
docker-compose -f docker-compose.yml -f docker-compose-prod.yml up --no-build
docker-compose -f docker-compose.yml -f docker-compose-prod.yml up --detach postgres
docker-compose run checkdb
docker-compose -f docker-compose.yml -f docker-compose-prod.yml up --detach --no-build

# This section can be used to deploy onto CloudFormation instead of the 'magic link'
create-infra:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _First time users of Docker should run:_
* Note that after this step you will either need to logout/login, or run the next step with `sudo`

*If you already have `make` , `docker` and `docker-compose` installed*
* `make setup`
* `make setup` or `make setup-prod` (for speed)

*If you do not have `make` installed and would rather run the commands individually run the following:*

Expand Down
4 changes: 2 additions & 2 deletions cube-in-a-box-cloudformation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ Resources:
wget https://github.com/opendatacube/cube-in-a-box/archive/refs/heads/main.zip -O /home/ubuntu/archive.zip
unzip /home/ubuntu/archive.zip -d /home/ubuntu
bash /home/ubuntu/cube-in-a-box-main/setup.sh
sed --in-place "s/secretpassword/${SecretPassword}/g" /home/ubuntu/cube-in-a-box-main/Dockerfile
make -C /home/ubuntu/cube-in-a-box-main setup BBOX="${ExtentToIndex}"
echo 'CIABPASSWORD=${SecretPassword}' > /home/ubuntu/cube-in-a-box-main/.env
make -C /home/ubuntu/cube-in-a-box-main setup-prod BBOX="${ExtentToIndex}"
Tags:
- Key: "Name"
Value: !Ref "EC2InstanceName"
Expand Down
1 change: 1 addition & 0 deletions docker-compose-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ version: '3'
services:
jupyter:
image: opendatacube/cube-in-a-box:latest
command: "jupyter notebook --allow-root --ip='0.0.0.0' -NotebookApp.token='${CIABPASSWORD}'"

0 comments on commit 61b83c1

Please sign in to comment.