File tree 6 files changed +35
-17
lines changed 6 files changed +35
-17
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 1
1
[workspace ]
2
+ resolver = " 2"
2
3
members = [
3
4
" server" ,
4
5
" cli" ,
Original file line number Diff line number Diff line change 1
1
VERSION 0.7
2
- PROJECT applied-knowledge-systems /atomic-server
2
+ PROJECT ontola /atomic-server
3
3
# You can compile front end separately and copy dist folder
4
- # IMPORT ./browser AS browser
4
+ IMPORT ./browser AS browser
5
5
FROM rust:latest
6
6
WORKDIR /code
7
7
8
8
main-pipeline :
9
- PIPELINE --push
10
- TRIGGER push main
11
- TRIGGER pr main
9
+ PIPELINE --push
10
+ TRIGGER push develop
11
+ TRIGGER push main
12
+ TRIGGER pr develop
12
13
ARG tag= latest
13
14
BUILD +build --tag = $tag
14
15
15
16
deps :
16
- RUN curl -fsSL https://bun.sh/install | bash
17
- RUN /root/.bun/bin/bun install -y pnpm
17
+ RUN wget -qO- https://get.pnpm.io/install.sh | ENV= "$HOME/.shrc" SHELL= "$(which sh)" sh -
18
18
# COPY . .
19
19
COPY --dir server lib cli desktop Cargo.lock Cargo.toml .
20
20
# RUN mkdir src
21
21
# RUN touch src/main.rs # adding main.rs stub so cargo fetch works to prepare the cache
22
- RUN cargo fetch
22
+ RUN cargo fetch
23
23
24
24
test :
25
25
FROM +deps
@@ -28,11 +28,10 @@ test:
28
28
build :
29
29
FROM +deps
30
30
RUN rustup target add x86_64-unknown-linux-musl
31
- RUN apt update && apt install -y musl-tools musl-dev
31
+ RUN apt update && apt install -y musl-tools musl-dev g++ -x86-64-linux-gnu libc6-dev-amd64-cross
32
32
RUN update-ca-certificates
33
33
WORKDIR /app
34
- # FIXME: Joep you need to fix this line and modify Earthfile inside browser
35
- # COPY browser+build/dist ./public
34
+ COPY browser+build/data-browser/dist /app/browser/data-browser/dist
36
35
COPY --dir server lib cli desktop Cargo.lock Cargo.toml .
37
36
RUN cargo build --release --bin atomic-server --config net.git-fetch-with-cli= true --target x86_64-unknown-linux-musl
38
37
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 1
1
VERSION 0.7
2
- PROJECT applied-knowledge-systems /atomic-server
2
+ PROJECT atomicdata-dev /atomic-server
3
3
FROM node:latest
4
4
WORKDIR browser
5
5
6
6
main-pipeline :
7
- PIPELINE --push
8
- TRIGGER push main
9
- TRIGGER pr main
7
+ PIPELINE --push
8
+ TRIGGER push develop
9
+ TRIGGER push main
10
+ TRIGGER pr develop
10
11
ARG tag= latest
11
12
BUILD +build --tag = $tag
12
13
13
14
deps :
14
15
RUN curl -f https://get.pnpm.io/v6.14.js | node - add --global pnpm
16
+ COPY package.json pnpm-lock.yaml .
17
+ # COPY data-browser/package.json data-browser/.
18
+ # COPY lib/package.json lib/.
19
+ # COPY react/package.json react/.
20
+ RUN pnpm recursive install --frozen-lockfile --shamefully-hoist
15
21
COPY . .
16
- RUN pnpm install --no-frozen-lockfile
22
+ RUN pnpm install
17
23
SAVE ARTIFACT node_modules /node_modules
18
24
19
25
build :
20
26
FROM +deps
21
27
RUN pnpm run build
22
- SAVE ARTIFACT dist /dist AS LOCAL dist
28
+ SAVE ARTIFACT data-browser/ dist data-browser /dist AS LOCAL dist
Original file line number Diff line number Diff line change 3
3
"target" : " ES5" ,
4
4
"module" : " ES2022" ,
5
5
"lib" : [
6
+ // Not sure if DOM should be here. Lib should also work without a browser!
7
+ " DOM" ,
6
8
" ES6" ,
7
9
" ES7" ,
8
10
" ESNext"
You can’t perform that action at this time.
0 commit comments