Skip to content

Commit 8a54a06

Browse files
committed
A few doc updates and such.
1 parent e6a92dd commit 8a54a06

File tree

5 files changed

+49
-20
lines changed

5 files changed

+49
-20
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
changelog
2+
=========
3+
4+
## 0.2
5+
Support for all Dockerfile instructions have been added.
6+
7+
### 0.2.1
8+
An update to the crate's docs.
9+
10+
## 0.1
11+
The initial release.
12+
13+
### 0.1.1
14+
An update to the crate's docs.

CONTRIBUTING.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
contributing
2+
============
3+
4+
### publishing releases
5+
- Ensure the README has been updated to reflect accurate examples and installation version.
6+
- Ensure the Cargo.toml version has been updated.
7+
- Ensure docs are updated and rendering as needed.
8+
9+
### development
10+
Running all tests for this system is pretty straightforward.
11+
12+
- cargo test --all-targets
13+
- cargo +nightly test --doc --all-features
14+
15+
To visually check the built docs: `cargo +nightly doc --all-features --open`.

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "dockerfile"
33
description = "A Rust library for dynamically generating Dockerfiles."
4-
version = "0.2.0"
4+
version = "0.2.1"
55

66
authors = ["Anthony Dodd <dodd.anthonyjosiah@gmail.com>"]
77
categories = ["api-bindings", "config", "data-structures", "development-tools"]

src/instructions.rs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::{
77
/// The `ADD` instruction copies new files, directories or remote file URLs from `<src>` and adds
88
/// them to the filesystem of the image at the path `<dest>`.
99
///
10-
/// See the docs at https://docs.docker.com/engine/reference/builder/#add
10+
/// [See the docs here](https://docs.docker.com/engine/reference/builder/#add).
1111
pub struct Add(Cow<'static, str>);
1212

1313
impl Add {
@@ -25,7 +25,7 @@ impl fmt::Display for Add {
2525
/// The `ARG` instruction defines a variable that users can pass at build-time to the builder with
2626
/// the `docker build` command using the `--build-arg <varname>=<value>` flag.
2727
///
28-
/// See the docs at https://docs.docker.com/engine/reference/builder/#arg
28+
/// [See the docs here](https://docs.docker.com/engine/reference/builder/#arg).
2929
pub struct Arg(Cow<'static, str>);
3030

3131
impl Arg {
@@ -42,7 +42,7 @@ impl fmt::Display for Arg {
4242

4343
/// The main purpose of a `CMD` is to provide defaults for an executing container.
4444
///
45-
/// See the docs at https://docs.docker.com/engine/reference/builder/#cmd
45+
/// [See the docs here](https://docs.docker.com/engine/reference/builder/#cmd).
4646
pub struct Cmd(Cow<'static, str>);
4747

4848
impl Cmd {
@@ -60,7 +60,7 @@ impl fmt::Display for Cmd {
6060
/// The `COPY` instruction copies new files or directories from `<src>` and adds them to the
6161
/// filesystem of the container at the path `<dest>`.
6262
///
63-
/// See the docs at https://docs.docker.com/engine/reference/builder/#copy
63+
/// [See the docs here](https://docs.docker.com/engine/reference/builder/#copy).
6464
pub struct Copy(Cow<'static, str>);
6565

6666
impl Copy {
@@ -78,7 +78,7 @@ impl fmt::Display for Copy {
7878
/// Parser directives are optional, and affect the way in which subsequent lines in a `Dockerfile`
7979
/// are handled.
8080
///
81-
/// See the docs at https://docs.docker.com/engine/reference/builder/#parser-directives
81+
/// [See the docs here](https://docs.docker.com/engine/reference/builder/#parser-directives).
8282
pub struct Directive(Cow<'static, str>);
8383

8484
impl Directive {
@@ -95,7 +95,7 @@ impl fmt::Display for Directive {
9595

9696
/// An `ENTRYPOINT` allows you to configure a container that will run as an executable.
9797
///
98-
/// See the docs at https://docs.docker.com/engine/reference/builder/#entrypoint
98+
/// [See the docs here](https://docs.docker.com/engine/reference/builder/#entrypoint).
9999
pub struct Entrypoint(Cow<'static, str>);
100100

101101
impl Entrypoint {
@@ -112,7 +112,7 @@ impl fmt::Display for Entrypoint {
112112

113113
/// The `ENV` instruction sets the environment variable `<key>` to the value `<value>`.
114114
///
115-
/// See the docs at https://docs.docker.com/engine/reference/builder/#env
115+
/// [See the docs here](https://docs.docker.com/engine/reference/builder/#env).
116116
pub struct Env(Cow<'static, str>);
117117

118118
impl Env {
@@ -130,7 +130,7 @@ impl fmt::Display for Env {
130130
/// The `EXPOSE` instruction informs Docker that the container listens on the specified network
131131
/// ports at runtime.
132132
///
133-
/// See the docs at https://docs.docker.com/engine/reference/builder/#expose
133+
/// [See the docs here](https://docs.docker.com/engine/reference/builder/#expose).
134134
pub struct Expose(Cow<'static, str>);
135135

136136
impl Expose {
@@ -148,7 +148,7 @@ impl fmt::Display for Expose {
148148
/// The `FROM` instruction initializes a new build stage and sets the base image for subsequent
149149
/// instructions.
150150
///
151-
/// See the docs at https://docs.docker.com/engine/reference/builder/#from
151+
/// [See the docs here](https://docs.docker.com/engine/reference/builder/#from).
152152
pub struct From(Cow<'static, str>);
153153

154154
impl From {
@@ -166,7 +166,7 @@ impl fmt::Display for From {
166166
/// The `HEALTHCHECK` instruction tells Docker how to test a container to check that it is still
167167
/// working.
168168
///
169-
/// See the docs at https://docs.docker.com/engine/reference/builder/#healthcheck
169+
/// [See the docs here](https://docs.docker.com/engine/reference/builder/#healthcheck).
170170
pub struct Healthcheck(Cow<'static, str>);
171171

172172
impl Healthcheck {
@@ -183,7 +183,7 @@ impl fmt::Display for Healthcheck {
183183

184184
/// The `LABEL` instruction adds metadata to an image.
185185
///
186-
/// See the docs at https://docs.docker.com/engine/reference/builder/#label
186+
/// [See the docs here](https://docs.docker.com/engine/reference/builder/#label).
187187
pub struct Label(Cow<'static, str>);
188188

189189
impl Label {
@@ -203,7 +203,7 @@ impl fmt::Display for Label {
203203
/// the context of the downstream build, as if it had been inserted immediately after the `FROM`
204204
/// instruction in the downstream `Dockerfile`.
205205
///
206-
/// See the docs at https://docs.docker.com/engine/reference/builder/#onbuild
206+
/// [See the docs here](https://docs.docker.com/engine/reference/builder/#onbuild).
207207
pub struct Onbuild(Cow<'static, str>);
208208

209209
impl Onbuild {
@@ -221,7 +221,7 @@ impl fmt::Display for Onbuild {
221221
/// The `RUN` instruction will execute any commands in a new layer on top of the current image and
222222
/// commit the results.
223223
///
224-
/// See the docs at https://docs.docker.com/engine/reference/builder/#run
224+
/// [See the docs here](https://docs.docker.com/engine/reference/builder/#run).
225225
pub struct Run(Cow<'static, str>);
226226

227227
impl Run {
@@ -239,7 +239,7 @@ impl fmt::Display for Run {
239239
/// The `SHELL` instruction allows the default shell used for the shell form of commands to be
240240
/// overridden.
241241
///
242-
/// See the docs at https://docs.docker.com/engine/reference/builder/#shell
242+
/// [See the docs here](https://docs.docker.com/engine/reference/builder/#shell).
243243
pub struct Shell(Cow<'static, str>);
244244

245245
impl Shell {
@@ -257,7 +257,7 @@ impl fmt::Display for Shell {
257257
/// The `STOPSIGNAL` instruction sets the system call signal that will be sent to the container
258258
/// to exit.
259259
///
260-
/// See the docs at https://docs.docker.com/engine/reference/builder/#stopsignal
260+
/// [See the docs here](https://docs.docker.com/engine/reference/builder/#stopsignal).
261261
pub struct Stopsignal(Cow<'static, str>);
262262

263263
impl Stopsignal {
@@ -276,7 +276,7 @@ impl fmt::Display for Stopsignal {
276276
/// use when running the image and for any `RUN`, `CMD` and `ENTRYPOINT` instructions that follow
277277
/// it in the `Dockerfile`.
278278
///
279-
/// See the docs at https://docs.docker.com/engine/reference/builder/#user
279+
/// [See the docs here](https://docs.docker.com/engine/reference/builder/#user).
280280
pub struct User(Cow<'static, str>);
281281

282282
impl User {
@@ -294,7 +294,7 @@ impl fmt::Display for User {
294294
/// The `VOLUME` instruction creates a mount point with the specified name and marks it as holding
295295
/// externally mounted volumes from native host or other containers.
296296
///
297-
/// See the docs at https://docs.docker.com/engine/reference/builder/#volume
297+
/// [See the docs here](https://docs.docker.com/engine/reference/builder/#volume).
298298
pub struct Volume(Cow<'static, str>);
299299

300300
impl Volume {
@@ -312,7 +312,7 @@ impl fmt::Display for Volume {
312312
/// The `WORKDIR` instruction sets the working directory for any `RUN`, `CMD`, `ENTRYPOINT`,
313313
/// `COPY` and `ADD` instructions that follow it in the `Dockerfile`.
314314
///
315-
/// See the docs at https://docs.docker.com/engine/reference/builder/#workdir
315+
/// [See the docs here](https://docs.docker.com/engine/reference/builder/#workdir).
316316
pub struct Workdir(Cow<'static, str>);
317317

318318
impl Workdir {

0 commit comments

Comments
 (0)