Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 4b3bef0

Browse files
authored
Merge pull request #417 from silvin-lubecki/experimental-readme
Move experimental building part to BUILDING.md
2 parents cc05b95 + 1953f2f commit 4b3bef0

2 files changed

Lines changed: 16 additions & 13 deletions

File tree

BUILDING.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ end you need to have `GOPATH` set in your environment.
3030

3131
At this point you can use `go` to checkout `docker-app` in your `GOPATH`:
3232

33-
```sh
33+
```console
3434
go get github.com/docker/app
3535
```
3636

@@ -39,14 +39,14 @@ You are ready to build `docker-app` yourself!
3939
`docker-app` uses `make` to create a repeatable build flow. It means that you
4040
can run:
4141

42-
```sh
42+
```console
4343
make
4444
```
4545

4646
This is going to build all the project binaries in the `./bin/`
4747
directory, run tests (unit and end-to-end).
4848

49-
```sh
49+
```console
5050
make bin/docker-app # builds the docker-app binary
5151
make bin/docker-app-darwin # builds the docker-app binary for darwin
5252
make bin/docker-app-windows.exe # builds the docker-app binary for windows
@@ -59,6 +59,16 @@ make test-e2e # run the end-to-end tests
5959
Vendoring of external imports uses the [`dep`](https://github.com/golang/dep) tool.
6060
Please refer to its documentation if you need to update a dependency.
6161

62+
### Experimental
63+
64+
Just add the `EXPERIMENTAL=on` flag before invoking a build target:
65+
```console
66+
$ make EXPERIMEMTAL=on bin/docker-app
67+
$ ./bin/docker-app version
68+
...
69+
Experimental: on
70+
```
71+
6272
## Build using Docker
6373

6474
If you don't have Go installed but Docker is present, you can also use
@@ -89,7 +99,7 @@ capabilities without using the `Makefile` targets. The following
8999
examples show how to specify a test name and also how to use the flag
90100
directly against `go test` to run root-requiring tests.
91101

92-
```sh
102+
```console
93103
# run the test <TEST_NAME>:
94104
go test -v -run "<TEST_NAME>" .
95105
```

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
An *experimental* utility to help make Compose files more reusable and sharable.
44

5-
65
## The problem application packages solve
76

87
Compose files do a great job of describing a set of related services. Not only are Compose files easy to write, they are generally easy to read as well. However, a couple of problems often emerge:
@@ -234,6 +233,7 @@ We have lots of ideas for making Compose-based applications easier to share and
234233
* Saving required images into the application artifact to support offline installation
235234
* Signing applications with notary
236235

236+
If you're interested in contributing to the project, jump to [BUILDING.md](BUILDING.md) and [CONTRIBUTING.md](CONTRIBUTING.md).
237237

238238
## Usage
239239

@@ -301,11 +301,4 @@ source <(docker-app completion zsh)
301301

302302
Some commands are flagged as experimental and will remain in this state until they mature. These commands are only accessible using an experimental binary. Feel free to test these commands and give us some feedback!
303303

304-
### How to build your own experimental binary
305-
306-
```console
307-
$ make EXPERIMEMTAL=on bin/docker-app
308-
$ ./bin/docker-app version
309-
...
310-
Experimental: on
311-
```
304+
See [BUILDING.md/Experimental](BUILDING.md#experimental).

0 commit comments

Comments
 (0)