Skip to content

Commit

Permalink
Merge pull request #6 from Tauffer-Consulting/dev
Browse files Browse the repository at this point in the history
fix container resources
  • Loading branch information
vinicvaz authored Dec 1, 2023
2 parents 6127400 + 6b7cc7f commit 0c63d0e
Show file tree
Hide file tree
Showing 15 changed files with 76 additions and 71 deletions.
64 changes: 32 additions & 32 deletions .domino/compiled_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
"description": "This Piece uses the News API to retrieve the top headlines from a given source or country.\nReferences:\n- https://newsapi.org/\n- https://newsapi.org/docs/endpoints/top-headlines",
"container_resources": {
"requests": {
"cpu": "100m",
"memory": "128Mi"
"cpu": 100,
"memory": 128
},
"limits": {
"cpu": "500m",
"memory": "512Mi"
"cpu": 500,
"memory": 512
}
},
"input_schema": {
Expand Down Expand Up @@ -287,12 +287,12 @@
"description": "This Piece uses the Dog API to get a random dog fact.\n- https://dog-api.kinduff.com/api/facts",
"container_resources": {
"requests": {
"cpu": "100m",
"memory": "128Mi"
"cpu": 100,
"memory": 128
},
"limits": {
"cpu": "500m",
"memory": "512Mi"
"cpu": 500,
"memory": 512
}
},
"input_schema": {
Expand Down Expand Up @@ -337,12 +337,12 @@
"description": "This Piece uses the Dog API to get a random dog picture.\n- https://dog.ceo/dog-api/",
"container_resources": {
"requests": {
"cpu": "100m",
"memory": "128Mi"
"cpu": 100,
"memory": 128
},
"limits": {
"cpu": "500m",
"memory": "512Mi"
"cpu": 500,
"memory": 512
}
},
"input_schema": {
Expand Down Expand Up @@ -418,12 +418,12 @@
"description": "This Piece uses the AlphaVantage API to get daily stock data.\n- https://www.alphavantage.co/",
"container_resources": {
"requests": {
"cpu": "100m",
"memory": "128Mi"
"cpu": 100,
"memory": 128
},
"limits": {
"cpu": "500m",
"memory": "512Mi"
"cpu": 500,
"memory": 512
}
},
"input_schema": {
Expand Down Expand Up @@ -513,12 +513,12 @@
"description": "This Piece uses the News API to retrieve full articles.\nReferences:\n- https://newsapi.org/\n- https://newsapi.org/docs/endpoints/everything",
"container_resources": {
"requests": {
"cpu": "100m",
"memory": "128Mi"
"cpu": 100,
"memory": 128
},
"limits": {
"cpu": "500m",
"memory": "512Mi"
"cpu": 500,
"memory": 512
}
},
"input_schema": {
Expand Down Expand Up @@ -725,12 +725,12 @@
"description": "This piece get covid 19 data for all countries",
"container_resources": {
"requests": {
"cpu": "100m",
"memory": "128Mi"
"cpu": 100,
"memory": 128
},
"limits": {
"cpu": "500m",
"memory": "512Mi"
"cpu": 500,
"memory": 512
}
},
"input_schema": {
Expand Down Expand Up @@ -817,12 +817,12 @@
"description": "This Piece uses the NASA EPIC API to get satellite images of the Earth.\nReferences: \n- https://epic.gsfc.nasa.gov/about/api \n- https://api.nasa.gov/",
"container_resources": {
"requests": {
"cpu": "100m",
"memory": "128Mi"
"cpu": 100,
"memory": 128
},
"limits": {
"cpu": "500m",
"memory": "512Mi"
"cpu": 500,
"memory": 512
}
},
"input_schema": {
Expand Down Expand Up @@ -914,12 +914,12 @@
"description": "This Piece uses the Ticketmaster API to get upcomming events based on a search options.\n -https://developer.ticketmaster.com/products-and-docs/apis/discovery-api/v2/",
"container_resources": {
"requests": {
"cpu": "100m",
"memory": "128Mi"
"cpu": 100,
"memory": 128
},
"limits": {
"cpu": "500m",
"memory": "512Mi"
"cpu": 500,
"memory": 512
}
},
"input_schema": {
Expand Down
4 changes: 2 additions & 2 deletions .domino/dependencies_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
],
"secrets": [
"ALPHA_VANTAGE_API_KEY",
"NASA_API_KEY",
"TICKETMASTER_API_KEY",
"NEWSAPI_API_KEY",
"TICKETMASTER_API_KEY"
"NASA_API_KEY"
],
"source_image": "ghcr.io/tauffer-consulting/data_apis_domino_pieces:development-group0"
}
Expand Down
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ REGISTRY_NAME = "tauffer-consulting"
REPOSITORY_NAME = "data_apis_domino_pieces"
REPOSITORY_LABEL = "Data APIs Domino Pieces"

VERSION = "0.3.0"
VERSION = "0.3.1"
8 changes: 4 additions & 4 deletions pieces/AlphaVantageDailyPiece/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
},
"container_resources": {
"requests": {
"cpu": "100m",
"memory": "128Mi"
"cpu": 100,
"memory": 128
},
"limits": {
"cpu": "500m",
"memory": "512Mi"
"cpu": 500,
"memory": 512
}
},
"style": {
Expand Down
3 changes: 2 additions & 1 deletion pieces/AlphaVantageDailyPiece/test_alphavantage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from domino.testing import piece_dry_run, skip_envs
from domino.testing import piece_dry_run
from domino.testing.utils import skip_envs
from pathlib import Path
import os

Expand Down
8 changes: 4 additions & 4 deletions pieces/CovidApiContriesPiece/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
},
"container_resources": {
"requests": {
"cpu": "100m",
"memory": "128Mi"
"cpu": 100,
"memory": 128
},
"limits": {
"cpu": "500m",
"memory": "512Mi"
"cpu": 500,
"memory": 512
}
},
"style": {
Expand Down
8 changes: 4 additions & 4 deletions pieces/DogRandomFactsPiece/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
},
"container_resources": {
"requests": {
"cpu": "100m",
"memory": "128Mi"
"cpu": 100,
"memory": 128
},
"limits": {
"cpu": "500m",
"memory": "512Mi"
"cpu": 500,
"memory": 512
}
},
"style": {
Expand Down
8 changes: 4 additions & 4 deletions pieces/DogRandomPicturePiece/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
},
"container_resources": {
"requests": {
"cpu": "100m",
"memory": "128Mi"
"cpu": 100,
"memory": 128
},
"limits": {
"cpu": "500m",
"memory": "512Mi"
"cpu": 500,
"memory": 512
}
},
"style": {
Expand Down
8 changes: 4 additions & 4 deletions pieces/NasaEarthImagePiece/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
},
"container_resources": {
"requests": {
"cpu": "100m",
"memory": "128Mi"
"cpu": 100,
"memory": 128
},
"limits": {
"cpu": "500m",
"memory": "512Mi"
"cpu": 500,
"memory": 512
}
},
"style": {
Expand Down
8 changes: 4 additions & 4 deletions pieces/NewsApiArticlesPiece/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
},
"container_resources": {
"requests": {
"cpu": "100m",
"memory": "128Mi"
"cpu": 100,
"memory": 128
},
"limits": {
"cpu": "500m",
"memory": "512Mi"
"cpu": 500,
"memory": 512
}
},
"style": {
Expand Down
4 changes: 3 additions & 1 deletion pieces/NewsApiArticlesPiece/test_newsapiarticle.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from domino.testing import piece_dry_run, skip_envs
from domino.testing import piece_dry_run
from domino.testing.utils import skip_envs
from datetime import date, timedelta
import os


@skip_envs("github")
def test_newsapi_articles():
if os.environ.get("NEWSAPI_API_KEY", None):
Expand Down
8 changes: 4 additions & 4 deletions pieces/NewsApiHeadlinesPiece/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
},
"container_resources": {
"requests": {
"cpu": "100m",
"memory": "128Mi"
"cpu": 100,
"memory": 128
},
"limits": {
"cpu": "500m",
"memory": "512Mi"
"cpu": 500,
"memory": 512
}
},
"style": {
Expand Down
3 changes: 2 additions & 1 deletion pieces/NewsApiHeadlinesPiece/test_newsapiheadlines.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from domino.testing import piece_dry_run, skip_envs
from domino.testing import piece_dry_run
from domino.testing.utils import skip_envs
import os


Expand Down
8 changes: 4 additions & 4 deletions pieces/TicketmasterUpcommingEventsPiece/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
},
"container_resources": {
"requests": {
"cpu": "100m",
"memory": "128Mi"
"cpu": 100,
"memory": 128
},
"limits": {
"cpu": "500m",
"memory": "512Mi"
"cpu": 500,
"memory": 512
}
},
"style": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from domino.testing import piece_dry_run, skip_envs
from domino.testing import piece_dry_run
from domino.testing.utils import skip_envs
import os


Expand Down

0 comments on commit 0c63d0e

Please sign in to comment.