-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3aa63e1
commit f154f0d
Showing
8 changed files
with
105 additions
and
29 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 |
---|---|---|
@@ -1,12 +1,19 @@ | ||
{ | ||
"078WAr": "See all", | ||
"0iB3Cs": "Transaction added", | ||
"5ARyR8": "Personal Finance", | ||
"7vsu1w": "Sign in with Facebook", | ||
"CHu6Xm": "Total Spend (month)", | ||
"CG3a47": "All transactions", | ||
"D3idYv": "Settings", | ||
"GMkXVd": "Recent Transactions", | ||
"GZJpDf": "Analytics", | ||
"LgAx49": "Category added", | ||
"MTfefh": "No transactions", | ||
"Op5EHr": "Sign in with Google", | ||
"URe+qA": "Expense", | ||
"a9m3iY": "{amount} $", | ||
"bQAtuf": "Loading...", | ||
"gJkHZk": "Income" | ||
"VKb1MS": "Categories", | ||
"dXSivY": "My account", | ||
"gJkHZk": "Income", | ||
"lbpe3v": "Signed out", | ||
"xXbJso": "Sign out" | ||
} |
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
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 |
---|---|---|
|
@@ -40,9 +40,13 @@ RUN git config --global --add credential.helper 'store --file=/run/secrets/gitcr | |
&& git config --global url."https://github.com/".insteadOf [email protected]: | ||
|
||
COPY get_zefdb.sh . | ||
ADD backend . | ||
ADD ikura.graphql . | ||
|
||
RUN --mount=type=secret,id=gitcredentials bash get_zefdb.sh zef v0.15.2-rc6 'zef-.*cp310' | ||
RUN --mount=type=secret,id=gitcredentials bash get_zefdb.sh zef v0.15.3-dev2 'zef-.*cp310' | ||
|
||
# pip install stuff | ||
ADD requirements.txt . | ||
RUN pip3 install --no-cache-dir -r requirements.txt | ||
|
||
EXPOSE 5001 | ||
|
||
|
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,30 @@ | ||
#!/bin/bash | ||
|
||
# Black magic to extract access token and then get asset id from github | ||
# Steps: | ||
# 1. Get GH_ACCESS_TOKEN from the secret passed in as the gitcredentials (this is not stored past this RUN command) | ||
# 2. Scrap the github release to find the asset with "zefdb-" and "cp38" in its name (i.e. with julia and python 3.8). | ||
# 3. Grab the file itself | ||
|
||
if [ "$#" -ne 3 ] ; then | ||
echo "Need three arguments, the repo, the tag and the asset filter, zefDB v0.12.26 e.g. zefdb-.*cp38" | ||
exit 1 | ||
fi | ||
|
||
REPO="$1" | ||
ZEFDB_TAG="$2" | ||
ASSET_FILTER="$3" | ||
|
||
set -o pipefail | ||
GH_ACCESS_TOKEN=$(cat /run/secrets/gitcredentials | sed -e 's_^https://.*:\(.*\)@.*$_\1_') || exit 1 | ||
|
||
DETAILS="$(curl "https://${GH_ACCESS_TOKEN}:@api.github.com/repos/zefhub/$REPO/releases/tags/$ZEFDB_TAG" | jq ".assets | map(select(.name | test(\"$ASSET_FILTER\")))[0]")" || exit 1 | ||
ASSET_ID=$(echo $DETAILS | jq ".id") || exit 1 | ||
FILENAME=$(echo $DETAILS | jq ".name" | tr -d \") || exit 1 | ||
|
||
curl -L -o $FILENAME -H 'Accept: application/octet-stream' "https://${GH_ACCESS_TOKEN}:@api.github.com/repos/zefhub/$REPO/releases/assets/${ASSET_ID}" || exit 1 | ||
|
||
if [[ "$FILENAME" == "null" ]] ; then | ||
exit 1 | ||
fi | ||
pip3 install --no-cache-dir $FILENAME |
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 @@ | ||
requests>=2.27.1 |
f154f0d
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.
Successfully deployed to the following URLs:
ikura – ./
www.ikura.app
ikura.app
ikura.vercel.app
ikura-git-main-zefhub.vercel.app
ikura-zefhub.vercel.app