This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from cowprotocol/add_devcontainer
Add devcontainer support for easier development
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "Dune Sync", | ||
"build": { | ||
"context": "..", | ||
"dockerfile": "../Dockerfile" | ||
}, | ||
"mounts": [ | ||
"source=${localEnv:HOME}/.ssh,target=/root/.ssh,type=bind,consistency=cached" | ||
] | ||
} |
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 |
---|---|---|
|
@@ -5,9 +5,16 @@ Components for syncing off-chain data with Dune Community Sources | |
# Local Development | ||
|
||
1. Clone Repo `git clone [email protected]:cowprotocol/dune-sync.git` | ||
2. Several Makefile Commands `make XXX` | ||
2. If using VS Code, open in devcontainer to ensure same setup as the final container. | ||
3. Several Makefile Commands `make XXX` | ||
Key make commands are; `install, check, test` | ||
|
||
To execute the main binary (inside the container) run | ||
|
||
``` | ||
python3 -m src.main --sync-table <job> | ||
``` | ||
|
||
# Docker | ||
|
||
### Build | ||
|
@@ -57,4 +64,4 @@ docker run -v ${PWD}/data:/app/data \ | |
--sync-table SYNC_TABLE | ||
``` | ||
|
||
This will empty the buckets and repopulate with the appropriate changes. | ||
This will empty the buckets and repopulate with the appropriate changes. |