Skip to content

Commit 9e9fc9c

Browse files
committed
#576 Fix earthly
1 parent b891390 commit 9e9fc9c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CONTRIBUTE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Check out the [Roadmap](https://docs.atomicdata.dev/roadmap.html) if you want to
1515
- [Table of contents](#table-of-contents)
1616
- [Running locally](#running-locally)
1717
- [Running locally (with local development browser)](#running-locally-with-local-development-browser)
18+
- [Compilation using Earthly](#compilation-using-earthly)
1819
- [Improve local compilation speed](#improve-local-compilation-speed)
1920
- [Cross compilation](#cross-compilation)
2021
- [IDE setup (VSCode)](#ide-setup-vscode)
@@ -49,6 +50,14 @@ Clone the repo and run `cargo run` from each folder (e.g. `cli` or `server`).
4950
- Visit your `localhost` in your locally running `atomic-data-browser` instance: (e.g. `http://localhost:5173/app/show?subject=http%3A%2F%2Flocalhost`)
5051
- use `cargo watch -- cargo run` to automatically recompile `atomic-server` when you push new assets using `pmpm build-server` in `atomic-data-browser`. This can be useful if you're debugging specific features that you can't reproduce while the front-end is hosted in vite.
5152

53+
## Compilation using Earthly
54+
55+
There are `earthfile`s in `browser` and in `atomic-server`.
56+
These can be used by Earthly to build all steps, including a full docker image.
57+
58+
- Make sure `docker` is running and `earthly` is installed
59+
- `earthly +build` in root folder
60+
5261
## Improve local compilation speed
5362

5463

browser/Earthfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ deps:
2424
COPY data-browser/package.json data-browser/.
2525
COPY lib/package.json lib/.
2626
COPY react/package.json react/.
27+
COPY svelte/package.json svelte/.
28+
COPY cli/package.json cli/.
2729
RUN pnpm install --frozen-lockfile --shamefully-hoist
2830
COPY . .
2931

0 commit comments

Comments
 (0)