docker 0.3.3

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 52

Docker

A Dart wrapper around the Docker command line. Mainly thought as a helper-library for Grinder.

Basic usage

@Task("Stop containers")
dockerStopp() {
    ["db-webappbase-test", "db-mobiad-test"].forEach((final String container) {
        log("Stopping container: $container");
            new Docker()..stop([container ],quiet: true);
    });
}

@Task("Start container")
@Depends(dockerStopp)
dockerStart() {
    new Docker()..start([ "db-webappbase-test" ],quiet: true);
}

@Task("Check if container runs and if container is available")
containerCheck() async {
    final Docker docker = new Docker();

    [ "db-mobiad-test"].forEach((final String name) => docker.stop([ name ]));
    docker.start([ containerNameToCheck] );

    final Container container = new Container(runningContainerIDs());
    if(!container.names.contains(containerNameToCheck)) {

        container.names.forEach((final String name) {
            log("Active containers: -${name}-");
        });

        throw new ArgumentError("${containerNameToCheck} must be running for this test!");
    }
}

Docker JSON API

If you need want to dive into Dockers JSON-API check out bwu_docker

Features and bugs

Please file feature requests and bugs at the issue tracker.

License

Copyright 2018 Michael Mitterer (office@mikemitterer.at),
IT-Consulting and Development Limited, Austrian Branch

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the License for the specific language
governing permissions and limitations under the License.

If this plugin is helpful for you - please (Circle) me or star this repo here on GitHub

Change Log for docker

A Dart wrapper around the Docker command line

Unreleased

Feature

v0.3 - 2017-12-07

Refactor

  • More relaxed version constraints 1bed1a5

v0.1.5 - 2016-11-16

Docs

v0.1.0 - 2015-12-10

Docs

This CHANGELOG.md was generated with Changelog for Dart

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  docker: "^0.3.3"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


      import 'package:docker/docker.dart';
  
Version Uploaded Documentation Archive
0.3.3 May 30, 2018 Go to the documentation of docker 0.3.3 Download docker 0.3.3 archive
0.3.1 May 30, 2018 Go to the documentation of docker 0.3.1 Download docker 0.3.1 archive
0.2.4 Dec 7, 2017 Go to the documentation of docker 0.2.4 Download docker 0.2.4 archive
0.2.0 Dec 7, 2017 Go to the documentation of docker 0.2.0 Download docker 0.2.0 archive
0.1.6 Dec 5, 2016 Go to the documentation of docker 0.1.6 Download docker 0.1.6 archive
0.1.5 Nov 16, 2016 Go to the documentation of docker 0.1.5 Download docker 0.1.5 archive
0.1.4 Oct 13, 2016 Go to the documentation of docker 0.1.4 Download docker 0.1.4 archive
0.1.3 Dec 10, 2015 Go to the documentation of docker 0.1.3 Download docker 0.1.3 archive
0.1.2 Dec 10, 2015 Go to the documentation of docker 0.1.2 Download docker 0.1.2 archive

Analysis

We analyzed this package on Jul 13, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
6 / 100
Health:
Code health derived from static analysis. [more]
98 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
52
Learn more about scoring.

Platforms

Detected platforms: Flutter, other

Primary library: package:docker/docker.dart with components: io.

Suggestions

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 6 hints.

    Run dartfmt to format lib/docker/Container.dart.

    Run dartfmt to format lib/docker/Docker.dart.

    Similar analysis of the following files failed:

    • lib/docker/DockerRunOptions.dart (hint)
    • lib/mock.dart (hint)
  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use docker.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0
logging >=0.11.3 <1.0.0 0.11.3+1
validate ^1.0.0 1.6.0
Transitive dependencies
browser 0.10.0+3
intl 0.15.6
logging_handlers 0.8.0
path 1.6.1
Dev dependencies
build_runner any
build_test any
build_web_compilers any
grinder any
test any