Giter Site home page Giter Site logo

cos-toolbox's Introduction

[ARCHIVED repository] Toolbox has relocated to https://cos.googlesource.com/cos/tools.

This Git repository is archived and is now read-only.

Toolbox Docker Container for Container-Optimized OS

Note: This is not an official Google product.

Overview

This is a Docker image used by the CoreOS Toolbox script on Container-Optimized OS. This image comes pre-installed with common debugging tools that are not pre-installed on the host.

The official toolbox container is available at gcr.io/cos-cloud/toolbox.

Starting with tag 20190312-00, COS toolbox includes a tool called cos-kernel to make it easy to fetch kernel headers, source, and toolchain for COS releases. For example, the following command fetches kernel headers, source, and toolchain for the instance it's running on:

my-cos-instance ~ $ toolbox
root@my-cos-instance:~# cos-kernel fetch

By default, cos-kernel uses $HOME as its install directory but this can be changed via the --instdir option. cos-kernel copies the files it fetches in the fetched-files directory and extracts them into cos-kernel-headers, cos-kernel-src, and cos-toolchain.

root@my-cos-instance:~# ls -l
drwxr-xr-x 4 root root  4096 Mar 12 14:43 cos-kernel-headers
drwxr-xr-x 4 root root  4096 Mar 12 14:44 cos-kernel-src
drwxr-xr-x 4 root root  4096 Mar 12 14:43 cos-toolchain
drwxr-xr-x 4 root root  4096 Mar 12 14:40 fetched-files

The following command fetches kernel headers, source, and toolchain for release 11636.0.0 and builds the kernel:

root@my-cos-instance:~# cos-kernel build 11636.0.0

To see the list of available subcommands and their options, type:

root@my-cos-instance:~# cos-kernel help

For detailed documentation on how this is used, see https://cloud.google.com/container-optimized-os/docs/how-to/toolbox.

Contributor Docs

Releasing

To release a new version of COS Toolbox, tag the commit you want to release with the date in the form of vYYYYMMDD. This will trigger a Cloud Build job to build and release the container image.

cos-toolbox's People

Contributors

arnav-kansal avatar rkolchmeyer avatar adityakali avatar bsdnet avatar samkunz avatar vaibhav-rustagi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.