-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(apm): add apm to do analysis on docker build phase
Closes #95
- Loading branch information
1 parent
a2683fa
commit ec1b101
Showing
4 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM davinkevin/podcast-server:dev | ||
MAINTAINER Kevin DAVIN <https://github.com/davinkevin/Podcast-Server/issues> | ||
|
||
# Exposed port for 4000 for the APM part | ||
EXPOSE 4000 | ||
|
||
WORKDIR /opt | ||
RUN mkdir -p /opt/glowroot && ls -al | ||
COPY glowroot /opt/glowroot | ||
|
||
WORKDIR /opt/podcast-server | ||
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom", "-javaagent:/opt/glowroot/glowroot.jar","-jar","/opt/podcast-server/app.jar"] | ||
|
||
# RUN with docker like that : | ||
# $ docker run -it -p 8080:8080 davinkevin/podcast-server:v1.0.0 | ||
|
||
# To configure it with external application.(properties|yaml), you can mount the file like this : | ||
# | ||
# $ docker run -it -v /path/to/application.yml:/opt/podcast-server/application.yml -p 8080:8080 davinkevin/podcast-server:dev-with-apm | ||
# | ||
# /!\ You can't override values defined as ENV in this Dockerfile through the application.yml. If you still want to, you have | ||
# to use the `-e` flag of docker : -e podcastserver.backup.location='/opt/podcast-server/backup/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"web": { | ||
"port": 4000, | ||
"bindAddress": "0.0.0.0", | ||
"sessionTimeoutMinutes": 30 | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters