Skip to content

Commit

Permalink
Update Docker - updates (#113)
Browse files Browse the repository at this point in the history
* Update Docker - updates

* Update ipfs dependency version

* Fix depcheck

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Matthew Dean <[email protected]>
  • Loading branch information
renovate[bot] and mattdean-digicatapult authored Feb 26, 2024
1 parent 20d3d44 commit 5db70a2
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 46 deletions.
2 changes: 1 addition & 1 deletion .depcheckrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ignores: ["go-ipfs"]
ignores: ["kubo"]
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# syntax=docker/dockerfile:1.5
# syntax=docker/dockerfile:1.6

FROM golang:1.19-alpine3.17 AS ipfs_build
FROM golang:1.21-alpine3.17 AS ipfs_build

ENV SRC_DIR /go/src/github.com/ipfs/go-ipfs
ENV SRC_DIR /go/src/github.com/ipfs/kubo
ARG TARGETPLATFORM
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then apk add --no-cache binutils-gold; fi

RUN apk add --no-cache git make bash gcc musl-dev

WORKDIR /target

ARG IPFS_TAG="v0.20.0"
ARG IPFS_TAG="v0.26.0"

RUN <<EOF
set -ex
git clone --branch $IPFS_TAG https://github.com/ipfs/go-ipfs.git $SRC_DIR
git clone --branch $IPFS_TAG https://github.com/ipfs/kubo.git $SRC_DIR
cd $SRC_DIR
make build
cp $SRC_DIR/cmd/ipfs/ipfs /target/ipfs
Expand Down
75 changes: 37 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@digicatapult/sqnc-ipfs",
"version": "2.10.4",
"version": "2.10.5",
"description": "IPFS node for use in SQNC",
"main": "app/index.js",
"type": "module",
Expand Down Expand Up @@ -52,7 +52,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"formdata-node": "^6.0.3",
"go-ipfs": "^0.22.0",
"kubo": "^0.26.0",
"mocha": "^10.3.0",
"nodemon": "^3.1.0",
"pino-colada": "^2.2.2",
Expand Down

0 comments on commit 5db70a2

Please sign in to comment.