Skip to content

Commit

Permalink
Add DLC Oracle ability (#24)
Browse files Browse the repository at this point in the history
* adds instructions on running with duckdb library 
* re-works weather data to be easier to use with oracle event related code
* adds oracle database and queries for CRUD data operations
* adds scoring and signing ETL job via /update route
  • Loading branch information
tee8z authored Aug 16, 2024
1 parent bc0bac9 commit 5321400
Show file tree
Hide file tree
Showing 45 changed files with 6,258 additions and 1,119 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build-setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
- name: Install duckdb
shell: bash
run: |
if ! command -v unzip &> /dev/null; then
apt-get update && apt-get install -y unzip
fi
if [ ! -d "duckdb_lib" ]; then
mkdir duckdb_lib
else
rm -rf duckdb_lib
mkdir duckdb_lib
echo "Directory $dir already exists."
fi
if [ -f "libduckdb-linux-amd64.zip" ]; then
# File exists, remove it
rm "libduckdb-linux-amd64.zip"
fi
wget "https://github.com/duckdb/duckdb/releases/download/v1.0.0/libduckdb-linux-amd64.zip"
unzip libduckdb-linux-amd64.zip -d duckdb_lib
sudo cp duckdb_lib/lib*.so* /usr/local/lib/
sudo ldconfig
rm libduckdb-linux-amd64.zip
echo "$(pwd)/duckdb_lib"
export DUCKDB_LIB_DIR="$(pwd)/duckdb_lib"
27 changes: 0 additions & 27 deletions .github/workflows/install_duckdb.yml

This file was deleted.

28 changes: 27 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
# we specify bash to get pipefail; it guards against the `curl` command
# failing. otherwise `sh` won't catch that `curl` returned non-0
shell: bash
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.18.0/cargo-dist-installer.sh | sh"
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.21.0/cargo-dist-installer.sh | sh"
- name: Cache cargo-dist
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -115,6 +115,32 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: "Install duckdb"
run: |
if ! command -v unzip &> /dev/null; then
apt-get update && apt-get install -y unzip
fi
if [ ! -d "duckdb_lib" ]; then
mkdir duckdb_lib
else
rm -rf duckdb_lib
mkdir duckdb_lib
echo "Directory $dir already exists."
fi
if [ -f "libduckdb-linux-amd64.zip" ]; then
# File exists, remove it
rm "libduckdb-linux-amd64.zip"
fi
wget "https://github.com/duckdb/duckdb/releases/download/v1.0.0/libduckdb-linux-amd64.zip"
unzip libduckdb-linux-amd64.zip -d duckdb_lib
sudo cp duckdb_lib/lib*.so* /usr/local/lib/
sudo ldconfig
rm libduckdb-linux-amd64.zip
echo "$(pwd)/duckdb_lib"
export DUCKDB_LIB_DIR="$(pwd)/duckdb_lib"
shell: "bash"
- name: Install cargo-dist
run: ${{ matrix.install_dist }}
# Get the dist-manifest
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ stations.xml

data/
weather_data/
event_data/
*/.env
.env
duckdb_lib
*/duckdb_lib
*/duckdb_lib
*.pem
*/test_data/*
Loading

0 comments on commit 5321400

Please sign in to comment.