gizmotronic / docker-openfire Goto Github PK
View Code? Open in Web Editor NEWThis project forked from sameersbn/docker-openfire
Dockerfile to create a Docker container image for Openfire.
License: MIT License
This project forked from sameersbn/docker-openfire
Dockerfile to create a Docker container image for Openfire.
License: MIT License
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
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:
OPENFIRE_LIB_DIR=/usr/share/openfire/lib
VOLUME ["${OPENFIRE_LIB_DIR}"]
+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.
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
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!
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
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!
Hello
How can i disable internet access and set update off?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.