dockerfile 0.1.0

dockerfile #

A library for manipulating Dockerfile

Usage #

A simple usage example:

import 'package:dockerfile/dockerfile.dart';

main() {
  var dockerfile = new Dockerfile();

  dockerfile.from('google/dart', tag: dartVersion);
  dockerfile.run('pub', args: ['build']);
  dockerfile.add(somePath, otherPath);
  await dockerfile.save(saveDirectory);
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

Changelog #

0.1.0 #

  • Dart 2

0.0.4 #

  • tidied a few things

0.0.3 #

  • Fix analyzer warnings

0.0.2 #

  • tidy dependency versions

0.0.1 #

  • Initial version, created by Stagehand

example/dockerfile.dart

// Copyright (c) 2015, Anders Holmgren. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

library dockerfile.example;

main() {}

Use this package as a library

1. Depend on it

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


dependencies:
  dockerfile: ^0.1.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:dockerfile/dockerfile.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
96
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
49
Learn more about scoring.

We analyzed this package on Aug 20, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19

Platforms

Detected platforms: Flutter, other

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

Health suggestions

Fix lib/src/dockerfile.dart. (-3.45 points)

Analysis of lib/src/dockerfile.dart reported 7 hints, including:

line 28 col 50: Use = to separate a named parameter from its default value.

line 32 col 53: Use = to separate a named parameter from its default value.

line 42 col 29: Use = to separate a named parameter from its default value.

line 42 col 54: Use = to separate a named parameter from its default value.

line 46 col 56: Use = to separate a named parameter from its default value.

Fix lib/src/docker_command.dart. (-0.50 points)

Analysis of lib/src/docker_command.dart reported 1 hint:

line 97 col 30: Use = to separate a named parameter from its default value.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <3.0.0
path ^1.6.2 1.6.4
quiver ^2.0.0+1 2.0.5
Transitive dependencies
matcher 0.12.5
meta 1.1.7
stack_trace 1.9.3