Age | Commit message (Collapse) | Author |
|
This type signature makes it impossible to dynamically construct a
Vec<String> of environment variables and pass it to the builder.
This patch tries to fix that by making the function only take a
reference to a slice containing the environments.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
* Implement upload of tar to container
* Fixed typo
Co-authored-by: Eli W. Hunter <42009212+elihunter173@users.noreply.github.com>
Co-authored-by: Eli W. Hunter <42009212+elihunter173@users.noreply.github.com>
|
|
|
|
Co-authored-by: Hampus Lidin <hampus.lidin@astrazeneca.com>
|
|
* Add nano_cpus to ContainerOptionsBuilder
* Add memory_swap to ContainerOptionsBuilder
|
|
* it builds!
* remove unused dependencies
* bump dependencies
* reimplement 'exec' endpoint
* update a few more examples
* update remaining examples
* fix doc tests, remove unused 'read' module
* remove feature-gated async closures
* split futures dependency to just 'futures-util'
* update version and readme
* make functions accepting Body generic over Into<Body> again
* update changelog
* reinstate 'unix-socket' feature
* reinstate 'attach' endpoint
* fix clippy lints
* fix documentation typo
* fix container copyfrom/into implementations
* add convenience methods for TtyChunk struct
* remove 'main' from code example to silence clippy lint
* Update hyper to 0.13.1
* Add Send bounds to TtyWriter
* Appease clippy
* Fix examples
* Update issue in changelog
Co-authored-by: Daniel Eades <danieleades@hotmail.com>
Co-authored-by: Marc Schreiber <marc.schreiber@aixigo.de>
|
|
|
|
|
|
|
|
|
|
- `description` is deprecated, and now with the 1.42 stable release
these are generating warnings
- `cause` is deprecated and replaced by `source`
|
|
Ran `cargo +nightly fmt --all` as indicated in the PR template. Since
this affects code not otherwise being modified, I did this as a separate
PR.
|
|
`ContainerListOptionsBuilder::all()` took no arguments, assuming a true
value. However, `ImageListOptionsBuilder::all()` accepts a boolean.
To make these consistent, the latter no longer accepts a boolean and,
like the former, assumes true.
|
|
This patch removes the explicit dependency on the http crate and
instead accesses the re-exported version of hyper. This should make
the update process slightly easier because those versions would
need to be kept in sync manually.
We also re-export hyper::Uri as shiplift::Uri because it is part
of the public API of shiplift::Docker. This allows users to access
the Uri type without having to seperately depend on http or hyper.
|
|
The following change is to provide the configuration option
`PublishAllPorts` which will map all exposed ports on a container to
random and available ports on the host machine.
This configuration option is documented
[here](https://docs.docker.com/engine/api/v1.39/#operation/ContainerCreate).
|
|
* expand the fields of Version
Expands `shiplift::rep::Version` to contain fields for the following
elements of the `/version` API:
- `min_api_version` (`MinAPIVersion`)
- `os` (`Os`)
- `arch` (`Arch`)
- `kernel_version` (`KernelVersion`)
- `build_time` (`BuildTime`)
Adds a new example program to display version information.
* order version fields according to api docs
* remove min_api_version
For backwards compat with older engines, remove the `min_api_version`
field. It was apparently added in API version `1.25.0` (circa 2017).
|
|
Add missing fields to `rep::Container`:
- `image_id` (`ImageID`, API version 1.21)
- `state` (`State`, API version 1.23)
|
|
* port build to gh actions
* attempt 2: trip hook registration
* hooked to pushes
* gh actions badge
* build cache
* gate at job level
* fix badge merge
* populate cache after checkout
* work now cache later
|
|
* Don't vendor OpenSSL except on Windows
* Use a feature rather than guessing based on OS
|
|
* Replace host str to use https if encrypted
* Add comment and fmt
|
|
* Renamed 'expose' to 'port' and add 'expose' to expose a port without linking it to the host
* update Version to 0.5.1
|
|
The `endpoint_id` field is stylized as `EndpointID` in the Docker API
when returning container-details for a network ([1]).
[1]: https://docs.docker.com/engine/api/v1.24/#35-networks
|
|
|
|
|
|
* Added function to tag an image
* Removed debug and println
|
|
|
|
|
|
|
|
|
|
|
|
* Add LogsOptionsBuilder.since() method
* test for LogsOptionsBuilder
|
|
|
|
* Added `ExposedPorts` mapping, as per https://docs.docker.com/engine/api/v1.26/#operation/ContainerCreate
* Correct the ExposedPorts json based on the latest Docker schema
* Derived debug for all builder option types (useful for debugging)
* Adjust container_options_expose test to match latest code
* Applied cargo fmt
|
|
|
|
|
|
|
|
- add function copy_file_into to container
- add example
|
|
This is in line with best practices recommended
by serde[1]. This will also resolve downstream
crates depending on shiplift who enable the
serde derive feature, due to Cargos unification
of features for each crate[2].
[1]: https://github.com/serde-rs/serde/issues/1441
[2]: https://github.com/rust-lang/cargo/issues/4361#issuecomment-348538243
|
|
* Add 'copy_from' function to 'Container'
* Run clippy
* Update deps
|
|
Fixes #148
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* update to 2018 edition
* remove more externs
* bump version
|
|
* update travis build
* notes on fmting
* remove quotes
* comment below
* rouge quote
* first host.port usage
* fix deprecation warning
|
|
ContainerConnectionOptionsBuilder (#133)
|
|
* Support for setting CPU shares/memory for image builder
* Support for setting the number of CPU shares allocated to a container
|