我们有一个 docker 镜像存储在 ECR 中,有些来自 TC 构建代理,有些来自本地开发人员机器上的构建。所有镜像都可以在本地拉取运行,但是当尝试启动构建在构建 TC 构建代理上的镜像时,当 ECS 集群开始运行任务时,我们会收到以下错误。
InternalError: failed to normalize image reference "http://xxx.eu-west-1.amazonaws.com/events/name-of-contianer:tag"
我似乎无法在日志中找到任何其他信息,也无法在任何 ECS 文档中提及标准化错误。有没有人遇到过这个错误,甚至知道它意味着什么!
ECS 任务定义:
{
"ipcMode": null,
"executionRoleArn": "arn:aws:iam::xxxxxxxxxxxx:role/ecsTaskExecutionRole",
"containerDefinitions": [
{
"dnsSearchDomains": null,
"environmentFiles": null,
"logConfiguration": null,
"entryPoint": null,
"portMappings": [
{
"hostPort": 80,
"protocol": "tcp",
"containerPort": 80
}
],
"command": null,
"linuxParameters": null,
"cpu": 0,
"environment": [
{
"name": "ServiceConfiguration__BasePath",
"value": "/mobile-read-model"
},
{
"name": "ServiceConfiguration__Version",
"value": "0.1.0"
}
],
"resourceRequirements": null,
"ulimits": null,
"dnsServers": null,
"mountPoints": [],
"workingDirectory": …Run Code Online (Sandbox Code Playgroud) 我有一个 servlet,我想返回一个资源,或者至少是资源中的 html,index.html它位于我的 webapps 文件夹中。
我很新,还没有找到任何东西。这是我的代码,我将不胜感激任何帮助!
public static void main(String[] args){
Server server = new Server(8080);
ResourceHandler resource_handler = new ResourceHandler();
resource_handler.setDirectoriesListed(true);
resource_handler.setWelcomeFiles(new String[]{"index.html"});
resource_handler.setResourceBase("./target/classes/webapp");
ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);
context.setContextPath("/");
ServletHolder indexHolder = new ServletHolder(new IndexServlet());
context.addServlet(indexHolder, "/index");
HandlerList handlers = new HandlerList();
handlers.setHandlers(new Handler[]{resource_handler, context, new DefaultHandler()});
server.setHandler(handlers);
try {
server.start();
} catch (Exception ex) {
ex.printStackTrace();
}
}
Run Code Online (Sandbox Code Playgroud)
这是我目前的doGet方法。index.html当前的打印语句是我希望 servlet 返回的文件的字符串值。
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException …Run Code Online (Sandbox Code Playgroud) 我最近使用 VS 代码通过使用命令行标志从命令行打开来打开一个大文件--max-memory=12288mb。我能够很好地编辑文件并完成我需要做的事情,然后正常关闭代码。
默认情况下,我启用了restoreWindows和hotExit设置,因此当我重新打开代码时,所有以前的文件都已启用。
此后,每当我通过快捷方式或上下文菜单打开 VS Code 时,它都会尝试重新打开大文件并在启动后约 10 秒内崩溃。并显示警告:
窗户坏了
对此造成的不便,我们表示歉意!您可以重新打开窗口以从上次中断的地方继续
我尝试了几个步骤来尝试在 10 秒内关闭/阻止文件重新打开:
Close Editor,Close Folder和Close Window选项"window.restoreWindows": "none"并"files.hotExit": "off"尝试阻止文件自动重新加载我也试过在禁用扩展的情况下运行 VS Code