Commit Graph

56 Commits

Author SHA1 Message Date
Adin Scannell 7dbd6924a3 Update apt repository to limit to supported architectures.
Fixes #5703

PiperOrigin-RevId: 364492235
2021-03-22 23:16:41 -07:00
Rahat Mahmood 599579d0e5 Add a few more project ideas to the gsoc 2021 list
PiperOrigin-RevId: 358354414
2021-02-19 00:52:51 -08:00
Rahat Mahmood c99ad8d541 Add reference to gsoc 2021 proposal page for website.
PiperOrigin-RevId: 357241880
2021-02-12 12:12:53 -08:00
Rahat Mahmood c2f204658e Add proposal for io_uring project.
PiperOrigin-RevId: 356807933
2021-02-10 13:06:42 -08:00
gVisor bot d1bb263b9b Merge pull request #5352 from weisdd:patch-1
PiperOrigin-RevId: 355449206
2021-02-03 12:00:49 -08:00
Naoki Oketani 92c642909b chore(docs): remove an extra back quote 2021-01-27 21:28:58 +09:00
Igor Beliakov a7f11f8161
FAQ.md: fix kubeadm init instructions
The current version of FAQ.md contains an incorrect example of how to instruct kubelet to prefer containerd over docker. More specifically, it refers to a non-existent `--cni-socket` flag whereas it should have been `--cri-socket`.

The suggested PR fixes that.
2021-01-24 10:14:25 +03:00
Fabricio Voznika 99aa5eedcf Update containerd minimal version
PiperOrigin-RevId: 353340554
2021-01-22 16:28:00 -08:00
Fabricio Voznika 8b0f0b4d11 Delete shim v1
gvisor-containerd-shim is not compatible with containerd 1.1 or earlier.
Starting from containerd 1.2, shim v2 is the preferred interface.

PiperOrigin-RevId: 351485556
2021-01-12 17:54:10 -08:00
Adin Scannell 0c99ab7090 Support releasing aarch64 builds.
This change works around an issue in rules_pkg, described here:
  https://github.com/bazelbuild/rules_pkg/pull/263

PiperOrigin-RevId: 350869030
2021-01-08 18:03:17 -08:00
Fabricio Voznika 4c5f36e7bd Update link to benchmarks
Closes #5192

PiperOrigin-RevId: 350578130
2021-01-07 09:32:16 -08:00
Jamie Liu ed0c7be614 Proposal for runtime.DedicateOSThread().
Updates #2184

PiperOrigin-RevId: 346875966
2020-12-10 15:19:10 -08:00
Fabricio Voznika 39f712f1d8 Add new shim debug options to docs
PiperOrigin-RevId: 342662753
2020-11-16 10:14:49 -08:00
Fabricio Voznika cf47c8b4a5 Improve shim debug logging
- Add log statements in service entry points.
- Propagate `-debug` flag from shim invokation to the service
- Load options when shim process is invoked to ensure runsc commands
  use the correct set of options, e.g. --debug --debug-logs=...
- Add debug options to the shim configuration directly, so it doesn't
  rely on containerd configuration (and restart) to enable shim debug.
- Save shim logs to dedicated file, so it's easier to read logs. They
  would be mixed with containerd logs and hard to distinguish
  otherwise.

PiperOrigin-RevId: 342179868
2020-11-12 19:11:35 -08:00
Ian Lewis 3bb5f7164e Update latest install docs to install containerd shim
PiperOrigin-RevId: 339182137
2020-10-26 22:01:56 -07:00
Ian Lewis 631dd5330d Various website fixes
- Formatting on the most recent blog post
- Add a link to faq from containerd docs
- Fix code in FAQ

PiperOrigin-RevId: 337001738
2020-10-13 18:59:45 -07:00
gVisor bot 68e1dfa308 Merge pull request #3150 from wietsevenema:patch-2
PiperOrigin-RevId: 335702168
2020-10-06 13:01:23 -07:00
gVisor bot 74870fc203 Merge pull request #4018 from didier-durand:patch-1
PiperOrigin-RevId: 333611788
2020-09-24 15:33:05 -07:00
Didier Durand be86a91584
Update performance.md
@ianlewis: fixed according to your proposal
2020-09-21 06:33:28 +02:00
Didier Durand b8793582d6
Fix 2 typos in resources.md
2 typos spotted and fixed
Best
Didier
2020-09-20 10:41:08 +02:00
Didier Durand 4197a26a37
Fix a couple of typos on performance.md
2 typos spotted in current version and fixed.
Best
Didier
2020-09-20 10:33:22 +02:00
Fabricio Voznika ddf37cb19f Reduce the number of steps to get started with gVisor
Streamline instruction for the common case.

PiperOrigin-RevId: 332488910
2020-09-18 11:21:06 -07:00
gVisor bot 9a003835f9 Fix typo, remove duplicate word.
PiperOrigin-RevId: 330898705
2020-09-10 03:12:21 -07:00
Ian Lewis 1ab097b08f Add note about kubeadm to the FAQ
Fixes #3277

PiperOrigin-RevId: 330853338
2020-09-09 20:13:15 -07:00
Ian Lewis fb281eea75 Fix formatting for Kubernetes tutorial
PiperOrigin-RevId: 330745430
2020-09-09 10:09:58 -07:00
Ian Lewis 00479af515 Add a Docker Compose tutorial
Adds a Docker Compose tutorial to the website that shows how to start a
Wordpress site and includes information about how to get DNS working.

Fixes #115

PiperOrigin-RevId: 330652842
2020-09-08 21:59:24 -07:00
Ian Lewis a8c174c047 Update version in cni tutorial
Update the cniVersion used in the CNI tutorial so that it works with
containerd 1.2. Containerd 1.2 includes a version of the cri plugin
(release/1.2) that, in turn, includes a version of the
cni library (0.6.0) that only supports up to 0.3.1.
https://github.com/containernetworking/cni/blob/v0.6.0/pkg/version/version.go#L38

PiperOrigin-RevId: 329837188
2020-09-02 19:38:34 -07:00
Michael Pratt 129018ab3d Consistent precondition formatting
Our "Preconditions:" blocks are very useful to determine the input invariants,
but they are bit inconsistent throughout the codebase, which makes them harder
to read (particularly cases with 5+ conditions in a single paragraph).

I've reformatted all of the cases to fit in simple rules:

1. Cases with a single condition are placed on a single line.
2. Cases with multiple conditions are placed in a bulleted list.

This format has been added to the style guide.

I've also mentioned "Postconditions:", though those are much less frequently
used, and all uses already match this style.

PiperOrigin-RevId: 327687465
2020-08-20 13:32:24 -07:00
Ian Lewis 9873b8ea3e Add shim documentation to the website.
Add three new doc pages to the website.

- A containerd quick start covering containerd 1.2. This is limited to shim v2
  and runtime class as the docs would get too complicated explaining all the
  combinations that are possible. We want folks to use shim v2 and runtime
  class anyway.
- An advanced configuration page. This covers containerd and
  containerd-shim-runsc-v1's configuration options.
- A page for old versions (i.e. containerd 1.1). Notes that this is deprecated
  and supported on a best-effort basis.

Fixes #3279

PiperOrigin-RevId: 324775563
2020-08-04 02:43:44 -07:00
Ian Lewis a02b7534f2 Fix grouping and ordering of website menus
Groups subcategories and sorts their pages by weight properly. Subcategories
are sorted by name. Pages within subcategories are sorted by weight.

PiperOrigin-RevId: 324766128
2020-08-04 01:07:42 -07:00
Ian Lewis feb1d3d5a7 Clean up html on the website.
- Fixes some html validation issues.
- Fixes links on security basics blog post.
- Adds rel=noopener to links with target=_blank and adds a check to
  htmlproofer.
- Add favicon check to htmlproofer.

Fixes #3286
Fixes #3284

PiperOrigin-RevId: 321892602
2020-07-17 18:27:41 -07:00
gVisor bot c81ac8ec3b Merge pull request #2672 from amscanne:shim-integrated
PiperOrigin-RevId: 321053634
2020-07-13 16:10:58 -07:00
Adin Scannell 2afff44403 Update shim to build using bazel.
The go.mod dependency tree for the shim was somehow contradictory. After
resolving these issues (e.g. explicitly imported k8s 1.14, pulling a
specific dbus version), and adding all dependencies, the shim can now be
build as part of the regular bazel tree.

As part of this process, minor cleanup was done in all the source files:
headers were standardized (and include "The gVisor Authors" in addition
to the "The containerd Authors" if originally derived from containerd
sources), and comments were cleaned up to meet coding standards.

This change makes the containerd installation dynamic, so that multiple
versions can be tested, and drops the static installer for the VM image
itself.

This change also updates test/root/crictl_test.go and related utilities,
so that the containerd tests can be run on any version (and in cases
where it applies, they can be run on both v1 and v2 as parameterized
tests).
2020-07-09 17:39:47 -07:00
Ian Lewis e506fcd931 Add args and netns flag to runsc spec
Adds a netns flag to runsc spec that allows users to specify a network
namespace path when creating a sample config.json file. Also, adds the ability
to specify the command arguments used when running the container.

This will make it easier for new users to create sample OCI bundles without
having to edit the config.json by hand.

PiperOrigin-RevId: 320486267
2020-07-09 15:26:52 -07:00
Michael Pratt 8d2910a04d Explain how to bypass the Docker proxy
Neither myself nor bhaskerh@ can consistently remember how to do this.

PiperOrigin-RevId: 320407005
2020-07-09 09:04:47 -07:00
Wietse Venema c29f5cf193
networking.md removing stale link to netstack repo
Removing the link to the netstack repo as the netstack code is now part of gVisor.
2020-07-07 16:40:59 +02:00
Wietse Venema c0ea7d9e9e
README.md: Commpatibility > Compatibility 2020-07-07 16:32:15 +02:00
Michael Pratt 068716ddf3 Fix FAQ URL
The existing gvisor.dev/faq link returns 404 because the full URL has
mistakenly been capitalized.

PiperOrigin-RevId: 319233173
2020-07-01 08:53:44 -07:00
Dean Deng dce2dfae04 Add build target for the provisional style guide.
This includes the provisional style guide in the website and fixes the broken
link from CONTRIBUTING.md. The style guide will be located under the "Community"
category as it's related to contributing to the project.

Also, add missing includes that were causing some presubmits to fail.

PiperOrigin-RevId: 319061410
2020-06-30 11:25:55 -07:00
Ian Gudger bab3c36efb Add style guide.
PiperOrigin-RevId: 318591900
2020-06-26 21:10:37 -07:00
Mikael Mello be6e9bbf55
Fix typo in Wordpress tutorial page 2020-05-25 18:33:49 -03:00
Ian Lewis 61e6879882 Update the Docker quickstart to use 'runsc install'
PiperOrigin-RevId: 312573487
2020-05-20 16:05:49 -07:00
Adin Scannell 420b791a3d Minor formatting updates for gvisor.dev.
* Aggregate architecture Overview in "What is gVisor?" as it makes more sense
  in one place.

* Drop "user-space kernel" and use "application kernel". The term "user-space
  kernel" is confusing when some platform implementation do not run in
  user-space (instead running in guest ring zero).

* Clear up the relationship between the Platform page in the user guide and the
  Platform page in the architecture guide, and ensure they are cross-linked.

* Restore the call-to-action quick start link in the main page, and drop the
  GitHub link (which also appears in the top-right).

* Improve image formatting by centering all doc and blog images, and move the
  image captions to the alt text.

PiperOrigin-RevId: 311845158
2020-05-15 20:05:18 -07:00
Adin Scannell 1847165a8c Minor text updates and jquery ordering.
PiperOrigin-RevId: 311744091
2020-05-15 09:31:17 -07:00
gVisor bot a3f97a757a Merge pull request #2513 from amscanne:website-integrated
PiperOrigin-RevId: 311184385
2020-05-12 12:55:23 -07:00
Adin Scannell 5f3a256425 Add support for kramdown TOC. 2020-05-06 14:15:19 -07:00
Adin Scannell 3cb00c97e9 Add note about AArch64 support. 2020-05-06 14:15:18 -07:00
Adin Scannell f126de6a28 Add resource model. 2020-05-06 14:15:18 -07:00
Adin Scannell 508e25b6d6 Adapt website to use g3doc sources and bazel.
This adapts the merged website repository to use the image and bazel
build framework. It explicitly avoids the container_image rules provided
by bazel, opting instead to build with direct docker commands when
necessary.

The relevant build commands are incorporated into the top-level
Makefile.
2020-05-06 14:15:18 -07:00
Shentubot 7b0f068258 Merge pull request #306 from amscanne:add_readme
PiperOrigin-RevId: 253137638
2019-06-13 17:20:49 -07:00