Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #100 from cowprotocol/add_devcontainer
Browse files Browse the repository at this point in the history
Add devcontainer support for easier development
  • Loading branch information
fleupold authored Jul 10, 2024
2 parents 6edb54a + cf5db9d commit c677dd8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .devcontainer/devcontainer.json
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"
]
}
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.

0 comments on commit c677dd8

Please sign in to comment.