Commit abae72be by amir

add docker files

parent 3c2d7aa6
......@@ -33,6 +33,7 @@ nbproject
build
bin
lib
tmp
CMakeFiles
CMakeCache.txt
cmake_install.cmake
......
#FROM ubuntu:14.04
FROM ubuntu-debootstrap:14.04
#COPY ./doc/install-dependencies.sh /usr/
#RUN chmod +x /usr/install-dependencies.sh
#RUN apt-get update
#RUN /usr/install-dependencies.sh
# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# setting for gcc >= 4.9.2
#RUN rm /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#COPY ./tmp/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libstdc++.so.6
# setting for shared-memory
#RUN echo kernel.shmmax=49249672960 >> /etc/sysctl.conf
#RUN echo kernel.shmall=10485760 >> /etc/sysctl.conf
# app
COPY ./tmp/* /usr/lib/x86_64-linux-gnu/
COPY ./bin/test_Microservice /usr/
WORKDIR /usr
ENTRYPOINT ["./test_Microservice"]
base-cpp-microservice-test:
environment:
log4cpp.console: yes
graphite_hostport: 172.16.1.244:2015
image: 172.16.1.132:5000/ipgallery/base-cpp-microservice-test
ports:
- "50010:50010"
privileged: true
\ No newline at end of file
#!/bin/sh
echo "prepare..."
rm -rf ./tmp
mkdir tmp
echo "copy..."
#cp `ldd ./lib/libMicroservice.so | grep -v nux-vdso | awk '{print $3}'` ./tmp/
cp `ldd ./bin/test_Microservice | grep -v nux-vdso | awk '{print $3}'` ./tmp/
#cp ../3party/lib/*.so ./tmp/
#cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./tmp/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment