https://qiita.com/drafts/9e01d9aaaa733c96b5bf
- newrelicをインストールすると共に、Dockerのシングル構成を構築します
- volume optionを使用しないので、Docker内でのみアプリケーションが完結します
─docker-tomcat
│ .gitignore
│ Dockerfile
│ Dockerrun.aws.json
│
└─.ebextensions
98newrelic.config
- newrelicをインストールすると共に、Dockerのシングル構成を構築します
- volume optionを使用してwar形式のアプリも併せてdeployする、Dockerコンポーネントです
- webapps配下に任意のwarファイルを置くことで、deployされます
- volume optionを指定しているので、Docker内から参照しているのはホストOS側の
- /var/app/current 配下に展開されたwebappsとなるので、Docker側のwebappsは消えます
- サンプルとして、tomcatのdocsを一部参照できるようにされています
─docker-tomcat-volume
│ .gitignore
│ Dockerfile
│ Dockerrun.aws.json
│
├─.ebextensions
│ 98newrelic.config
│
└─webapps
├─docs
│ │ index.html
│ ├─WEB-INF
│ │ web.xml
│ └─websocketapi
│ index.html
│
└─ROOT
│
└─WEB-INF
web.xml
- newrelic When it use newrelic extension, please replace NEWRELIC_LICENSE. refer: https://newrelic.degica.com/docs/infrastructure/new-relic-infrastructure/installation/install-infrastructure-agent-aws-elastic-beanstalk
- こちらの記事を元に設定を作成しております
- Dockerfile tomcat9のDockerfileは、https://hub.docker.com/_/tomcat から取得しています