mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-26 06:35:40 +03:00
80 lines
2.8 KiB
Docker
80 lines
2.8 KiB
Docker
FROM epicmorg/debian:bullseye
|
|
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
##################################################################
|
|
# perforce default envs
|
|
##################################################################
|
|
ENV P4_VERSION=r16.2
|
|
ENV P4_CDN_URL=https://www.perforce.com/downloads/perforce/${P4_VERSION}/bin.linux26x86_64
|
|
ENV P4_DOWNLOAD_URL=${P4_CDN_URL}/p4
|
|
ENV P4BROKER_DOWNLOAD_URL=${P4_CDN_URL}/p4broker
|
|
ENV P4D_DOWNLOAD_URL=${P4_CDN_URL}/p4d
|
|
ENV P4FTPD_DOWNLOAD_URL=${P4_CDN_URL}/p4ftpd
|
|
ENV P4P_DOWNLOAD_URL=${P4_CDN_URL}/p4p
|
|
ENV PERFMERGE_DOWNLOAD_URL=${P4_CDN_URL}/perfmerge
|
|
ENV PERFSPLIT_DOWNLOAD_URL=${P4_CDN_URL}/perfsplit
|
|
|
|
ENV P4DEBUG=
|
|
ENV P4PROOT=
|
|
ENV P4PCACHE=/perforce/cache
|
|
ENV P4LOG=/perforce/logs/p4p.log
|
|
ENV P4TARGET=
|
|
ENV P4PORT=1666
|
|
ENV P4ARGS=
|
|
|
|
ENV P4_BIN=/usr/bin/p4
|
|
ENV P4BROKER_BIN=/usr/bin/p4broker
|
|
ENV P4D_BIN=/usr/bin/p4d
|
|
ENV P4FTPD_BIN=/usr/bin/p4ftpd
|
|
ENV P4P_BIN=/usr/bin/p4p
|
|
ENV PERFMERGE_BIN=/usr/bin/perfmerge
|
|
ENV PERFSPLIT_BIN=/usr/bin/perfsplit
|
|
|
|
##################################################################
|
|
# Install perforce binaries
|
|
##################################################################
|
|
RUN rm -rfv \
|
|
${P4_BIN} \
|
|
${P4BROKER_BIN} \
|
|
${P4D_BIN} \
|
|
${P4FTPD_BIN} \
|
|
${P4P_BIN} \
|
|
${PERFMERGE_BIN} \
|
|
${PERFSPLIT_BIN}
|
|
|
|
RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue -P /usr/bin \
|
|
${P4_DOWNLOAD_URL} \
|
|
${P4BROKER_DOWNLOAD_URL} \
|
|
${P4D_DOWNLOAD_URL} \
|
|
${P4FTPD_DOWNLOAD_URL} \
|
|
${P4P_DOWNLOAD_URL} \
|
|
${PERFMERGE_DOWNLOAD_URL} \
|
|
${PERFSPLIT_DOWNLOAD_URL}
|
|
|
|
RUN chmod +x \
|
|
${P4_BIN} \
|
|
${P4BROKER_BIN} \
|
|
${P4D_BIN} \
|
|
${P4FTPD_BIN} \
|
|
${P4P_BIN} \
|
|
${PERFMERGE_BIN} \
|
|
${PERFSPLIT_BIN}
|
|
|
|
RUN echo "##################################################################" && \
|
|
${P4_BIN} -V && \
|
|
echo "##################################################################" && \
|
|
${P4BROKER_BIN} -V && \
|
|
echo "##################################################################" && \
|
|
${P4D_BIN} -V && \
|
|
echo "##################################################################" && \
|
|
${P4FTPD_BIN} -V && \
|
|
echo "##################################################################" && \
|
|
${P4P_BIN} -V && \
|
|
echo "##################################################################" && \
|
|
${PERFMERGE_BIN} -V && \
|
|
echo "##################################################################" && \
|
|
${PERFSPLIT_BIN} -V && \
|
|
echo "##################################################################"
|
|
|
|
WORKDIR /perforce |