Tag: intellij idea

更新docker-contanier jre时区

根据这里https://stackoverflow.com/a/40416306/6804200 我更新了我的本地ubuntu jredate(osdate已经是真的)。 但是当我运行应用程序,date仍然是旧的。 我看着Docker中的应用程序服务器 – 与IntelliJ战争部署 https://runnable.com/docker/java/dockerize-your-java-application 在这里,但他们不做我想要的。 我想改变运行应用程序的容器jre 因为这 params.put("createdDate", persisted.getCreatedAt(). now(ZoneId.of(Constants.TURKEY_ZONE)). format(DateTimeFormatter.ofPattern(Constants.DATE_TIME_FORMAT))); 带来错误的date。 这是一个小时前。 我需要去做 java -jar tzupdater.jar -l file:///home/vegan/Downloads/tzdata2016g.tar.gz 就像我在当地一样。 操作系统是Ubuntu的。 Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-34-generic x86_64)有这些图像 jhipster/jhipster-alerter jhipster/jhipster-console jhipster/jhipster-registry mongo rabibtmq, vimagick/pure-ftpd and our company image about 1.8 gb. 当项目是应用程序时,大约有10 12 microservices 。 我想改变代码内的东西,而不是开始改变docker的开始选项

IntelliJdocker部署地址:没有这样的文件或目录

我安装了用于IntelliJ的docker集成插件来即时部署一个项目。 目前我正在用Gradle来开发一个项目。 那里的结构看起来像: project |- build/ |– docker/ |— Dockerfile |— target/ |—- myApp.jar |- docker/ |– Dockerfile |- src/ |– de.myApp/ |— SOURCECODE |- build.gradle |- gradlew 在我的Dockerfile中添加.jar : ADD target/data_sample_set_structure_consumer-0.0.0.jar app.jar 部署configuration使用Deployment: docker/Dockerfile 。 当我点击开始 ,我得到以下错误信息: Step 3/4 : ADD target/data_sample_set_structure_consumer-0.0.0.jar app.jar Error: ResponseItem.ErrorDetail[code=<null>,message=ADD failed: stat /var/lib/docker/tmp/docker-builder981429297/target/data_sample_set_structure_consumer-0.0.0.jar: no such file or directory] Failed […]

IntelliJ自动完成和docker

我有我的系统IntelliJ和Docker与一个容器来运行我的项目。 有没有办法告诉IntelliJ使用容器做自动完成(和所有伟大的现代IDEfunction)? 这是我目前在我的IDE中看到的: 我当然可以使用docker成功运行我的项目。

在AWS上远程debuggingNodeJS容器

在EC2实例上运行一个NodeJS Docker容器,我试图远程debugging它,但不断从实例中获得“连接被拒绝”。 我试过 – 打开EC2安全组中的端口 公开Dockerfile中的端口,应用程序正在侦听的端口以及debugging端口 在Docker运行命令中使用-p标志转发端口 确保应用程序可以直接通过它configuration监听的端口进行访问 尝试所有这些之后,远程debugging程序甚至telnet仍然无法访问debugging端口。 任何想法可能导致这一点?

在Docker容器中播放2.5.x不通过共享文件夹更新

我正在Docker容器中运行Play Framework 2.5.x的开发环境。 该应用程序的工作原理,我可以通过共享端口在我的浏览器上查看它。 但是,自动更新function不起作用。 从研究中我了解到,这是因为Play的JNotify不会轮询共享文件夹中的文件更改。 我试过这个问题的解决scheme,这是简单的轮询在一个时间间隔通过添加以下build.sbt PlayKeys.fileWatchService := play.runsupport.FileWatchService.sbt(pollInterval.value) 做了这个改变(并确保它被推送通过共享文件夹),使用activator run成功编译并运行服务器。 [info] Done updating. — (Running the application, auto-reloading is enabled) — [info] pcsNettyServer – Listening for HTTP on /0:0:0:0:0:0:0:0:9000 (Server started, use Ctrl+D to stop and go back to the console…) 我可以在我的浏览器中查看它。 但是,在更改文件时,不会发生重新编译,刷新也不会改变任何内容。 停止并启动服务器,但确实显示更改。 我想我可能知道为什么,但我不知道如何解决它。 我读过使用activator ~run应该启动服务器,但使用SBT而不是激活。 当我使用这个命令启动服务器时,它挂在: [info] Set current project to […]

与IntelliJ和Docker的Xdebug不工作。 如何解决?

我的IDE是IntelliJ,它configuration和使用Xdebug和PHP 5.6。 它在我的主机(MacOS)中工作,但是当我打开Docker时,debugging过程失败。 如果我尝试公开端口9000( docker run -p 80:80 -p 9000:9000 … ),当我运行图像时,我得到一个错误IntelliJ – > port 9000 is in use 。 如果我不暴露端口9000,我在IntelliJ里面什么都没有, 这里是docker中php.ini的一部分:它显示xdebug已经启用。 [xdebug] zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so xdebug.remote_enable=1 xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.remote_autostart=1 我做错了什么?

在PSQLException上运行Grails应用程序失败:此ResultSet被closures

我试图在terminal(当然,在Pycharm)中运行本地Grails应用程序,它失败了: [WARN] 2017-11-28 13:16:26,836 (springframework.jdbc.datasource.LazyConnectionDataSourceProxy:warn:189) | Could not retrieve default auto-commit and transaction isolation settings org.postgresql.util.PSQLException: This ResultSet is closed. at org.postgresql.jdbc2.AbstractJdbc2ResultSet.checkClosed(AbstractJdbc2ResultSet.java:2852) at org.postgresql.jdbc2.AbstractJdbc2ResultSet.setFetchSize(AbstractJdbc2ResultSet.java:1875) at org.postgresql.jdbc4.Jdbc4Statement.createResultSet(Jdbc4Statement.java:37) at org.postgresql.jdbc2.AbstractJdbc2Statement$StatementResultHandler.handleResultRows(AbstractJdbc2Statement.java:219) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1816) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:559) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:403) at org.postgresql.jdbc2.AbstractJdbc2Connection.execSQLUpdate(AbstractJdbc2Connection.java:376) at org.postgresql.jdbc2.AbstractJdbc2Connection.getTransactionIsolation(AbstractJdbc2Connection.java:898) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:733) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:233) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1214) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:676) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:455) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:90) at […]

使用Intellj IDEA进行Tomcat远程部署

我正在尝试将我的应用程序部署到Docker容器中的Tomcat服务器上。 我正在使用Intellj IDEA,并且使用了以下工具: – configuration了JMX的tomcat远程连接器,以及我的电脑和容器之间的共享文件夹。 但我有一个大问题,位于我的应用程序的META-INF中的context.xml没有部署在服务器上,虽然我有copyXML和deployXML Intellj Idea允许我在添加docBase应答器的情况下复制我的上下文版本,但仅在我的应用程序中。 我如何可以让我的tomcat服务器复制或部署我的context.xml,我有我的数据源定义? 提前致谢。

无法运行使用IntelliJ插件的docker卸载脚本

环境 : 我正在使用IntelliJ 14将Docker容器部署到本地计算机上的CoreOS(使用Vagrant和VirtualBox创build的虚拟机)中。 设置 : 我的Dockerfile应该运行一个安装脚本: ADD setup.sh /tmp/setup.sh RUN chmod +x /tmp/setup.sh RUN /tmp/setup.sh Docker部署使用IntelliJ : 运行Docker部署(使用IntelliJ)时,它生成一个图像,创build一个容器,但没有运行我的脚本,出现以下错误: Step 5 : RUN /tmp/setup.sh —> Running in cb36ed95ad50 [91m/bin/sh: 1: [0m [91m/tmp/setup.sh: not found[0m [91m [0m Error: The command '/bin/sh -c /tmp/setup.sh' returned a non-zero code: 127 Failed to deploy 'Deployment: Dockerfile: Dockerfile': The command […]

Docker中的应用程序服务器 – 使用IntelliJ进行战争部署

亲爱的程序员, 我正在考虑设置我的Docker容器的开发,因为我目前正在使用Windows,现在我的设置如下: 一个包含一个jboss的docker镜像,它已经启动并且正在运行 在我的windows文件系统中检出一个hg repo,导入到IntelliJ中 映射到泊坞窗镜像中的部署文件夹的共享文件夹 每当我想部署我的战争,我会让IntelliJ构build的产品作为爆炸战争输出目录$ THE_SHARED_FODLER / mywar.war。 然后,我将用mywar.war.deploy触摸相同的回购文件。 由于这是共享的jboss泊坞窗图像的部署文件夹,发射的Jboss现在部署我的战争。 然而,因为所有的IntelliJ知道我已经构build了一个文件系统的工件,所以如果我以普通的方式部署这场战争,我不会得到任何好的支持(例如,拥有本地jboss和一个部署爆炸神器的jboss-run-configuration)。 前端的东西(html / css)总是可以用grunt或者类似的方式来解决,但是对于jar-libs来说,我现在提出的最好的解决scheme是: 使用maven重buildjar并将其复制到$ THE_SHARED_FOLDER / mywar.war / web-inf / lib / 触摸文件mywar.war.redeploy 但是,这会使代码更改的周转时间大约为30秒。这里提出了一个相当悬而未决的问题:在泊坞窗映像中运行的应用程序服务器的发展方向是什么? 今天怎么样? 你有没有尝试类似的东西,并决定docker集装箱是不是这样的路? 任何关于这个问题的意见都非常欢迎:-) Brgrgs stevie电视