Commit Graph

2024 Commits

Author SHA1 Message Date
Guillaume Tardif e469b40e28 Remove duplicate ensureImagesExist()
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-02 13:51:56 +01:00
Ulysses Souza 7e4cfc0e3b Add order to down command
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-12-02 13:51:11 +01:00
Guillaume Tardif 4270f383a7
Merge pull request #988 from docker/feat-platform
Add platform when running containers
2020-12-02 13:24:07 +01:00
Guillaume Tardif 91083bc42c
Merge pull request #1001 from gtardif/compose_build_img_name
If compose file has a build section and no image name, build image with the right derived image tag
2020-12-02 13:16:03 +01:00
Guillaume Tardif 7b1a602fd4 If compose file has a build section and no image name, build image with the right derived image name (project_service), like docker-compose.
See awesome_compose/react-express-mongodb example

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-02 12:05:59 +01:00
Guillaume Tardif 1d71be31b6
Merge pull request #999 from gtardif/compose_build_flags
Add compose build flags for file and working dir
2020-12-02 11:18:43 +01:00
Guillaume Tardif 5258e3d56e Add compose build flags for file and working dir
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-02 10:35:28 +01:00
Nicolas De loof 6bf76eebb1
Merge pull request #991 from gtardif/compose_network_error
Compose network error
2020-12-01 18:31:43 +01:00
Nicolas De loof bd087a713d
Merge pull request #995 from docker/compose_push 2020-12-01 18:22:54 +01:00
Nicolas De Loof a35147bc63
Detect push failure and break
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-12-01 16:26:01 +01:00
Nicolas De Loof 52574046f0
introduce `compose push` command
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-12-01 14:55:52 +01:00
Guillame Tardif b1970f618c Container networks: prefix network name only for internal networks or when name set (different from yaml key). No need to prefix again when connecting containers
Signed-off-by: Guillame Tardif <guillaume.tardif@gmail.com>
2020-12-01 10:03:18 +01:00
Guillame Tardif d24ffd97a0 Local compose error when external network not available
Signed-off-by: Guillame Tardif <guillaume.tardif@gmail.com>
2020-11-30 14:49:35 +01:00
Nicolas De loof e9d20d512a
Merge pull request #989 from docker/build_command
introduce `compose build` command
2020-11-30 13:06:38 +01:00
Nicolas De Loof 5952183eca
introduce `compose build` command
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-30 12:43:38 +01:00
Djordje Lukic 1148ed8837 Add platform when running containers
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-11-30 11:51:46 +01:00
Guillaume Tardif ab41285a07
Merge pull request #980 from docker/by_service
filter compose project to remove all services not required by command
2020-11-30 10:59:17 +01:00
Guillaume Tardif 96d21fe448
Merge pull request #983 from docker/refactor_progress_events
Refactor progress events
2020-11-30 10:58:30 +01:00
Nicolas De Loof b1a4dfd659
filter compose project to remove all services not required by command
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-30 10:46:11 +01:00
Guillame Tardif fd54682109 Display “Creating”, not “Creating...”
Signed-off-by: Guillame Tardif <guillaume.tardif@gmail.com>
2020-11-27 18:21:22 +01:00
Guillame Tardif 4d1f265c62 Adding error progress indication when errors
Signed-off-by: Guillame Tardif <guillaume.tardif@gmail.com>
2020-11-27 18:18:14 +01:00
Guillame Tardif 7ddd8e5e97 Helper methods to create progress events, more homogeneous display for “creating”, “Created”, …
Signed-off-by: Guillame Tardif <guillaume.tardif@gmail.com>
2020-11-27 17:55:36 +01:00
Guillaume Tardif f1565a52b2
Merge pull request #982 from gtardif/compose_down_networks
Remove project network on compose down
2020-11-27 17:49:37 +01:00
Guillame Tardif 8b60c76684 Remove project network on compose down
Signed-off-by: Guillame Tardif <guillaume.tardif@gmail.com>
2020-11-27 17:42:29 +01:00
Guillaume Tardif 9b140930a7
Merge pull request #979 from docker/console
Don't start buildx' build with empty opts
2020-11-27 14:54:39 +01:00
Nicolas De loof e94646f56a
Merge pull request #978 from gtardif/fix_compose_up_display
Ensure images are pulled/build with build first, before creating networks / volumes.
2020-11-27 14:32:50 +01:00
Nicolas De Loof a542b5d37f
Don't start buildx' build with empty opts
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-27 14:18:06 +01:00
Guillame Tardif bc9099de9b Ensure images are pulled/build with build first, before creating networks / volumes and starting containers.
Will also avoid mixing build output and compose-cli progress display

Signed-off-by: Guillame Tardif <guillaume.tardif@gmail.com>
2020-11-27 13:52:58 +01:00
Nicolas De loof c0805464f5
Merge pull request #976 from docker/volume_labels
Volume labels
2020-11-27 12:15:38 +01:00
Nicolas De Loof b42b61e307
rename method for clarity
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-27 12:05:57 +01:00
Nicolas De Loof 3ff6923d2e
align coding-style with network labels
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-27 10:51:58 +01:00
Nicolas De Loof 49e653f142
unused context parameter
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-27 10:29:08 +01:00
Nicolas De Loof f65a0d3720
Create volume with labels
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-27 10:21:36 +01:00
Nicolas De Loof 646aca82d9
composeService to rely on apiClient
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-27 10:21:36 +01:00
Nicolas De loof a60b008819
Merge pull request #973 from gtardif/compose_name_workingDir
Latest compose-go, keeping “-“ in project names derived from workingDir
2020-11-27 09:38:27 +01:00
Guillaume Tardif 3c073b51a2 Latest compose-go, keeping “-“ in project names derived from workingDir
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-27 09:13:05 +01:00
Guillaume Tardif de3b6cb450 Add compose labels for composefiles
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-26 17:13:24 +00:00
Nicolas De loof f7905efc36
Merge pull request #960 from docker/build 2020-11-26 17:58:22 +01:00
Nicolas De loof 775c46084c
Merge pull request #969 from gtardif/compose-network_labels
Add compose labels for network
2020-11-26 16:28:52 +01:00
Guillaume Tardif efdf80ebb8
Merge pull request #962 from gtardif/fix_panic_terminal_size_debug
Avoid panic in some weird cases (debug in VSCode for example)
2020-11-26 16:00:20 +01:00
Guillaume Tardif e441fbba5a Add compose labels for network
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-26 15:45:25 +01:00
Nicolas De Loof 1e2f0c75c5
fix path to build context
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-26 14:22:45 +01:00
Nicolas De Loof 0f4bcb9f17
Build and pull in parallel with BuildKit
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-26 14:11:40 +01:00
Nicolas De Loof a0b609a5dd
implement service image build by BuildKit
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-26 14:07:53 +01:00
Guillaume Tardif 426b333dd8
Merge pull request #961 from gtardif/compose_container_labels
Add container labels to improve compatibility with docker-compose
2020-11-25 18:14:18 +01:00
Guillaume Tardif f997d7a128 Avoid panic in some weird cases (debug in VSCode for example)
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-25 18:07:22 +01:00
Guillaume Tardif 24328c4620 Add container labels to improve compatibility with docker-compose
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-25 17:53:12 +01:00
Nicolas De loof 9e1de51f82
Merge pull request #956 from docker/fix-port-collision
Avoid port collision with compose up test
2020-11-24 18:20:41 +01:00
Guillaume Tardif a80998e0b2
Merge pull request #958 from docker/bump-azure-go-sdk
Bump `azure-sdk-for-go`: v43.3.0 -> v48.2.0
2020-11-24 16:06:54 +01:00
Ulysses Souza fe566d24e6 Bump `azure-sdk-for-go`: v43.3.0 -> v48.2.0
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-11-24 11:48:26 -03:00