Commit Graph

29 Commits

Author SHA1 Message Date
gVisor bot c6339522c1 Merge pull request #6484 from dqminh:fix-go-mod-instructions
PiperOrigin-RevId: 392036519
2021-08-20 11:46:55 -07:00
Daniel Dao 8578e6882e
Fix instructions refer to `tools/go_mod.sh`
`tools/go_mod.sh` is not in the repo. In order to update the
WORKSPACE dependencies, we can use the same gazelle command in BUILD file.

Also changed `go mod get` to `go get`, the former does not exist
anymore.

Signed-off-by: Daniel Dao <dqminh89@gmail.com>
2021-08-20 12:19:17 +01:00
Michael Pratt a7b59445db Fix minor typo
PiperOrigin-RevId: 390659097
2021-08-13 11:46:59 -07:00
Michael Pratt 8f2b11a87e Update `core` allowed dependencies
This list has gotten a little out-of-date. Note that `clockwork` used to be
used but was removed in gvisor.dev/pr/5384.

PiperOrigin-RevId: 390644841
2021-08-13 10:43:50 -07:00
Adin Scannell 54e989ec3a Remove legacy bazel configurations.
Using the newer bazel rules necessitates a transition from proto1 to
proto2. In order to resolve the incompatibility between proto2 and
gogoproto, the cri runtimeoptions proto must be vendored.

Further, some of the semantics of bazel caching changed during the
transition. It is now necessary to:

- Ensure that :gopath depends only on pure library targets, as the
  propagation of go_binary build attributes (pure, static) will
  affected the generated files (though content remains the same,
  there are conflicts with respect to the gopath).
- Update bazel.mk to include the possibility of binaries in the
  bazel-out directory, as it will now put runsc and others there.
  This required some refinements to the mechanism of extracting
  paths, since some the existing regex resulted in false positives.
- Change nogo rules to prevent escape generation on binary targets.
  For some reason, the newer version of bazel attempted to run the
  nogo analysis on the binary targets, which fails due to the fact
  that objdump does not work on the final binary. This must be due
  to a change in the semantics of aspects in bazel3.

PiperOrigin-RevId: 337958324
2020-10-19 16:28:40 -07:00
Ian Gudger bab3c36efb Add style guide.
PiperOrigin-RevId: 318591900
2020-06-26 21:10:37 -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
Adin Scannell c60613475c Standardize all Docker images.
This change moves all Docker images to a standard location, and abstracts the
build process so that they can be maintained in an automated fashion. This also
allows the images to be architecture-independent.

All images will now be referred to by the test framework via the canonical
`gvisor.dev/images/<name>`, where `<name>` is a function of the path within the
source tree.

In a subsequent change, continuous integration will be added so that the images
will always be correct and available locally.

In the end, using `bazel` for Docker containers is simply not possible. Given
that we already have the need to use `make` with the base container (for
Docker), we extend this approach to get more flexibility.

This change also adds a self-documenting and powerful Makefile that is intended
to replace the collection of scripts in scripts. Canonical (self-documenting)
targets can be added here for targets that understand which images need to be
loaded and/or built.

PiperOrigin-RevId: 308322438
2020-04-24 14:11:42 -07:00
Adin Scannell e5d9a4010b Add ability to execute go.mod in gopath context. 2020-02-28 10:21:17 -08:00
Adin Scannell afcab8fe9f Clean-up comments in runsc/BUILD and CONTRIBUTING.md.
PiperOrigin-RevId: 294300437
2020-02-10 14:15:36 -08:00
Adin Scannell 5776a7b6f6 Fix header ordering and format all C++ code.
PiperOrigin-RevId: 291844200
2020-01-27 18:27:20 -08:00
Fabricio Voznika 010b093258 Bring back to life features lost in recent refactor
- Sandbox logs are generated when running tests
- Kokoro uploads the sandbox logs
- Supports multiple parallel runs
- Revive script to install locally built runsc with docker

PiperOrigin-RevId: 269337274
2019-09-16 08:17:00 -07:00
gVisor bot c8ae00eb8a Merge pull request #350 from kshithijiyer:patch-1
PiperOrigin-RevId: 257887940
2019-07-12 16:15:51 -07:00
Adin Scannell 4ad6705089 CONTRIBUTING: add logs access instructions.
PiperOrigin-RevId: 257870018
2019-07-12 14:34:33 -07:00
Kshithij Iyer 88037ca215
Removing trailing whitespaces and adding a blank line after title 2019-06-11 23:41:25 +05:30
Kshithij Iyer b700257df5
Adding missing title in contributing.md 2019-06-11 22:12:05 +05:30
Adin Scannell e3c5fa3345 Update CONTRIBUTING.md
PiperOrigin-RevId: 250730726
2019-05-30 12:09:10 -07:00
Adin Scannell 2c1c1c9917 CONTRIBUTING: fix broken repository link
PiperOrigin-RevId: 246079174
Change-Id: I423078a065e0cc5d258d674b4f2f0680a5db0aee
2019-04-30 21:53:59 -07:00
Nicolas Lacasse f4ce43e1f4 Allow and document bug ids in gVisor codebase.
PiperOrigin-RevId: 245818639
Change-Id: I03703ef0fb9b6675955637b9fe2776204c545789
2019-04-29 14:04:14 -07:00
Adin Scannell efacb8d900 CONTRIBUTING: add style guide pointer
Change-Id: I93a78a6b2bb2eaa69046c6cfecee2e4cfcf20e44
PiperOrigin-RevId: 243140359
2019-04-11 14:18:01 -07:00
Adin Scannell 75c8ac38e0 BUILD: Add useful go_path target
Change-Id: Ibd6d8a1a63826af6e62a0f0669f8f0866c8091b4
PiperOrigin-RevId: 242037969
2019-04-04 17:05:38 -07:00
Michael Pratt a9fe9afd63 Note //third_party in coding guidelines
PiperOrigin-RevId: 232375745
Change-Id: I26146ad65fac1dcdc5fcb4b11a1580133f9ca46d
2019-02-04 15:13:51 -08:00
Michael Pratt e22c4cba47 Clarify CLA requirements and Gerrit error
Call out the error that Gerrit returns if there is no CLA on file.

PiperOrigin-RevId: 214964718
Change-Id: I3d92e3eb73f178e8c4c52b5defbe8d21db536215
2018-09-28 11:12:30 -07:00
Michael Pratt 41e0b977e5 Format documentation
PiperOrigin-RevId: 204323728
Change-Id: I1ff9aa062ffa12583b2e38ec94c87db7a3711971
2018-07-12 10:37:21 -07:00
Adin Scannell 1eb1bf8670 Update contributing guidelines with an example.
Fixes #69

PiperOrigin-RevId: 200683809
Change-Id: I1312ebb3775d5f9088e9108359c19e2dedbb7b70
2018-06-15 01:22:08 -07:00
Tobias Klauser 5c8db0a818 CONTRIBUTING.md: fix golang.org/x/sys/unix package name
This should be org_golang_x_sys instead of com_golang_x_sys

PiperOrigin-RevId: 195305212
Change-Id: I970a7edbcc871ccd4fcec184b1702fbd15b68e20
2018-05-03 13:52:06 -07:00
Nicolas Lacasse 7e901480b4 Fix links in README and CONTRIBUTING.
PiperOrigin-RevId: 195068006
Change-Id: I2d04a0c600b3850321f845fbdc0b6104dd178b3f
2018-05-02 03:00:53 -07:00
Nicolas Lacasse c6cd988cdc Fix link in CONTRIBUTING.md.
PiperOrigin-RevId: 194929266
Change-Id: Ib93d5a38c64b01b6851f76a9324b184aefddce9d
2018-05-01 09:42:40 -04:00
Googler d02b74a5dc Check in gVisor.
PiperOrigin-RevId: 194583126
Change-Id: Ica1d8821a90f74e7e745962d71801c598c652463
2018-04-28 01:44:26 -04:00