The server of the chat platform called JChad: https://github.com/Randware/JChad
455
This is the containerized Server Software of JChad
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
| Flag | Description |
|---|---|
-it | This makes the container interactive and allows the use of the JChad Command-line |
-d | This detaches the container and runs it in the background |
-p | This maps the container port to the host port (-p <hostport>:<containerport>) |
--name | This assigns a name to the container. |
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
A: To access the JChad command-line, enter the following command on your host machine:
docker attach <docker_name>
A: Yes, JChad is open-source. You can find the source code at:
https://github.com/Randware/JChad
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.
Content type
Image
Digest
sha256:43c0ff7d4…
Size
580.8 MB
Last updated
about 2 years ago
docker pull randware/jchad