Add containerization and make this bad boy work on Windows and MacOS
This commit is contained in:
+26
-14
@@ -1,19 +1,31 @@
|
||||
# os
|
||||
FROM ubuntu:16.04
|
||||
RUN apt-get -y update && apt-get install -y git vim libev-dev tar wget libevent-dev build-essential libnet-ifconfig-wrapper-perl cmake python-pip libjson-c-dev curl valgrind zlib1g-dev python-webpy
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get -y update && apt-get install -y git vim libev-dev tar wget libevent-dev build-essential libnet-ifconfig-wrapper-perl cmake qt5-default qt5-qmake python-pip libjson-c-dev curl valgrind zlib1g-dev python-webpy python-flup libssl-dev runit spawn-fcgi npm node-gyp nodejs libpcre3-dev
|
||||
# couchbase
|
||||
RUN cd ~ && wget http://packages.couchbase.com/releases/4.5.0/couchbase-server-enterprise_4.5.0-ubuntu14.04_amd64.deb
|
||||
RUN cd ~ && dpkg -i couchbase-server-enterprise_4.5.0-ubuntu14.04_amd64.deb
|
||||
RUN cd ~ && git clone https://github.com/couchbase/libcouchbase.git
|
||||
RUN cd ~ && cd libcouchbase && cmake . && make && make install
|
||||
RUN cd ~ && wget http://packages.couchbase.com/clients/c/libcouchbase-2.5.8_ubuntu1404_amd64.tar && tar xvf *.tar && cd libcouchbase-2.5.8_ubuntu1404_amd64/ && dpkg -i *.deb
|
||||
RUN pip install couchbase
|
||||
RUN wget http://packages.couchbase.com/releases/4.5.0/couchbase-server-enterprise_4.5.0-ubuntu14.04_amd64.deb
|
||||
RUN dpkg -i couchbase-server-enterprise_4.5.0-ubuntu14.04_amd64.deb
|
||||
RUN git clone https://github.com/couchbase/libcouchbase.git
|
||||
RUN cd libcouchbase && git checkout 2.9.0 && cmake . && make && make install && ldconfig
|
||||
# RUN wget http://packages.couchbase.com/clients/c/libcouchbase-2.5.8_ubuntu1404_amd64.tar && tar xvf *.tar && cd libcouchbase-2.5.8_ubuntu1404_amd64/ && dpkg -i *.deb
|
||||
RUN pip install couchbase==2.2.4
|
||||
# hearthmod
|
||||
RUN cd ~ && git clone https://github.com/farb3yonddriv3n/hm_database.git
|
||||
RUN cd ~ && git clone https://github.com/farb3yonddriv3n/hm_base.git
|
||||
RUN cd ~ && git clone https://github.com/farb3yonddriv3n/hm_gameserver.git
|
||||
RUN cd ~ && git clone https://github.com/farb3yonddriv3n/hm_lobbyserver.git
|
||||
RUN cd ~ && git clone https://github.com/farb3yonddriv3n/hm_ctl.git
|
||||
RUN cd ~ && git clone https://github.com/farb3yonddriv3n/hm_stud.git
|
||||
#RUN git clone https://github.com/farb3yonddriv3n/hm_database.git
|
||||
#RUN git clone https://github.com/farb3yonddriv3n/hm_base.git
|
||||
#RUN git clone https://github.com/farb3yonddriv3n/hm_gameserver.git
|
||||
#RUN git clone https://github.com/farb3yonddriv3n/hm_lobbyserver.git
|
||||
#RUN git clone https://github.com/farb3yonddriv3n/hm_ctl.git
|
||||
#RUN git clone https://github.com/farb3yonddriv3n/hm_stud.git
|
||||
# cleanup
|
||||
RUN rm -rf ~/couchbase-server-enterprise_4.5.0-ubuntu14.04_amd64.deb ~/libcouchb*
|
||||
RUN rm -rf /app/couchbase-server-enterprise_4.5.0-ubuntu14.04_amd64.deb
|
||||
|
||||
# ENTRYPOINT ["/opt/couchbase/bin/couchbase-server -- -kernel global_enable_tracing false -noinput"]
|
||||
|
||||
# Add the custom entrypoint script
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user