Skip to content

Commit 1f24c0c

Browse files
authored
feat: update IPFS version and Dockerfile configuration (#3676)
1 parent c4602fa commit 1f24c0c

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

examples/bundle/Dockerfile

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
FROM alpine AS build
1+
FROM golang AS build
22

33
# Install a binary
4-
RUN wget https://github.com/ipfs/kubo/releases/download/v0.15.0/kubo_v0.15.0_linux-amd64.tar.gz -O kubo.tar.gz
5-
RUN tar xvf kubo.tar.gz
6-
RUN mv kubo/ipfs /usr/bin/ipfs
7-
RUN mkdir -p /usr/lib/extension-release.d/
4+
RUN git clone -b v0.38.0 https://github.com/ipfs/kubo.git /kubo
5+
WORKDIR /kubo
6+
RUN CGO_ENABLED=0 go build -o ipfs ./cmd/ipfs
7+
WORKDIR /bundle
8+
RUN mkdir -p /bundle/usr/bin
9+
RUN mv /kubo/ipfs /bundle/usr/bin/ipfs
10+
RUN mkdir -p /bundle/usr/lib/extension-release.d/
811
# systemd version 252+ is necessary in order to use the special key _any here
9-
RUN echo ID=_any > /usr/lib/extension-release.d/extension-release.kubo
12+
RUN echo ID=_any > /bundle/usr/lib/extension-release.d/extension-release.kubo
1013

1114
FROM scratch
1215

13-
COPY --from=build /usr/bin/ipfs /usr/bin/ipfs
14-
COPY --from=build /usr/lib/extension-release.d /usr/lib/extension-release.d
16+
COPY --from=build /bundle/usr/bin/ipfs /usr/bin/ipfs
17+
COPY --from=build /bundle/usr/lib/extension-release.d /usr/lib/extension-release.d

tests/bundles_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ var _ = Describe("kairos bundles test", Label("bundles"), func() {
9999

100100
ipfsV, err := vm.Sudo("ipfs version")
101101
Expect(err).ToNot(HaveOccurred(), ipfsV)
102-
Expect(ipfsV).To(ContainSubstring("0.15.0"))
102+
Expect(ipfsV).To(ContainSubstring("0.38.0"))
103103
})
104104

105105
By("checking that there are no duplicate entries in the config (issue#2019)", func() {

0 commit comments

Comments
 (0)