File tree Expand file tree Collapse file tree 6 files changed +32
-16
lines changed
Expand file tree Collapse file tree 6 files changed +32
-16
lines changed Original file line number Diff line number Diff line change 1+ target
2+ Dockerfile
3+ dockerfile
4+ browser/node_modules
5+ .dockerignore
6+ .env
7+ .git
8+ **/.temp
9+ .gitignore
Original file line number Diff line number Diff line change 11[workspace ]
2+ resolver = " 2"
23members = [
34 " server" ,
45 " cli" ,
Original file line number Diff line number Diff line change 11VERSION 0.7
2- PROJECT applied-knowledge-systems /atomic-server
2+ PROJECT atomicdata-dev /atomic-server
33# You can compile front end separately and copy dist folder
4- # IMPORT ./browser AS browser
4+ IMPORT ./browser AS browser
55FROM rust:latest
66WORKDIR /code
77
88main-pipeline :
9- PIPELINE --push
10- TRIGGER push main
11- TRIGGER pr main
9+ PIPELINE --push
10+ TRIGGER push main
11+ TRIGGER pr main
1212 ARG tag= latest
1313 BUILD +build --tag = $tag
1414
1515deps :
16- RUN curl -fsSL https://bun.sh/install | bash
17- RUN /root/.bun/bin/bun install -y pnpm
16+ RUN wget -qO- https://get.pnpm.io/install.sh | ENV= "$HOME/.shrc" SHELL= "$(which sh)" sh -
1817 # COPY . .
1918 COPY --dir server lib cli desktop Cargo.lock Cargo.toml .
2019 # RUN mkdir src
2120 # RUN touch src/main.rs # adding main.rs stub so cargo fetch works to prepare the cache
22- RUN cargo fetch
21+ RUN cargo fetch
2322
2423test :
2524 FROM +deps
3130 RUN apt update && apt install -y musl-tools musl-dev
3231 RUN update-ca-certificates
3332 WORKDIR /app
34- # FIXME: Joep you need to fix this line and modify Earthfile inside browser
35- # COPY browser+build/dist ./public
33+ COPY browser+build/data-browser/dist /app/browser/data-browser/dist
3634 COPY --dir server lib cli desktop Cargo.lock Cargo.toml .
3735 RUN cargo build --release --bin atomic-server --config net.git-fetch-with-cli= true --target x86_64-unknown-linux-musl
3836 RUN strip -s /app/target/x86_64-unknown-linux-musl/release/atomic-server
Original file line number Diff line number Diff line change 1+ node_modules
Original file line number Diff line number Diff line change 11VERSION 0.7
2- PROJECT applied-knowledge-systems /atomic-server
2+ PROJECT atomicdata-dev /atomic-server
33FROM node:latest
44WORKDIR browser
55
66main-pipeline :
7- PIPELINE --push
8- TRIGGER push main
9- TRIGGER pr main
7+ PIPELINE --push
8+ TRIGGER push main
9+ TRIGGER pr main
1010 ARG tag= latest
1111 BUILD +build --tag = $tag
1212
1313deps :
1414 RUN curl -f https://get.pnpm.io/v6.14.js | node - add --global pnpm
15+ COPY package.json pnpm-lock.yaml .
16+ # COPY data-browser/package.json data-browser/.
17+ # COPY lib/package.json lib/.
18+ # COPY react/package.json react/.
19+ RUN pnpm recursive install --frozen-lockfile --shamefully-hoist
1520 COPY . .
16- RUN pnpm install --no-frozen-lockfile
21+ RUN pnpm install
1722 SAVE ARTIFACT node_modules /node_modules
1823
1924build :
2025 FROM +deps
2126 RUN pnpm run build
22- SAVE ARTIFACT dist /dist AS LOCAL dist
27+ SAVE ARTIFACT data-browser/ dist data-browser /dist AS LOCAL dist
Original file line number Diff line number Diff line change 33 "target" : " ES5" ,
44 "module" : " ES2022" ,
55 "lib" : [
6+ // Not sure if DOM should be here. Lib should also work without a browser!
7+ " DOM" ,
68 " ES6" ,
79 " ES7" ,
810 " ESNext"
You can’t perform that action at this time.
0 commit comments