mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-27 07:05:41 +03:00
70 lines
2.5 KiB
Docker
70 lines
2.5 KiB
Docker
|
FROM epicmorg/php:php7.2
|
||
|
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||
|
|
||
|
##################################################################
|
||
|
# installing java11
|
||
|
##################################################################
|
||
|
RUN wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add - && \
|
||
|
echo 'deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ buster main' > /etc/apt/sources.list.d/adoptopenjdk-official.list && \
|
||
|
apt-get update && \
|
||
|
apt-get autoremove -y && \
|
||
|
apt-get install -y --allow-unauthenticated adoptopenjdk-11-hotspot && \
|
||
|
mkdir /usr/lib/jvm/adoptopenjdk-11-hotspot-amd64/jre && \
|
||
|
ln -s /usr/lib/jvm/adoptopenjdk-11-hotspot-amd64/bin/ /usr/lib/jvm/adoptopenjdk-11-hotspot-amd64/jre/bin && \
|
||
|
ln -s /usr/lib/jvm/adoptopenjdk-11-hotspot-amd64/lib/ /usr/lib/jvm/adoptopenjdk-11-hotspot-amd64/jre/lib
|
||
|
|
||
|
##################################################################
|
||
|
# teamcity minimal agent
|
||
|
##################################################################
|
||
|
LABEL dockerImage.teamcity.version="latest" \
|
||
|
dockerImage.teamcity.buildNumber="latest"
|
||
|
|
||
|
VOLUME /data/teamcity_agent/conf
|
||
|
|
||
|
ENV CONFIG_FILE=/data/teamcity_agent/conf/buildAgent.properties
|
||
|
ENV LANG=C.UTF-8
|
||
|
ENV GIT_SSH_VARIANT=ssh
|
||
|
|
||
|
COPY run-agent.sh /run-agent.sh
|
||
|
RUN chmod +x /run-agent.sh && \
|
||
|
sync
|
||
|
|
||
|
COPY run-services.sh /run-services.sh
|
||
|
RUN chmod +x /run-services.sh && \
|
||
|
sync
|
||
|
|
||
|
ADD https://teamcity.jetbrains.com/update/buildAgent.zip /buildAgent.zip
|
||
|
RUN unzip -q /buildAgent.zip -d /opt/buildagent && \
|
||
|
mv /opt/buildagent/conf /opt/buildagent/conf_dist && \
|
||
|
rm -rfv /buildAgent.zip
|
||
|
|
||
|
RUN useradd -m buildagent && \
|
||
|
chmod +x /opt/buildagent/bin/*.sh && \
|
||
|
chmod +x /run-agent.sh /run-services.sh && sync
|
||
|
|
||
|
##################################################################
|
||
|
# php
|
||
|
##################################################################
|
||
|
RUN php -m && \
|
||
|
php -v
|
||
|
|
||
|
|
||
|
##################################################################
|
||
|
# cleaninig up
|
||
|
##################################################################
|
||
|
RUN apt clean -y && \
|
||
|
apt-get clean all && \
|
||
|
apt autoclean -y && \
|
||
|
rm -rfv /var/lib/apt/lists/* && \
|
||
|
rm -rfv /var/cache/apt/archives/*.deb && \
|
||
|
rm -rfv /tmp/deb/* && \
|
||
|
rm -rfv /tmp/composer-setup.php && \
|
||
|
rm -rfv /tmp/amxx_base_latest.tar.gz && \
|
||
|
rm -rfv /tmp/atlassian-plugin-sdk.deb && \
|
||
|
rm -rfv /tmp/addons
|
||
|
|
||
|
CMD ["/run-services.sh"]
|
||
|
|
||
|
EXPOSE 9090
|