-
Notifications
You must be signed in to change notification settings - Fork 41
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
Showing
156 changed files
with
465,094 additions
and
55 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
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,4 @@ | ||
FROM "docker.io/rkrispin/eia_data_refresh:dev.0.0.0.9000" | ||
|
||
COPY .Rprofile / | ||
RUN echo "alias r='radian --profile=/.Rprofile'" >> ~/.bashrc |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
VENV_NAME=$1 | ||
|
||
python3 -m venv /opt/$VENV_NAME \ | ||
&& export PATH=/opt/$VENV_NAME/bin:$PATH \ | ||
&& echo "source /opt/$VENV_NAME/bin/activate" >> ~/.bashrc | ||
|
||
apt-get update && apt-get install -y --no-install-recommends \ | ||
gcc \ | ||
python3-dev \ | ||
build-essential \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
source /opt/$VENV_NAME/bin/activate | ||
|
||
pip install --upgrade pip | ||
|
||
pip3 install --no-cache-dir -r ./settings/requirements.txt |
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 |
---|---|---|
@@ -1 +1,11 @@ | ||
radian | ||
wheel | ||
radian | ||
pandas | ||
numpy | ||
gensim | ||
ipykernel | ||
requests | ||
plotly | ||
ipywidgets | ||
jupyter | ||
great_tables |
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,19 @@ | ||
name: Data Refresh - R (Docker) | ||
|
||
on: | ||
schedule: | ||
- cron: "0 */1 * * *" | ||
jobs: | ||
refresh-the-dashboard: | ||
runs-on: ubuntu-22.04 | ||
container: | ||
image: docker.io/rkrispin/eia_data_refresh:0.0.0.9004 | ||
steps: | ||
- name: checkout_repo | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: "stg" | ||
- name: Data Refresh | ||
run: bash ./R/data_refresh_R.sh "RamiKrispin" "[email protected]" | ||
env: | ||
EIA_API_KEY: ${{ secrets.EIA_API_KEY }} |
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 |
---|---|---|
|
@@ -16,4 +16,4 @@ jobs: | |
- name: Data Refresh | ||
run: bash ./python/data_refresh_py.sh "RamiKrispin" "[email protected]" | ||
env: | ||
API_KEY: ${{ secrets.EIA_API_KEY }} | ||
EIA_API_KEY: ${{ secrets.EIA_API_KEY }} |
Oops, something went wrong.