randware/jchad

By randware

Updated about 2 years ago

The server of the chat platform called JChad: https://github.com/Randware/JChad

Image
Message queues
1

455

randware/jchad repository overview

JChad Server Software

This is the containerized Server Software of JChad

Installation

Install the Docker Image (optional)

  docker pull randware/jchad:latest

Run the Docker Container

  sudo docker run -it -d -p 13814:13814 --name JChad-server randware/jchad
Docker run arguments
FlagDescription
-itThis makes the container interactive and allows the use of the JChad Command-line
-dThis detaches the container and runs it in the background
-pThis maps the container port to the host port (-p <hostport>:<containerport>)
--nameThis assigns a name to the container.

Dockerfile source-code

This is the source-code that was used to built the image.
If you have any improvements for the Dockerfile "code" then share it with us on the JChad issue page!

FROM eclipse-temurin:21
WORKDIR /usr/src/
RUN apt-get update && apt-get install -y git maven nano
RUN git clone https://github.com/Randware/JChad.git
WORKDIR /usr/src/JChad
RUN rm -rf ./net/jchad/client
RUN mvn install -P server
WORKDIR /usr/src
RUN cp JChad/target/JChad-server.jar ./
RUN rm -rf JChad
CMD ["java", "-jar", "JChad-server.jar", "-cl"]
EXPOSE 13814

FAQ

Q: How do I access the JChad Command-line when my container is detached?

A: To access the JChad command-line, enter the following command on your host machine:

docker attach <docker_name>
Q: Is the source-code of JChad publicly available?

A: Yes, JChad is open-source. You can find the source code at:
https://github.com/Randware/JChad

Q: I get this error Exception in thread "main" org.jline.reader.EndOfFileException when running the container?

A: This issue likely occurs due to missing arguments when running the container. Make sure to run your Docker container with the -it flag. For more information, refer to the Docker run arguments section

A: If you encounter another error when trying to run the container or during runtime, please visit our Issues page and open an issue.

Authors

Tag summary

Content type

Image

Digest

sha256:43c0ff7d4

Size

580.8 MB

Last updated

about 2 years ago

docker pull randware/jchad