winc

module
v0.0.0-...-410f0c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0

README

clippy

winc

winc is a CLI tool for spawning and running containers on Windows according to the OCI specification.

Building
Requirements
  • Golang
    • Make sure you have set a GOPATH
  • Git
  • mingw-w64
    • Select x86_64 as the target architecture
    • After install, ensure that gcc.exe is in your PATH

To clone and build winc.exe:

go get -d code.cloudfoundry.org/winc/...
cd $GOPATH/src/code.cloudfoundry.org/winc
go build ./cmd/winc
Testing

Set the following environment variables first:

WINDOWS_VERSION to your version of Windows.

WINC_TEST_ROOTFS to the path to a container image.

GROOT_BINARY to the path of the groot executable to use while running integration test.

GROOT_IMAGE_STORE to the path of the directory that groot uses for layers and the volume.

E.g.

$env:WINDOWS_VERSION="2019"
$env:WINC_TEST_ROOTFS="docker:///cloudfoundry/windows2016fs:2019"
$env:GROOT_BINARY="$env:GOPATH\bin\groot.exe"
$env:GROOT_IMAGE_STORE="C:\ProgramData\groot"
ginkgo -r integration/

To install Ginkgo and run the tests:

go get github.com/onsi/ginkgo/...
cd $GOPATH/src/code.cloudfoundry.org/winc
ginkgo -r -race -keepGoing
Using

Check out winc bosh release readme for creating new containers using winc.

Directories

Path Synopsis
cmd
hcs
fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
integration
endpoint/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
mtu
mtu/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
netrules/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
netrules/firewallapplier/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
netsh/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
port_allocator/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
port_allocator/serial/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
container/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
state/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL