Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 9b21f9a

Browse files
authored
Merge pull request #2245 from ndeloof/deprecation_notice
cli: deprecation notice
2 parents 9ef8fac + 92edf30 commit 9b21f9a

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1+
## :warning: Retirement Date Pending
2+
3+
Docker Compose's integration for ECS and ACI will be retired in November 2023. For now, our main priority in this repository are critical security fixes.
4+
5+
ECS users can consider using [compose-ecs](https://github.com/docker/compose-ecs).
6+
7+
18
# Docker Compose "Cloud Integrations"
29

310
[![Actions Status](https://github.com/docker/compose-cli/workflows/Continuous%20integration/badge.svg)](https://github.com/docker/compose-cli/actions)
411
[![Actions Status](https://github.com/docker/compose-cli/workflows/Windows%20CI/badge.svg)](https://github.com/docker/compose-cli/actions)
512

13+
614
This Compose CLI tool makes it easy to run Docker containers and Docker Compose applications in the cloud using either :
715
- Amazon Elastic Container Service
816
([ECS](https://aws.amazon.com/ecs))

aci/backend.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
package aci
1818

1919
import (
20+
"fmt"
21+
"os"
2022
"strings"
2123

2224
"github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2019-12-01/containerinstance"
@@ -67,6 +69,7 @@ func init() {
6769
}
6870

6971
func service() (backend.Service, error) {
72+
fmt.Fprintln(os.Stderr, "Docker Compose's integration for ECS and ACI will be retired in November 2023. Learn more: https://docs.docker.com/go/compose-ecs-eol/")
7073
contextStore := store.Instance()
7174
currentContext := apicontext.Current()
7275
var aciContext store.AciContext

aci/cloud.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ package aci
1818

1919
import (
2020
"context"
21+
"fmt"
22+
"os"
2123

2224
"github.com/pkg/errors"
2325

@@ -47,6 +49,7 @@ func (cs *aciCloudService) Logout(ctx context.Context) error {
4749
}
4850

4951
func (cs *aciCloudService) CreateContextData(ctx context.Context, params interface{}) (interface{}, string, error) {
52+
fmt.Fprintln(os.Stderr, "Docker Compose's integration for ECS and ACI will be retired in November 2023. Learn more: https://docs.docker.com/go/compose-ecs-eol/")
5053
contextHelper := newContextCreateHelper()
5154
createOpts := params.(ContextParams)
5255
return contextHelper.createContextData(ctx, createOpts)

ecs/backend.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package ecs
1919
import (
2020
"context"
2121
"fmt"
22+
"os"
2223

2324
"github.com/docker/compose-cli/api/backend"
2425
"github.com/docker/compose-cli/api/cloud"
@@ -62,6 +63,7 @@ func init() {
6263
}
6364

6465
func service() (backend.Service, error) {
66+
fmt.Fprintln(os.Stderr, "Docker Compose's integration for ECS and ACI will be retired in November 2023. Learn more: https://docs.docker.com/go/compose-ecs-eol/")
6567
contextStore := store.Instance()
6668
currentContext := apicontext.Current()
6769
var ecsContext store.EcsContext
@@ -155,6 +157,7 @@ func (a ecsCloudService) Logout(ctx context.Context) error {
155157
}
156158

157159
func (a ecsCloudService) CreateContextData(ctx context.Context, params interface{}) (interface{}, string, error) {
160+
fmt.Fprintln(os.Stderr, "Docker Compose's integration for ECS and ACI will be retired in November 2023. Learn more: https://docs.docker.com/go/compose-ecs-eol/")
158161
contextHelper := newContextCreateHelper()
159162
createOpts := params.(ContextParams)
160163
return contextHelper.createContextData(ctx, createOpts)

0 commit comments

Comments
 (0)