Skip to content

Commit

Permalink
Govern codes from CRFS project by the license of the project
Browse files Browse the repository at this point in the history
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
  • Loading branch information
ktock committed Feb 13, 2020
1 parent a380be3 commit 022ec2e
Show file tree
Hide file tree
Showing 13 changed files with 105 additions and 11 deletions.
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -40,11 +40,14 @@ ctr-remote: FORCE
check:
@echo "$@"
@GO111MODULE=$(GO111MODULE_VALUE) golangci-lint run
@$(GOPATH)/src/github.com/containerd/project/script/validate/fileheader $(GOPATH)/src/github.com/containerd/project/
@git-validation -q -run DCO

install-check-tools:
@curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.19.1
@go get -u github.com/vbatts/git-validation
@go get -u github.com/kunalkushwaha/ltag
@git clone https://github.com/containerd/project $(GOPATH)/src/github.com/containerd/project

install:
@echo "$@"
Expand Down
41 changes: 41 additions & 0 deletions NOTICE.md
@@ -0,0 +1,41 @@
The source code developed under the Stargz Snapshotter Project is licensed under Apache License 2.0.

However, the Stargz Snapshotter project contains modified subcomponents from Container Registry Filesystem Project with separate copyright notices and license terms. Your use of the source code for the subcomponent is subject to the terms and conditions as defined by the source project. Files in these subcomponents contain following file header.

```
Copyright 2019 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the NOTICE.md file.
```

These source code is governed by a 3-Clause BSD license. The copyright notice, list of conditions and disclaimer are the following.

```
Copyright (c) 2019 Google LLC. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
```
7 changes: 6 additions & 1 deletion cache/cache_test.go
@@ -1,6 +1,5 @@
/*
Copyright The containerd Authors.
Copyright 2019 The Go Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -15,6 +14,12 @@
limitations under the License.
*/

/*
Copyright 2019 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the NOTICE.md file.
*/

package cache

import (
Expand Down
7 changes: 6 additions & 1 deletion cmd/ctr-remote/commands/optimize.go
@@ -1,6 +1,5 @@
/*
Copyright The containerd Authors.
Copyright 2019 The Go Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -15,6 +14,12 @@
limitations under the License.
*/

/*
Copyright 2019 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the NOTICE.md file.
*/

package commands

import (
Expand Down
7 changes: 6 additions & 1 deletion cmd/ctr-remote/logger/logger_test.go
@@ -1,6 +1,5 @@
/*
Copyright The containerd Authors.
Copyright 2019 The Go Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -15,6 +14,12 @@
limitations under the License.
*/

/*
Copyright 2019 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the NOTICE.md file.
*/

package logger

import (
Expand Down
2 changes: 1 addition & 1 deletion cmd/ctr-remote/sampler/sampler.go
@@ -1,6 +1,5 @@
/*
Copyright The containerd Authors.
Copyright 2013-2018 Docker, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -195,6 +194,7 @@ func runContainer(ctx context.Context, bundle string) error {
return nil
}

// Copyright 2013-2018 Docker, Inc.
// Modified version of getUser function to make it work with any rootfs.
// https://github.com/moby/moby/blob/ad1b781e44fa1e44b9e654e5078929aec56aed66/daemon/oci_linux.go
func getUser(username string, rootfsPath string) (specs.User, error) {
Expand Down
7 changes: 6 additions & 1 deletion cmd/ctr-remote/sorter/sorter_test.go
@@ -1,6 +1,5 @@
/*
Copyright The containerd Authors.
Copyright 2019 The Go Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -15,6 +14,12 @@
limitations under the License.
*/

/*
Copyright 2019 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the NOTICE.md file.
*/

package sorter

import (
Expand Down
7 changes: 6 additions & 1 deletion stargz/fs.go
@@ -1,6 +1,5 @@
/*
Copyright The containerd Authors.
Copyright 2019 The Go Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -15,6 +14,12 @@
limitations under the License.
*/

/*
Copyright 2019 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the NOTICE.md file.
*/

//
// Example implementation of FileSystem.
//
Expand Down
7 changes: 6 additions & 1 deletion stargz/fs_test.go
@@ -1,6 +1,5 @@
/*
Copyright The containerd Authors.
Copyright 2019 The Go Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -15,6 +14,12 @@
limitations under the License.
*/

/*
Copyright 2019 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the NOTICE.md file.
*/

package stargz

import (
Expand Down
7 changes: 6 additions & 1 deletion stargz/reader/reader.go
@@ -1,6 +1,5 @@
/*
Copyright The containerd Authors.
Copyright 2019 The Go Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -15,6 +14,12 @@
limitations under the License.
*/

/*
Copyright 2019 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the NOTICE.md file.
*/

package reader

import (
Expand Down
7 changes: 6 additions & 1 deletion stargz/reader/reader_test.go
@@ -1,6 +1,5 @@
/*
Copyright The containerd Authors.
Copyright 2019 The Go Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -15,6 +14,12 @@
limitations under the License.
*/

/*
Copyright 2019 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the NOTICE.md file.
*/

package reader

import (
Expand Down
7 changes: 6 additions & 1 deletion stargz/remote/urlreaderat.go
@@ -1,6 +1,5 @@
/*
Copyright The containerd Authors.
Copyright 2019 The Go Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -15,6 +14,12 @@
limitations under the License.
*/

/*
Copyright 2019 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the NOTICE.md file.
*/

package remote

import (
Expand Down
7 changes: 6 additions & 1 deletion stargz/remote/urlreaderat_test.go
@@ -1,6 +1,5 @@
/*
Copyright The containerd Authors.
Copyright 2019 The Go Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -15,6 +14,12 @@
limitations under the License.
*/

/*
Copyright 2019 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the NOTICE.md file.
*/

package remote

import (
Expand Down

0 comments on commit 022ec2e

Please sign in to comment.