Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit 95dfdfb

Browse files
Merge pull request #2455 from ibuildthecloud/main
Update function-builder and squash dockerimage in release
2 parents 403f4c2 + 5f3581b commit 95dfdfb

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

Dockerfile

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# syntax=docker/dockerfile:1.3-labs
1+
# syntax=docker/dockerfile:1.4
22

33
FROM ghcr.io/acorn-io/images-mirror/tonistiigi/binfmt:qemu-v8.1.4 AS binfmt
44
FROM ghcr.io/acorn-io/images-mirror/coredns/coredns:1.10.1 AS coredns
@@ -63,15 +63,24 @@ COPY /scripts/acorn-job-helper-init /usr/local/bin
6363
COPY /scripts/acorn-job-helper-shutdown /usr/local/bin
6464
COPY /scripts/acorn-job-get-output /usr/local/bin
6565
COPY /scripts/k3s-config.yaml /etc/rancher/k3s/config.yaml
66+
67+
FROM base AS basewithrelease
68+
COPY acorn /usr/local/bin/acorn
69+
70+
FROM scratch AS goreleaser
71+
COPY --link --from=basewithrelease / /
6672
CMD []
6773
WORKDIR /wd
6874
VOLUME /var/lib/buildkit
6975
VOLUME /var/lib/rancher/k3s
7076
STOPSIGNAL SIGTERM
7177
ENTRYPOINT ["/usr/local/bin/acorn"]
7278

73-
FROM base AS goreleaser
74-
COPY acorn /usr/local/bin/acorn
75-
7679
FROM base
7780
COPY --from=build /src/bin/acorn /usr/local/bin/acorn
81+
CMD []
82+
WORKDIR /wd
83+
VOLUME /var/lib/buildkit
84+
VOLUME /var/lib/rancher/k3s
85+
STOPSIGNAL SIGTERM
86+
ENTRYPOINT ["/usr/local/bin/acorn"]

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
github.com/acorn-io/aml/cli v0.0.0-20240106192317-21afc7320c77
1010
github.com/acorn-io/baaah v0.0.0-20240119160309-2a58ee757bbd
1111
github.com/acorn-io/broadcaster v0.0.0-20240105011354-bfadd4a7b45d
12-
github.com/acorn-io/function-builder v0.0.0-20240111042311-041315dd7091
12+
github.com/acorn-io/function-builder v0.0.0-20240123010942-72663ff4da5d
1313
github.com/acorn-io/mink v0.0.0-20240105015834-b1f7af4fadea
1414
github.com/acorn-io/namegenerator v0.0.0-20220915160418-9e3d5a0ffe78
1515
github.com/acorn-io/schemer v0.0.0-20240105014212-9739d5485208

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ github.com/acorn-io/broadcaster v0.0.0-20240105011354-bfadd4a7b45d h1:hfpNQkJ4I2
119119
github.com/acorn-io/broadcaster v0.0.0-20240105011354-bfadd4a7b45d/go.mod h1:WF6FYrEqW0+ZtY5OKb21JhSL0aeL5VJoVrm+u0d4gOE=
120120
github.com/acorn-io/cmd v0.0.0-20230929053520-ebe1b9879b38 h1:oJMGvI702ZW5L0JjJfGV9ekzU2IqqTGjmAQl4gkO6Ro=
121121
github.com/acorn-io/cmd v0.0.0-20230929053520-ebe1b9879b38/go.mod h1:bo9ONX4kagbQmXcG4bnfoK53MBFFtbUZ5fR7s9NfS+M=
122-
github.com/acorn-io/function-builder v0.0.0-20240111042311-041315dd7091 h1:l+cuQsOK7aoC8VIq6C+Q98Svq9OgmzNCWuCcWhRw27w=
123-
github.com/acorn-io/function-builder v0.0.0-20240111042311-041315dd7091/go.mod h1:b60OzYlyV4fuiTw3HExgOJITsXnfm0c0uIoywz7s+Y4=
122+
github.com/acorn-io/function-builder v0.0.0-20240123010942-72663ff4da5d h1:05AOdsXorztXfFnD/n/bUDXeyKQj6Tf1cZk9TxR4rIA=
123+
github.com/acorn-io/function-builder v0.0.0-20240123010942-72663ff4da5d/go.mod h1:b60OzYlyV4fuiTw3HExgOJITsXnfm0c0uIoywz7s+Y4=
124124
github.com/acorn-io/mink v0.0.0-20240105015834-b1f7af4fadea h1:HyH8nh7zZ7qZeWOjBGtK/iAI5gCu/c5iSnN703hlHHY=
125125
github.com/acorn-io/mink v0.0.0-20240105015834-b1f7af4fadea/go.mod h1:EmoDPUYsPyBEhEpSC+LpRGUs2GeSI5nPOTa7WO7jwlc=
126126
github.com/acorn-io/namegenerator v0.0.0-20220915160418-9e3d5a0ffe78 h1:5zs9L/CXNkuTdJSbhFWczAorbmx67nqlqswx5CQi7XI=

0 commit comments

Comments
 (0)