Skip to content

Commit d1464b9

Browse files
authored
Merge pull request #27 from AkihiroSuda/dev
update dependencies
2 parents 6225620 + 90ca04f commit d1464b9

File tree

1,149 files changed

+672
-459656
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,149 files changed

+672
-459656
lines changed

.github/workflows/main.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
name: CI
2-
on: [push, pull_request]
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
branches:
6+
- master
37
jobs:
48
test:
5-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-20.04
10+
timeout-minutes: 30
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
fuse-overlayfs: [v1.0.0, v1.4.0, master]
15+
env:
16+
FUSEOVERLAYFS_COMMIT: "${{ matrix.fuse-overlayfs }}"
617
steps:
718
- uses: actions/checkout@master
819
- run: make test

Dockerfile

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1-
ARG FUSEOVERLAYFS_COMMIT=v1.3.0
2-
ARG ROOTLESSKIT_COMMIT=v0.11.1
1+
ARG FUSEOVERLAYFS_COMMIT=master
2+
ARG ROOTLESSKIT_COMMIT=v0.14.0-beta.0
33
ARG SHADOW_COMMIT=4.8.1
44

5-
FROM golang:1.15-alpine AS containerd-fuse-overlayfs-test
5+
ARG GO_VERSION=1.16
6+
ARG DEBIAN_VERSION=10
7+
ARG ALPINE_VERSION=3.13
8+
9+
FROM golang:${GO_VERSION}-alpine AS containerd-fuse-overlayfs-test
610
COPY . /go/src/github.com/AkihiroSuda/containerd-fuse-overlayfs
711
WORKDIR /go/src/github.com/AkihiroSuda/containerd-fuse-overlayfs
812
ENV CGO_ENABLED=0
9-
ENV GO111MODULE=off
13+
ENV GO111MODULE=on
1014
RUN mkdir /out && go test -c -o /out/containerd-fuse-overlayfs.test
1115

1216
# from https://github.com/containers/fuse-overlayfs/blob/53c17dab78b43de1cd121bf9260b20b76371bbaf/Dockerfile.static.ubuntu
13-
FROM docker.io/debian:10 AS fuse-overlayfs
17+
FROM debian:${DEBIAN_VERSION} AS fuse-overlayfs
1418
RUN apt-get update && \
1519
apt-get install --no-install-recommends -y \
1620
git ca-certificates libc6-dev gcc g++ make automake autoconf clang pkgconf libfuse3-dev
17-
ARG FUSEOVERLAYFS_REPO
1821
RUN git clone https://github.com/containers/fuse-overlayfs
1922
WORKDIR fuse-overlayfs
2023
ARG FUSEOVERLAYFS_COMMIT
@@ -23,7 +26,7 @@ RUN ./autogen.sh && \
2326
LIBS="-ldl" LDFLAGS="-static" ./configure && \
2427
make && mkdir /out && cp fuse-overlayfs /out
2528

26-
FROM golang:1.15-alpine AS rootlesskit
29+
FROM golang:${GO_VERSION}-alpine AS rootlesskit
2730
RUN apk add --no-cache git
2831
RUN git clone https://github.com/rootless-containers/rootlesskit.git /go/src/github.com/rootless-containers/rootlesskit
2932
WORKDIR /go/src/github.com/rootless-containers/rootlesskit
@@ -32,7 +35,7 @@ RUN git pull && git checkout ${ROOTLESSKIT_COMMIT}
3235
ENV CGO_ENABLED=0
3336
RUN mkdir /out && go build -o /out/rootlesskit github.com/rootless-containers/rootlesskit/cmd/rootlesskit
3437

35-
FROM alpine:3.12 AS idmap
38+
FROM alpine:${ALPINE_VERSION} AS idmap
3639
RUN apk add --no-cache autoconf automake build-base byacc gettext gettext-dev gcc git libcap-dev libtool libxslt
3740
RUN git clone https://github.com/shadow-maint/shadow.git
3841
WORKDIR shadow
@@ -41,7 +44,7 @@ RUN git pull && git checkout ${SHADOW_COMMIT}
4144
RUN ./autogen.sh --disable-nls --disable-man --without-audit --without-selinux --without-acl --without-attr --without-tcb --without-nscd && \
4245
make && mkdir -p /out && cp src/newuidmap src/newgidmap /out
4346

44-
FROM alpine:3.12
47+
FROM alpine:${ALPINE_VERSION}
4548
COPY --from=containerd-fuse-overlayfs-test /out/containerd-fuse-overlayfs.test /usr/local/bin
4649
COPY --from=rootlesskit /out/rootlesskit /usr/local/bin
4750
COPY --from=fuse-overlayfs /out/fuse-overlayfs /usr/local/bin

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ clean:
1313
rm -rf bin
1414

1515
test:
16-
DOCKER_BUILDKIT=1 docker build -t containerd-fuse-overlayfs-test .
16+
DOCKER_BUILDKIT=1 docker build -t containerd-fuse-overlayfs-test --build-arg FUSEOVERLAYFS_COMMIT=${FUSEOVERLAYFS_COMMIT} .
17+
docker run --rm containerd-fuse-overlayfs-test fuse-overlayfs -V
1718
docker run --rm --security-opt seccomp=unconfined --security-opt apparmor=unconfined --device /dev/fuse containerd-fuse-overlayfs-test
1819
docker rmi containerd-fuse-overlayfs-test
1920

go.mod

+7-14
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
module github.com/AkihiroSuda/containerd-fuse-overlayfs
22

3-
go 1.13
3+
go 1.16
44

55
require (
6-
github.com/Microsoft/hcsshim v0.8.9 // indirect
7-
github.com/containerd/containerd v1.4.0
8-
github.com/containerd/continuity v0.0.0-20200710164510-efbc4488d8fe
9-
github.com/containerd/ttrpc v1.0.1 // indirect
10-
github.com/containerd/typeurl v1.0.1 // indirect
6+
github.com/containerd/containerd v1.5.0-beta.2
7+
github.com/containerd/continuity v0.0.0-20201208142359-180525291bb7
118
github.com/coreos/go-systemd/v22 v22.1.0
12-
github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c // indirect
13-
github.com/golang/protobuf v1.3.5 // indirect
14-
github.com/opencontainers/go-digest v1.0.0 // indirect
15-
github.com/opencontainers/image-spec v1.0.1 // indirect
169
github.com/pkg/errors v0.9.1
17-
github.com/sirupsen/logrus v1.6.0 // indirect
18-
go.etcd.io/bbolt v1.3.5 // indirect
19-
google.golang.org/grpc v1.27.1
20-
gotest.tools/v3 v3.0.2 // indirect
10+
google.golang.org/grpc v1.30.0
2111
)
12+
13+
// replace grpc to match https://github.com/containerd/containerd/blob/master/go.mod
14+
replace google.golang.org/grpc => google.golang.org/grpc v1.27.1

0 commit comments

Comments
 (0)