Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • willsalmon/buildstream
  • CumHoleZH/buildstream
  • tchaik/buildstream
  • DCotyPortfolio/buildstream
  • jesusoctavioas/buildstream
  • patrickmmartin/buildstream
  • franred/buildstream
  • tintou/buildstream
  • alatiera/buildstream
  • martinblanchard/buildstream
  • neverdie22042524/buildstream
  • Mattlk13/buildstream
  • PServers/buildstream
  • phamnghia610909/buildstream
  • chiaratolentino/buildstream
  • eysz7-x-x/buildstream
  • kerrick1/buildstream
  • matthew-yates/buildstream
  • twofeathers/buildstream
  • mhadjimichael/buildstream
  • pointswaves/buildstream
  • Mr.JackWilson/buildstream
  • Tw3akG33k/buildstream
  • AlexFazakas/buildstream
  • eruidfkiy/buildstream
  • clamotion2/buildstream
  • nanonyme/buildstream
  • wickyjaaa/buildstream
  • nmanchev/buildstream
  • bojorquez.ja/buildstream
  • mostynb/buildstream
  • highpit74/buildstream
  • Demo112/buildstream
  • ba2014sheer/buildstream
  • tonimadrino/buildstream
  • usuario2o/buildstream
  • Angelika123456/buildstream
  • neo355/buildstream
  • corentin-ferlay/buildstream
  • coldtom/buildstream
  • wifitvbox81/buildstream
  • 358253885/buildstream
  • seanborg/buildstream
  • SotK/buildstream
  • DouglasWinship/buildstream
  • karansthr97/buildstream
  • louib/buildstream
  • bwh-ct/buildstream
  • robjh/buildstream
  • we88c0de/buildstream
  • zhengxian5555/buildstream
51 results
Show changes
Commits on Source (3)
  • Chandan Singh's avatar
    doc: Add new document about Docker integrations · cda1354c
    Chandan Singh authored
    Add a new section under "Additional writings" section about how
    BuildStream integrates with Docker. At present, this section includes
    only two sections:
    
    - "Run BuildStream inside Docker", that refers to existing instructions
    for doing so
    - "Generate Docker images", that adds instructions for using the newly
    added `contrib/bst-docker-import` script
    
    In future, this document can be extended to include the following
    things:
    
    - Importing Docker sources via `docker` source plugin - if/when the
    Docker source plguin is moved from bst-external to BuildStream proper
    - A Docker sandbox, if/when that is added
    cda1354c
  • Chandan Singh's avatar
    NEWS: Add entry about contrib/bst-docker-import · dd472d95
    Chandan Singh authored
    As suggested in
    !857 (comment 106809743),
    add a NEWS entry for `contrib/bst-docker-import` that was added
    recently.
    dd472d95
  • Chandan Singh's avatar
    Merge branch 'chandan/bst-and-docker' into 'master' · 35ac26a7
    Chandan Singh authored
    Add documentation and NEWS entry about bst-docker-import
    
    See merge request !864
    35ac26a7
......@@ -24,6 +24,9 @@ buildstream 1.3.1
o Add new `pip` source plugin for downloading python packages using pip,
based on requirements files from previous sources.
o Generate Docker images from built artifacts using
`contrib/bst-docker-import` script.
=================
buildstream 1.1.5
......
.. _bst_and_docker:
BuildStream and Docker
======================
BuildStream integrates with Docker in multiple ways. Here are some ways in
which these integrations work.
Run BuildStream inside Docker
-----------------------------
Refer to the :ref:`BuildStream inside Docker <docker>` documentation for
instructions on how to run BuildStream as a Docker container.
Generate Docker images
----------------------
The
`bst-docker-import script <https://gitlab.com/BuildStream/buildstream/blob/master/contrib/bst-docker-import>`_
can be used to generate a Docker image from built artifacts.
You can download it and make it executable like this:
.. code:: bash
mkdir -p ~/.local/bin
curl --get https://gitlab.com/BuildStream/buildstream/raw/master/contrib/bst-docker-import > ~/.local/bin/bst-docker-import
chmod +x ~/.local/bin/bst-docker-import
Check if ``~/.local/bin`` appears in your PATH environment variable -- if it
doesn't, you should
`edit your ~/.profile so that it does <https://stackoverflow.com/questions/14637979/>`_.
Once the script is available in your PATH and assuming you have Docker
installed, you can start using the ``bst-docker-import`` script. Here is a
minimal example to generate an image called ``bst-hello`` from an element
called ``hello.bst`` assuming it is already built:
.. code:: bash
bst-docker-import -t bst-hello hello.bst
This script can also be used if you are running BuildStream inside Docker. In
this case, you will need to supply the command that you are using to run
BuildStream using the ``-c`` option. If you are using the
`bst-here wrapper script <https://gitlab.com/BuildStream/buildstream/blob/master/contrib/bst-here>`_,
you can achieve the same results as the above example like this:
.. code:: bash
bst-docker-import -c bst-here -t bst-hello hello.bst
......@@ -8,3 +8,4 @@ Additional writings
additional_cachekeys
additional_sandboxing
additional_docker