@@ -20,12 +20,14 @@ build-all:
20
20
BUILD +build # x86_64-unknown-linux-gnu
21
21
BUILD +cross-build --TARGET = x86_64-unknown-linux-musl
22
22
BUILD +cross-build --TARGET = armv7-unknown-linux-musleabihf
23
+ BUILD +cross-build --TARGET = aarch64-unknown-linux-musl
23
24
# Errors
24
25
# BUILD +cross-build --TARGET=aarch64-apple-darwin
25
26
26
27
docker-all :
27
28
BUILD --platform = linux/amd64 +docker-musl --TARGET = x86_64-unknown-linux-musl
28
29
BUILD --platform = linux/arm/v7 +docker-musl --TARGET = armv7-unknown-linux-musleabihf
30
+ BUILD --platform = linux/arm64/v8 +docker-musl --TARGET = aarch64-unknown-linux-musl
29
31
30
32
install :
31
33
RUN apt-get update -qq
@@ -43,6 +45,8 @@ source:
43
45
cross-build :
44
46
FROM +source
45
47
ARG --required TARGET
48
+ # This does not yet cache properly
49
+ # https://github.com/earthly/lib/issues/34
46
50
WITH DOCKER
47
51
RUN cross build --target $TARGET --release
48
52
END
67
71
DO rust+CARGO --args = "clippy --no-deps --all-features --all-targets"
68
72
69
73
docker-musl :
70
- ARG tag= "latest,sha-\$ EARTHLY_GIT_SHORT_HASH"
74
+ FROM alpine:3.18
75
+ ARG tags= "joepmeneer/atomic-server:develop"
71
76
ARG --required TARGET
72
- COPY --chmod = 0755 ( + build/atomic-server --TARGET = ${TARGET }) /atomic-server-bin
77
+ COPY --chmod = 0755 --platform = linux/amd64 ( +cross- build/atomic-server --TARGET = ${TARGET }) /atomic-server-bin
73
78
RUN /atomic-server-bin --version
74
79
# For a complete list of possible ENV vars or available flags, run with `--help`
75
80
ENV ATOMIC_DATA_DIR= "/atomic-storage/data"
@@ -78,24 +83,6 @@ docker-musl:
78
83
EXPOSE 80
79
84
VOLUME /atomic-storage
80
85
ENTRYPOINT ["/atomic-server-bin" ]
81
-
82
- docker :
83
- FROM jeanblanchard/alpine-glibc:3.17.5
84
- ARG tags= "joepmeneer/atomic-server:develop"
85
- # Some glibc deps are missing, installing it errors so ignore.
86
- RUN apk add gcompat 2> /dev/null || true
87
- COPY --chmod = 0755 +build/atomic-server /atomic-server-bin
88
- RUN /atomic-server-bin --version
89
- # For a complete list of possible ENV vars or available flags, run with `--help`
90
- ENV ATOMIC_STORE_PATH= "/atomic-storage/db"
91
- ENV ATOMIC_CONFIG_PATH= "/atomic-storage/config.toml"
92
- ENV ATOMIC_PORT= "80"
93
- EXPOSE 80
94
- VOLUME /atomic-storage
95
- ENTRYPOINT ["/atomic-server-bin" ]
96
- # Push to github container registry
97
- SAVE IMAGE --push ghcr.io/atomicdata-dev/atomic-server:${tag }
98
- # Push to dockerhub
99
86
SAVE IMAGE --push ${tags }
100
87
101
88
setup-playwright :
0 commit comments