Skip to content

Commit 0c586ae

Browse files
authored
Merge pull request #31 from containerd/move-to-containerd
2 parents d2c4daa + f98aa45 commit 0c586ae

File tree

9 files changed

+77
-16
lines changed

9 files changed

+77
-16
lines changed

.github/workflows/main.yml

+16
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@ on:
55
branches:
66
- master
77
jobs:
8+
project:
9+
name: Project Checks
10+
runs-on: ubuntu-20.04
11+
timeout-minutes: 20
12+
steps:
13+
- uses: actions/setup-go@v2
14+
with:
15+
go-version: 1.16.x
16+
- uses: actions/checkout@v2
17+
with:
18+
path: src/github.com/containerd/fuse-overlayfs-snapshotter
19+
fetch-depth: 25
20+
- uses: containerd/project-checks@v1
21+
with:
22+
working-directory: src/github.com/containerd/fuse-overlayfs-snapshotter
23+
824
test:
925
runs-on: ubuntu-20.04
1026
timeout-minutes: 30

.github/workflows/release.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ jobs:
1616
go-version: 1.16.x
1717
- uses: actions/checkout@v2
1818
with:
19-
path: go/src/github.com/AkihiroSuda/containerd-fuse-overlayfs
19+
path: go/src/github.com/containerd/fuse-overlayfs-snapshotter
2020
- name: "Compile binaries"
21-
working-directory: go/src/github.com/AkihiroSuda/containerd-fuse-overlayfs
21+
working-directory: go/src/github.com/containerd/fuse-overlayfs-snapshotter
2222
run: make artifacts
2323
- name: "SHA256SUMS"
24-
working-directory: go/src/github.com/AkihiroSuda/containerd-fuse-overlayfs
24+
working-directory: go/src/github.com/containerd/fuse-overlayfs-snapshotter
2525
run: |
2626
( cd _output; sha256sum containerd-fuse-overlayfs-* ) | tee /tmp/SHA256SUMS
2727
mv /tmp/SHA256SUMS _output/SHA256SUMS
2828
- name: "The sha256sum of the SHA256SUMS file"
29-
working-directory: go/src/github.com/AkihiroSuda/containerd-fuse-overlayfs
29+
working-directory: go/src/github.com/containerd/fuse-overlayfs-snapshotter
3030
run: (cd _output; sha256sum SHA256SUMS)
3131
- name: "Prepare the release note"
32-
working-directory: go/src/github.com/AkihiroSuda/containerd-fuse-overlayfs
32+
working-directory: go/src/github.com/containerd/fuse-overlayfs-snapshotter
3333
run: |
3434
tag="${GITHUB_REF##*/}"
3535
shasha=$(sha256sum _output/SHA256SUMS | awk '{print $1}')
@@ -44,7 +44,7 @@ jobs:
4444
The sha256sum of the SHA256SUMS file itself is \`${shasha}\` .
4545
EOF
4646
- name: "Create release"
47-
working-directory: go/src/github.com/AkihiroSuda/containerd-fuse-overlayfs
47+
working-directory: go/src/github.com/containerd/fuse-overlayfs-snapshotter
4848
env:
4949
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5050
run: |

Dockerfile

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright The containerd Authors.
2+
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
ARG FUSEOVERLAYFS_COMMIT=master
216
ARG ROOTLESSKIT_COMMIT=v0.14.0
317
ARG SHADOW_COMMIT=4.8.1
@@ -7,8 +21,8 @@ ARG DEBIAN_VERSION=10
721
ARG ALPINE_VERSION=3.13
822

923
FROM golang:${GO_VERSION}-alpine AS containerd-fuse-overlayfs-test
10-
COPY . /go/src/github.com/AkihiroSuda/containerd-fuse-overlayfs
11-
WORKDIR /go/src/github.com/AkihiroSuda/containerd-fuse-overlayfs
24+
COPY . /go/src/github.com/containerd/fuse-overlayfs-snapshotter
25+
WORKDIR /go/src/github.com/containerd/fuse-overlayfs-snapshotter
1226
ENV CGO_ENABLED=0
1327
ENV GO111MODULE=on
1428
RUN mkdir /out && go test -c -o /out/containerd-fuse-overlayfs.test

MAINTAINERS

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# fuse-overlayfs-snapshotter maintainers
2+
#
3+
# As a containerd sub-project, containerd maintainers are also included from https://github.com/containerd/project/blob/master/MAINTAINERS.
4+
# See https://github.com/containerd/project/blob/master/GOVERNANCE.md for description of maintainer role

Makefile

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
1+
# Copyright The containerd Authors.
2+
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
DESTDIR ?= /usr/local
216

317
VERSION=$(shell git describe --match 'v[0-9]*' --dirty='.m' --always --tags)
418
VERSION_TRIMMED := $(VERSION:v%=%)
519
REVISION=$(shell git rev-parse HEAD)$(shell if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi)
620

7-
PKG_MAIN := github.com/AkihiroSuda/containerd-fuse-overlayfs/cmd/containerd-fuse-overlayfs-grpc
8-
PKG_VERSION := github.com/AkihiroSuda/containerd-fuse-overlayfs/cmd/containerd-fuse-overlayfs-grpc/version
21+
PKG_MAIN := github.com/containerd/fuse-overlayfs-snapshotter/cmd/containerd-fuse-overlayfs-grpc
22+
PKG_VERSION := github.com/containerd/fuse-overlayfs-snapshotter/cmd/containerd-fuse-overlayfs-grpc/version
923

1024
GO ?= go
1125
export GO_BUILD=GO111MODULE=on CGO_ENABLED=0 $(GO) build -ldflags "-s -w -X $(PKG_VERSION).Version=$(VERSION) -X $(PKG_VERSION).Revision=$(REVISION)"

README.md

+15-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ You do NOT need this `fuse-overlayfs` plugin on the following environments, beca
88
- [Debian 10 kernel](https://salsa.debian.org/kernel-team/linux/blob/283390e7feb21b47779b48e0c8eb0cc409d2c815/debian/patches/debian/overlayfs-permit-mounts-in-userns.patch)
99
- Debian 10 needs `sudo modprobe overlay permit_mounts_in_userns=1`. Future release of Debian with kernel >= 5.11 will not need this `modprobe` hack.
1010

11+
fuse-overlayfs-snapshotter is a **non-core** sub-project of containerd.
12+
1113
## Requirements
1214
* kernel >= 4.18
1315
* containerd >= 1.4
@@ -29,10 +31,13 @@ with the following content, and recompile the containerd binary:
2931
```go
3032
/*
3133
Copyright The containerd Authors.
34+
3235
Licensed under the Apache License, Version 2.0 (the "License");
3336
you may not use this file except in compliance with the License.
3437
You may obtain a copy of the License at
38+
3539
http://www.apache.org/licenses/LICENSE-2.0
40+
3641
Unless required by applicable law or agreed to in writing, software
3742
distributed under the License is distributed on an "AS IS" BASIS,
3843
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -42,8 +47,7 @@ with the following content, and recompile the containerd binary:
4247

4348
package main
4449

45-
// NOTE: the package name was "github.com/AkihiroSuda/containerd-fuse-overlayfs" before v1.0.0
46-
import _ "github.com/AkihiroSuda/containerd-fuse-overlayfs/plugin"
50+
import _ "github.com/containerd/fuse-overlayfs-snapshotter/plugin"
4751
```
4852

4953
No extra configuration is needed.
@@ -144,3 +148,12 @@ To run the test as a non-root user, [RootlessKit](https://github.com/rootless-co
144148
```console
145149
$ go test -exec rootlesskit -test.v -test.root
146150
```
151+
152+
## Project details
153+
fuse-overlayfs-snapshotter is a containerd **non-core** sub-project, licensed under the [Apache 2.0 license](./LICENSE).
154+
As a containerd non-core sub-project, you will find the:
155+
* [Project governance](https://github.com/containerd/project/blob/master/GOVERNANCE.md),
156+
* [Maintainers](./MAINTAINERS),
157+
* and [Contributing guidelines](https://github.com/containerd/project/blob/master/CONTRIBUTING.md)
158+
159+
information in our [`containerd/project`](https://github.com/containerd/project) repository.

cmd/containerd-fuse-overlayfs-grpc/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ import (
2929
snapshotsapi "github.com/containerd/containerd/api/services/snapshots/v1"
3030
"github.com/containerd/containerd/contrib/snapshotservice"
3131

32-
fuseoverlayfs "github.com/AkihiroSuda/containerd-fuse-overlayfs"
33-
"github.com/AkihiroSuda/containerd-fuse-overlayfs/cmd/containerd-fuse-overlayfs-grpc/version"
32+
fuseoverlayfs "github.com/containerd/fuse-overlayfs-snapshotter"
33+
"github.com/containerd/fuse-overlayfs-snapshotter/cmd/containerd-fuse-overlayfs-grpc/version"
3434
)
3535

3636
// main is from https://github.com/containerd/containerd/blob/b9fad5e310fafb453def5f1e7094f4c36a9806d2/PLUGINS.md

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/AkihiroSuda/containerd-fuse-overlayfs
1+
module github.com/containerd/fuse-overlayfs-snapshotter
22

33
go 1.16
44

plugin/plugin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ package fuseoverlayfs
2121
import (
2222
"errors"
2323

24-
fuseoverlayfs "github.com/AkihiroSuda/containerd-fuse-overlayfs"
2524
"github.com/containerd/containerd/platforms"
2625
"github.com/containerd/containerd/plugin"
26+
fuseoverlayfs "github.com/containerd/fuse-overlayfs-snapshotter"
2727
)
2828

2929
// Config represents configuration for the fuse-overlayfs plugin.

0 commit comments

Comments
 (0)