forked from sjoerdmulder/teamcity-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating Dockerfile to just have Teamcity
- Loading branch information
1 parent
6326c03
commit dec6a1f
Showing
2 changed files
with
9 additions
and
6 deletions.
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 |
---|---|---|
@@ -1,14 +1,17 @@ | ||
FROM sjoerdmulder/java8 | ||
|
||
# Get and install teamcity | ||
RUN curl -L https://download.jetbrains.com/teamcity/TeamCity-9.1.tar.gz | tar -xz -C /opt | ||
|
||
# Enable the correct Valve when running behind a proxy | ||
RUN sed -i -e "s/\.*<\/Host>.*$/<Valve className=\"org.apache.catalina.valves.RemoteIpValve\" protocolHeader=\"x-forwarded-proto\" \/><\/Host>/" /opt/TeamCity/conf/server.xml | ||
|
||
VOLUME /var/lib/teamcity | ||
# Expose the Teamcity port | ||
EXPOSE 8111 | ||
|
||
ENV TEAMCITY_DATA_PATH /var/lib/teamcity | ||
|
||
ADD service /etc/service | ||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
|
||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
|
||
VOLUME /var/lib/teamcity | ||
# Expose the Teamcity port | ||
EXPOSE 8111 |
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