-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(improvement): Implement makim and containers-sugar #181
Open
YurelyCamacho
wants to merge
24
commits into
thegraphnetwork:main
Choose a base branch
from
YurelyCamacho:eghmakim
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
7949656
Create file for implementation of containers-sugar
YurelyCamacho b542242
Create file for implementation of makim
YurelyCamacho a3e4518
Adding dependencies
YurelyCamacho c64e6c8
Update commands for makim and containers-sugar
YurelyCamacho 3a8cfd4
Adding an empty line at the end of the files
YurelyCamacho e93b6a3
Delete command
YurelyCamacho 4fe8405
Changes in main.yaml
YurelyCamacho 8c3b620
main.yaml
YurelyCamacho e7ed016
main.yaml
YurelyCamacho 3f99bcd
Revert main.yaml
YurelyCamacho e4f2156
Update main.yaml
YurelyCamacho 841faef
revert
YurelyCamacho abddf77
update containers-sugar.yaml
YurelyCamacho ff77e33
Update makim.yaml
YurelyCamacho bdfa2bf
Update makim.yaml
YurelyCamacho 913aa27
makim.yaml test
YurelyCamacho a3704ac
Changes in makim.yaml
YurelyCamacho 8e96359
Add temporarily debugging session
xmnlab 5b72295
Update label trigger
xmnlab 6fd127d
Fix ci
xmnlab 4808211
Change in path
YurelyCamacho 1f86a46
update
YurelyCamacho b36f862
update
YurelyCamacho 2416acb
Add debugging step
xmnlab File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
version: 1.0.0 | ||
compose-app: docker-compose | ||
service-groups: | ||
- name: default | ||
project-name: egh-prod | ||
compose-path: | ||
- containers/compose-base.yaml | ||
- containers/compose-prod.yaml | ||
env-file: .env | ||
services: | ||
default: superset,airflow | ||
list: | ||
- name: redis | ||
- name: flower | ||
- name: minio | ||
- name: superset | ||
- name: airflow | ||
- name: postgres | ||
|
||
- name: dev | ||
project-name: egh-dev | ||
compose-path: | ||
- containers/compose-base.yaml | ||
- containers/compose-dev.yaml | ||
env-file: .env | ||
services: | ||
default: superset,airflow | ||
list: | ||
- name: superset | ||
- name: airflow | ||
- name: postgres |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
version: 1.0.0 | ||
env-file: .env | ||
groups: | ||
|
||
host: | ||
targets: | ||
prepare: | ||
help: Preparing host | ||
shell: bash | ||
run: | | ||
./scripts/prepare-host.sh | ||
|
||
aws: | ||
targets: | ||
dev-create-s3-credential: | ||
help: Create AWS S3 Credentials | ||
run: | | ||
set -e | ||
./scripts/dev/create-s3-credential.sh | ||
|
||
|
||
conda: | ||
targets: | ||
lock: | ||
help: Configure a conda-lock | ||
run: | | ||
cd conda | ||
rm -f conda-*.lock | ||
conda-lock --conda which mamba \ | ||
-f prod.yaml \ | ||
-p osx-64 \ | ||
-p linux-64 \ | ||
--kind explicit | ||
|
||
containers: | ||
targets: | ||
wait: | ||
help: Wait for a service | ||
args: | ||
timeout: | ||
help: Define the timeout for the healthcheck | ||
type: integer | ||
default: 30 | ||
service: | ||
help: Service name that would be awaited | ||
type: string | ||
required: True | ||
|
||
run: | | ||
timeout {{ args.timeout }} ./containers/scripts/healthcheck.sh {{ args.service }} | ||
|
||
wait-all: | ||
run: | | ||
if $ENV == "dev": | ||
makim containers.wait --service "postgres" | ||
|
||
for service in ["postgres","airflow","superset","redis","flower","minio"]: | ||
makim containers.wait --service @(service) | ||
|
||
start-services: | ||
help: bla | ||
shell: bash | ||
dependencies: | ||
- targets: host.prepare | ||
args: | ||
services: | ||
help: Services names separated by comma | ||
type: string | ||
default: "airflow,superset" | ||
|
||
run: | | ||
set -e | ||
if [ "${ENV}" = "dev" ]; then \ | ||
containers-sugar start --services "postgres"; \ | ||
makim containers.wait --service "postgres"; \ | ||
fi | ||
containers-sugar start --services {{ args.services }} | ||
makim containers.wait --service "airflow" | ||
|
||
dev-prepare-db: | ||
help: Prepare a database. Used for development | ||
run: | | ||
containers-sugar exec --extras="-T" --services superset --cmd "bash /opt/EpiGraphHub/containers/postgresql/scripts/dev/prepare-db.sh" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,5 @@ dependencies: | |
- pip | ||
- pip: | ||
- epigraphhub | ||
- containers-sugar==1.4.3 | ||
- makim==1.6.4 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure that it is correct? I would say that it would be