You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The build properties are the same as the [`compile`](#compile) target.
518
+
395
519
#### Docker
396
520
397
521
Build docker images locally.
398
522
523
+
Dockerfiles and build contexts are configured by the `dockerfiles` map. It'a map with Dockerfiles paths as keys and context paths as values. The default value is `{"Dockerfile": ".", "Dockerfile.webserver", "."}` which will build both Dockerfiles present at the root of this template with a build context equal to the current directory (root directory).
524
+
525
+
The images are named according to a few rules :
526
+
527
+
- if the source Dockerfile has an extension (e.g. `Dockerfile.webserver`) then the image built will be named `<DOCKERHUB_USER>/<PROJECT>-<EXTENSION>` (e.g. : `Dockerfile.webserver` will produce an image named `<DOCKERHUB_USER>/<PROJECT>-webserver`)
528
+
- if the source Dockerfile hasn't an extension (e.g. `Dockerfile`) then the image built will be named `<DOCKERHUB_USER>/<PROJECT>`
529
+
530
+
A prerequisite to this target is that a file named `.dockerhub.yml` at the home directory (`~/.dockerhub.yml`) contains a `DOCKERHUB_USER` property.
531
+
399
532
```console
400
533
neon docker
401
534
----------------------------------------------- info --
To configure the docker target, edit the `build.yml` file and look for the property named `dockerfiles`. It'a map with Dockerfiles paths as keys and context paths as values. The default value is `{"Dockerfile": ".", "Dockerfile.webserver", "."}` which will build both Dockerfiles present at the root of this template with a build context equal to the current directory (root directory).
548
+
To configure the docker target, edit the `build.yml` file and look for the property named `dockerfiles`.
416
549
417
550
The `dockerfiles` map can also be passed by the `neon -props` flag.
adrienaury/go-template refactor sha256:d05a1e1e5119aab03f3e3e33fa56d7db66ae5634beb53827b0e69fa168e3c595 20 minutes ago 20.6MB
593
+
adrienaury/go-template v0 sha256:d05a1e1e5119aab03f3e3e33fa56d7db66ae5634beb53827b0e69fa168e3c595 20 minutes ago 20.6MB
594
+
adrienaury/go-template v0.2 sha256:d05a1e1e5119aab03f3e3e33fa56d7db66ae5634beb53827b0e69fa168e3c595 20 minutes ago 20.6MB
595
+
adrienaury/go-template v0.2.0 sha256:d05a1e1e5119aab03f3e3e33fa56d7db66ae5634beb53827b0e69fa168e3c595 20 minutes ago 20.6MB
596
+
adrienaury/go-template-webserver refactor sha256:14b333b3679a64b3255e7c88e7211fa4b7502e2664e7b482373b392d5615414c 20 minutes ago 20.6MB
597
+
adrienaury/go-template-webserver v0 sha256:14b333b3679a64b3255e7c88e7211fa4b7502e2664e7b482373b392d5615414c 20 minutes ago 20.6MB
598
+
adrienaury/go-template-webserver v0.2 sha256:14b333b3679a64b3255e7c88e7211fa4b7502e2664e7b482373b392d5615414c 20 minutes ago 20.6MB
599
+
adrienaury/go-template-webserver v0.2.0 sha256:14b333b3679a64b3255e7c88e7211fa4b7502e2664e7b482373b392d5615414c 20 minutes ago 20.6MB
600
+
OK
601
+
```
602
+
603
+
#### Docker-publish
604
+
605
+
Publish tagged docker images to Dockerhub.
606
+
607
+
A prerequisite to this target is that a file named `.dockerhub.yml` at the home directory (`~/.dockerhub.yml`) contains a `DOCKERHUB_USER` property and a `DOCKERHUB_PASS` property.
608
+
609
+
The build properties are the same as the [`docker`](#docker) target (a `dockerfiles` map).
610
+
434
611
## Contributing
435
612
436
613
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
0 commit comments