GitXplorerGitXplorer
M

dart-docker

public
9 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
48771c4c871006bb0b1dafcbce7a9e1246e13224

Released v0.3.5

MMikeMitterer committed 6 years ago
Unverified
326df612175ba1922ba06e8c95136ab014057494

reorg: Minimal SDK is now Dart 2.0

MMikeMitterer committed 6 years ago
Unverified
a89d0ff9e2eacf2b666312f856391cf558d9c7a0

Released v0.3.3

MMikeMitterer committed 7 years ago
Unverified
d306186b96abdef035809ba98636451d046b0b76

Removed browser dependency

MMikeMitterer committed 7 years ago
Unverified
1a1bbe8c1f6074bfebfee7934e1ecbba18378379

Releases v0.3.1

MMikeMitterer committed 7 years ago
Unverified
7d3733bc12cca86784f86260d8be75f890309011

feature: Dart 2.x ready

MMikeMitterer committed 7 years ago

README

The README file for this repository.

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