我正在使用MACOSX来运行和测试我的某些服务,还在使用localstack(https://github.com/localstack/localstack)来模仿s3,sqs和sns,但这似乎行不通。
我已经将docker的计算能力和内存提高到最大。
C-LM-0792:Desktop UserName$ git clone git@github.com:localstack/localstack.git
Cloning into 'localstack'...
Enter passphrase for key '/Users/UserName/.ssh/id_rsa':
remote: Enumerating objects: 15, done.
remote: Counting objects: 100% (15/15), done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 6741 (delta 0), reused 4 (delta 0), pack-reused 6726
Receiving objects: 100% (6741/6741), 2.23 MiB | 1.92 MiB/s, done.
Resolving deltas: 100% (4397/4397), done.
C-LM-0792:Desktop UserName$ cd localstack/
C-LM-0792:localstack UserName$ make infra
(. .venv/bin/activate; exec bin/localstack start)
/bin/sh: .venv/bin/activate: No such file or directory
make: *** [infra] Error 1
C-LM-0792:localstack UserName$ make web
(. .venv/bin/activate; bin/localstack web)
/bin/sh: .venv/bin/activate: No such file or directory
make: *** [web] Error 1
答案 0 :(得分:1)
在Commandeer中,您可以查看您的LocalStack实例。在后台,它使用上面的docker实例,但是您可以从GUI启动和停止服务。它还在“终端”选项卡中打印出终端的内容。我会选择码头工人路线,因为现在这是他们推荐的方式。
答案 1 :(得分:0)
您可以使用@brian在注释中指向的以下docker-compose文件:
actions:{
theAction({},payload){
// bla bla
}
}