Skip to content

Add instructions to build containerd-shim and gcs binaries#1034

Merged
dcantah merged 1 commit intomicrosoft:masterfrom
dcantah:opengcs-readme
Jun 1, 2021
Merged

Add instructions to build containerd-shim and gcs binaries#1034
dcantah merged 1 commit intomicrosoft:masterfrom
dcantah:opengcs-readme

Conversation

@dcantah
Copy link
Contributor

@dcantah dcantah commented May 20, 2021

Touch up the README a bit to add instructions on how to build some of the
important binaries.

Add a small README to the ./internal/guest directory.

Remove the stray ./opengcs/README.md that was leftover from the merge.

Signed-off-by: Daniel Canter dcanter@microsoft.com

@dcantah dcantah requested a review from a team as a code owner May 20, 2021 00:17
README.md Outdated
[![Build status](https://github.com/microsoft/hcsshim/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/microsoft/hcsshim/actions?query=branch%3Amaster)

This package contains the Golang interface for using the Windows [Host Compute Service](https://techcommunity.microsoft.com/t5/containers/introducing-the-host-compute-service-hcs/ba-p/382332) (HCS) to launch and manage [Windows Containers](https://docs.microsoft.com/en-us/virtualization/windowscontainers/about/). It also contains other helpers and functions for managing Windows Containers such as the Golang interface for the Host Network Service (HNS).
This package contains the Golang interface for using the Windows [Host Compute Service](https://techcommunity.microsoft.com/t5/containers/introducing-the-host-compute-service-hcs/ba-p/382332) (HCS) to launch and manage [Windows Containers](https://docs.microsoft.com/en-us/virtualization/windowscontainers/about/). It also contains other helpers and functions for managing Windows Containers such as the Golang interface for the Host Network Service (HNS), as well as code for the guest agent used to support running Linux Hyper-V containers.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add that the guest agent is called GCS or OpenGCS or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we were trying to move away from the OpenGCS moniker, but I could add "commonly referred to as the GCS or Guest Compute Service in our codebase".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does that sound good?

### Containerd Shim
The containerd shim is very simple to build.
```powershell
C:\> go build .\cmd\containerd-shim-runhcs-v1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe make note of where this lives along side containerd and how this is configured for use?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good call

@@ -0,0 +1,4 @@
# Background
The packages in this directory comprise most of the code used to build the guest side agent for Linux Hyper-V containers on Windows (LCOW). The two binaries of importance that are built from this code are the [main guest agent](../../cmd/gcs/main.go) that facilitates communication between the host and guest and a [generic tools binary](../../cmd/gcstools/main.go) for additional functionality for device scenarios. The guest agent is designed to run inside a custom Linux OS for supporting Linux container payloads.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should put the last sentence first and possibly as its own paragraph to highlight what the purpose of this is immediately.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

Touch up the README a bit to add instructions on how to build some of the
important binaries.

Add a small README to the ./internal/guest directory.

Remove the stray ./opengcs/README.md that was leftover from the merge.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
Copy link

@katiewasnothere katiewasnothere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dcantah dcantah merged commit 0de8ce7 into microsoft:master Jun 1, 2021
princepereira pushed a commit to princepereira/hcsshim that referenced this pull request Aug 29, 2024
Add instructions to build containerd-shim and gcs binaries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants