-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from CppComet/alfa
4.0
- Loading branch information
Showing
78 changed files
with
6,934 additions
and
6,220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM debian:9 | ||
MAINTAINER [email protected] | ||
|
||
|
||
RUN apt-get update && apt-get install --assume-yes cmake make cpp gcc libssl-dev g++ pkg-config libmariadbclient-dev-compat mysql-client flex mailutils uuid-dev git wget | ||
RUN git clone https://github.com/CppComet/comet-server && cd comet-server && cmake . && make && make install && mkdir /var/log/cppcomet | ||
RUN apt-get remove -y cmake make flex git cpp gcc g++ && apt-get clean | ||
|
||
EXPOSE 8087 | ||
EXPOSE 3307 | ||
EXPOSE 3311 | ||
|
||
CMD ["/usr/bin/cppcomet"] | ||
|
||
# You need put comet.ini file in to /etc/comet-server/comet.ini with configuration for coocomet | ||
# Build docker with command | ||
# docker build --tag cppcomet . | ||
# Start docker with command | ||
# docker run -v /var/log/cppcomet:/var/log/cppcomet -v /etc/comet-server/comet.ini:/etc/comet-server/comet.ini -p=8088:80 -p=3305:3306 -p=3316:3316 cppcomet:latest | ||
|
||
|
||
|
||
# stop all containers: | ||
# docker kill $(docker ps -q) | ||
|
||
# remove all containers | ||
# docker rm $(docker ps -a -q) | ||
|
||
# remove all docker images | ||
# docker rmi $(docker images -q) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
FROM debian:9 | ||
MAINTAINER [email protected] | ||
|
||
|
||
RUN apt-get update && apt-get install --assume-yes htop nano mc cmake make cpp gcc libssl-dev g++ pkg-config libmariadbclient-dev-compat mysql-client flex mailutils uuid-dev git wget checkinstall | ||
RUN apt-get install -y build-essential libssl-dev curl | ||
|
||
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - | ||
RUN apt-get install -y nodejs valgrind | ||
|
||
RUN npm install websockets mysql | ||
|
||
EXPOSE 8087 | ||
EXPOSE 3307 | ||
EXPOSE 3311 | ||
|
||
# RUN history -s "rm -rf /comet/ && cp -R /cppcomet/ /comet && cd /comet/ && rm -rf /comet/dependencies/jwt-cpp/CMakeCache.txt && rm -rf /comet/CMakeCache.txt && cmake . && make" | ||
|
||
CMD ["/bin/bash"] | ||
|
||
# This file used for building .deb package | ||
# Build docker with command | ||
# docker build --tag debian-dev -f ./Dockerfile-dev . | ||
|
||
|
||
# Start docker with command | ||
# docker run -v $(pwd):/cppcomet -p=8087:8087 -p=3305:3305 -p=3316:3316 -it debian-dev:latest bash | ||
|
||
|
||
|
||
# stop all containers: | ||
# docker kill $(docker ps -q) | ||
|
||
# remove all containers | ||
# docker rm $(docker ps -a -q) | ||
|
||
# remove all docker images | ||
# docker rmi $(docker images -q) |
Oops, something went wrong.