Skip to content

Commit

Permalink
Add .gitattributes to force LF line endings
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Canter <[email protected]>
  • Loading branch information
dcantah committed Dec 17, 2020
1 parent fae98bb commit 00c108e
Show file tree
Hide file tree
Showing 8 changed files with 279 additions and 278 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
4 changes: 2 additions & 2 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
* @microsoft/containerplat

* @microsoft/containerplat

/hcn/* @nagiesek
36 changes: 18 additions & 18 deletions internal/schema2/cpu_group_operations.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/*
* HCS API
*
* No description provided (generated by Swagger Codegen https:/swagger-api/swagger-codegen)
*
* API version: 2.4
* Generated by: Swagger Codegen (https:/swagger-api/swagger-codegen.git)
*/

package hcsschema

type CPUGroupOperation string

const (
CreateGroup CPUGroupOperation = "CreateGroup"
DeleteGroup CPUGroupOperation = "DeleteGroup"
SetProperty CPUGroupOperation = "SetProperty"
)
/*
* HCS API
*
* No description provided (generated by Swagger Codegen https:/swagger-api/swagger-codegen)
*
* API version: 2.4
* Generated by: Swagger Codegen (https:/swagger-api/swagger-codegen.git)
*/

package hcsschema

type CPUGroupOperation string

const (
CreateGroup CPUGroupOperation = "CreateGroup"
DeleteGroup CPUGroupOperation = "DeleteGroup"
SetProperty CPUGroupOperation = "SetProperty"
)
44 changes: 22 additions & 22 deletions test/testdata/pullimage/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# This Dockerfile builds a docker image based on top of the nanoserver image that is
# used during the pull image tests in hcsshim. Tests in hcsshim/test/pullimage_test.go
# are directly dependent on the directory structure of this image. If anything is changed
# in this Dockerfile, please make sure to update the tests too.

# As of now this image is built with:
# `docker build -t mtbar131/hcsshim:nanoserver_test .`
# And this image is pushed to a private repo with:
# `docker push mtbar131/hcsshim:nanoserver_test`

# Base image
FROM mcr.microsoft.com/windows/nanoserver:1909
# Get administrator privileges
USER containeradministrator

# Create a fake symlink - This will act likea BUGCHECK if our layer import code tries to
# follow such symlinks.
RUN mklink /d C:\Users\Public\fakelink C:\abcd
# Create a directory and a file inside that directory. This file will be deleted in the next
# layer. The tests verify that even after file deletion in a layer timestamps are updated
# correcty.
RUN mkdir C:\Users\Public\testdir && echo "Windows Layer timestamp test" > C:\Users\Public\testdir\test.txt
# This Dockerfile builds a docker image based on top of the nanoserver image that is
# used during the pull image tests in hcsshim. Tests in hcsshim/test/pullimage_test.go
# are directly dependent on the directory structure of this image. If anything is changed
# in this Dockerfile, please make sure to update the tests too.

# As of now this image is built with:
# `docker build -t mtbar131/hcsshim:nanoserver_test .`
# And this image is pushed to a private repo with:
# `docker push mtbar131/hcsshim:nanoserver_test`

# Base image
FROM mcr.microsoft.com/windows/nanoserver:1909
# Get administrator privileges
USER containeradministrator

# Create a fake symlink - This will act likea BUGCHECK if our layer import code tries to
# follow such symlinks.
RUN mklink /d C:\Users\Public\fakelink C:\abcd
# Create a directory and a file inside that directory. This file will be deleted in the next
# layer. The tests verify that even after file deletion in a layer timestamps are updated
# correcty.
RUN mkdir C:\Users\Public\testdir && echo "Windows Layer timestamp test" > C:\Users\Public\testdir\test.txt
RUN del /q C:\Users\Public\testdir\test.txt
4 changes: 2 additions & 2 deletions test/vendor/github.com/Microsoft/hcsshim/CODEOWNERS

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

Loading

0 comments on commit 00c108e

Please sign in to comment.