我试图允许一个AWS帐户(以下称为“第二个”)在另一个AWS帐户(以下称为“第一个”)的ECR存储库中提取图像。
我正在关注这些文件:
我向ECR存储库添加了以下权限:
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "AllowCrossAccountPull",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::<second>:root"
},
"Action": [
"ecr:BatchCheckLayerAvailability",
"ecr:BatchGetImage",
"ecr:GetDownloadUrlForLayer"
]
}
]
}
Run Code Online (Sandbox Code Playgroud)
然后运行以下命令: eval "$(aws ecr get-login --no-include-email --region us-east-1 --profile second --registry-ids <second> <first>)"
我得到这个结果:
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /Users/libby/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
WARNING! Using --password via …Run Code Online (Sandbox Code Playgroud) 我最近将我的应用程序升级到GHC 8.4,并且我正在尝试将应用程序部署到生产环境中.不幸的是,当我尝试在持续集成服务器上编译应用程序时,每次都会耗尽内存.(这个应用程序多年来一直在同一个服务上编译而没有问题.)有没有办法配置GHC/Stack以使编译使用更少的资源?如果它使编译速度变慢也没关系.
对于上下文,这里是编译器崩溃的地方:
Progress 171/271: aeson-1.2.4.0 aeson-1.2.4.0: copy/register
Progress 171/271: aeson-1.2.4.0 Progress 172/271
-- While building custom Setup.hs for package Cabal-2.2.0.1 using:
/root/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.3 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.2.0.1 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
Process exited with code: ExitFailure (-9) (THIS MAY INDICATE OUT OF MEMORY)
Run Code Online (Sandbox Code Playgroud)
ETA:这个问题已被标记为Cabal安装标准内存的重复,但不幸的是,该解决方案对我没有帮助.如果我stack build改为stack build --ghc-options '+RTS -M1500M -RTS',那似乎只会使崩溃稍早发生:
Cabal-2.2.0.1: copy/register
Progress 171/271: Cabal-2.2.0.1 Progress 172/271
-- While building custom Setup.hs for package tzdata-0.1.20180501.0 using:
/root/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.3 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.2.0.1 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
Process …Run Code Online (Sandbox Code Playgroud) 我首选的 CSS 工作流程(至少在调整现有 CSS 时)是使用 3 面板 Inspector 面板直接在浏览器中进行编辑,然后将编辑后的样式复制到我的样式表中。
有时我会编辑许多元素的样式,而忘记我编辑了一些元素(因为您只能通过准确选择该元素并查找左侧带有绿色条的规则来查看它是否已编辑 AFAICT)。然后我将无法手动将该元素的样式更改复制到我的样式表,并且在重新加载时丢失更改。
有什么地方可以看到我使用 Inspector 编辑样式的所有地方——包括添加新规则——以便我可以一次复制它们?
我正在ghci测试一些分叉线程的函数,有点像这样:
myForkingFunction = do
tid <- forkIO (workerFunction)
putStrLn ("Worker thread: " ++ show tid)
putStrLn ("...lots of other actions...")
where workerFunction = do
putStrLn "In real life I'm listening for jobs...."
workerFunction
Run Code Online (Sandbox Code Playgroud)
这导致:
> myForkingFunction
Worker thread: ThreadId 216
...lots of other actions...
> In real life I'm listening for jobs....
In real life I'm listening for jobs....
In real life I'm listening for jobs....
In real life I'm listening for jobs....
Run Code Online (Sandbox Code Playgroud)
(等等)
然后当我:r-ing 和迭代代码时,我注意到即使我重新加载,我 …