Public Repository

Last pushed: a year ago
Short Description
Short description is empty for this repo.
Full Description

Full description is empty for this repo.

Docker Pull Command
Owner
kevinjiang

Comments (2)
kevinjiang
a year ago

sudo docker run -v /fm-dev/fireData:/var/lib/openfire --net=host kevinjiang/openfire:4.0.2

kevinjiang
a year ago

FROM
FROM official/ubuntu:14.04
MAINTAINER jiangxingkai@

ENV OPENFIRE_VERSION=4.0.2 \
OPENFIRE_USER=openfire \
OPENFIRE_DATA_DIR=/var/lib/openfire \
OPENFIRE_LOG_DIR=/var/log/openfire

RUN \
echo "deb http://ftp.debian.org/debian testing main" >> /etc/apt/sources.list \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install --force-yes -y openjdk-7-jre \
&& DEBIANFRONTEND=noninteractive apt-get install --force-yes -y openjdk-8-jre \
&& wget "http://download.igniterealtime.org/openfire/openfire
${OPENFIRE_VERSION}all.deb" -O /tmp/openfire${OPENFIRE_VERSION}all.deb \
&& dpkg -i /tmp/openfire
${OPENFIRE_VERSION}all.deb \
&& mv /var/lib/openfire/plugins/admin /usr/share/openfire/plugin-admin \
&& rm -rf openfire
${OPENFIRE_VERSION}_all.deb \
&& rm -rf /var/lib/apt/lists/*

COPY entrypoint.sh /sbin/entrypoint.sh
RUN chmod 755 /sbin/entrypoint.sh

EXPOSE 3478/tcp 3479/tcp 5222/tcp 5223/tcp 5229/tcp 7070/tcp 7443/tcp 7777/tcp 9090/tcp 9091/tcp
VOLUME ["${OPENFIRE_DATA_DIR}"]
ENTRYPOINT ["/sbin/entrypoint.sh"]