Coder Social home page Coder Social logo

gizmotronic / docker-openfire Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sameersbn/docker-openfire

25.0 25.0 31.0 114 KB

Dockerfile to create a Docker container image for Openfire.

License: MIT License

Makefile 3.60% Shell 69.79% Dockerfile 26.62%

docker-openfire's People

Contributors

gizmotronic avatar lordfpl avatar miguelwill avatar paimpozhil avatar solidnerd avatar srplexus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

docker-openfire's Issues

Sameersbn/Openfire

Hi,
I'm new to docker implementations.
However, I've been using Sameer's implementation on my Synology Container. I see that your's is much more updated. Is there a way to replace Sameer's docker image with all it's settings to yours?

Sorry if this is so basic. But, as I mentioned, I'm very new to images.
Thanks,
Gus

Can I add a custom jar file to the lib directory?

I'm talking about: /usr/share/openfire/lib.

The reason I want to make volume here is because I'm using custom auth. To change the value of provider.auth.className property, I need to assign a lib file to this directory.

When I do this by adding volume myself:

openfire_1 | Error: Unable to access jarfile /usr/share/openfire/lib/startup.jar.

Method I followed:

  • Add ENV variable in Dockerfile: OPENFIRE_LIB_DIR=/usr/share/openfire/lib
  • Add VOLUME in Dockerfile: VOLUME ["${OPENFIRE_LIB_DIR}"]
  • Add initialize_lib_dir in entrypoint.sh:
+initialize_lib_dir() {
+  echo "Initializing ${OPENFIRE_LIB_DIR}..."
+
+  mkdir -p ${OPENFIRE_LIB_DIR}
+  chmod -R 0770 ${OPENFIRE_LIB_DIR}
+  chown -R ${OPENFIRE_USER}:${OPENFIRE_USER} ${OPENFIRE_LIB_DIR}
+}
+
 initialize_log_dir() {
   echo "Initializing ${OPENFIRE_LOG_DIR}..."
   mkdir -p ${OPENFIRE_LOG_DIR}
@@ -59,6 +67,7 @@ fi

 rewire_openfire
 initialize_data_dir
+initialize_lib_dir
 initialize_log_dir

And then I defined a volume with docker-compose and created this directory on my computer.

How to upgrade openfire version 4.4.0

Hi, I couldn't upgrade it on my own computer. The error I received is as follows.

$ make
... (bla bla)
Downloading openfire_4.4.0_all.deb ...
2019-07-05 14:12:36 URL:https://github-production-release-asset-2e65be.s3.amazonaws.com/18511687/6032f680-998a-11e9-9808-941a326f287d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190705%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190705T141134Z&X-Amz-Expires=300&X-Amz-Signature=7a71ae6a0c6a533910912c67eb8c546f72926857066c082f071a93e950f64116&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dopenfire_4.4.0_all.deb&response-content-type=application%2Foctet-stream [37074646/37074646] -> "/tmp/openfire_4.4.0_all.deb" [1]
Selecting previously unselected package openfire.
dpkg: regarding /tmp/openfire_4.4.0_all.deb containing openfire, pre-dependency problem:
 openfire pre-depends on default-jre-headless (>= 1.8) | java8-runtime-headless | java8-runtime | java9-runtime-headless | java9-runtime
  default-jre-headless is not installed.
  java8-runtime-headless is not installed.
  java8-runtime is not installed.
  java9-runtime-headless is not installed.
  java9-runtime is not installed.

dpkg: error processing archive /tmp/openfire_4.4.0_all.deb (--install):
 pre-dependency problem - not installing openfire
Errors were encountered while processing:
 /tmp/openfire_4.4.0_all.deb
The command '/bin/sh -c apt-get update  && DEBIAN_FRONTEND=noninteractive apt-get install -y sudo wget  && echo "Downloading openfire_${OPENFIRE_VERSION}_all.deb ..."  && wget --no-verbose "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/*' returned a non-zero code: 1
make: *** [build] Error 1

All log file

Error response manifest unknown

Hello, when I pull openfire:4.8.0 and try to start the container, I get this error: Error response from daemon: manifest for nasqueron/openfire:4.8.0 not found: manifest unknown: manifest unknown

Thank you!

No logs in OPENFIRE_LOG_DIR and error "No Log4j 2 configuration file found"

We are currently trying to debug a login/connection issue of an automated XMPP client (Jenkins) with our dockerized Openfire server running with your image "gizmotronic/openfire" and default folders.

The problem is there aren't any logs apart from docker [CONTAINER_NAME] logs, neither in the admin console
no_logs
nor under /usr/share/openfire/logs or under /var/log/openfire/

And the docker logs of the instance contain the following error
ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property 'log4j2.debug' to show Log4j 2 internal initialization logging. See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2

Can this be a result of the function rewire_openfire() in entrypoint.sh?
Also, there are actually 2 log4j2.xml in the container
/usr/share/openfire/lib/log4j2.xml which symlinks to /etc/openfire/log4j2.xml
/var/lib/openfire/conf/log4j2.xml

Which config do we need to change to get the logs in the admin console?
Are there any other changes we can make to get more than the error-logs?
Which log4j2.xml is the correct one to change if we need more details?
Any help is really appreciated!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.