Commit b1d26866 by amir

for docker

parent db128b5a
Showing with 102 additions and 0 deletions
#!/bin/sh
if [ -z "$1" ] || [ -z "$2" ]
then
echo "Usage $0 [path/to/bin] [docker-image]"
exit
fi
echo "prepare..."
rm -rf ./tmp
mkdir tmp
echo "copy dependencies from: " $1
#cp `ldd ./lib/libMicroservice.so | grep -v nux-vdso | awk '{print $3}'` ./tmp/
cp `ldd $1 | grep -v nux-vdso | awk '{print $3}'` ./tmp/
echo "build image: " $2
docker build -t $2 .
#cp ../3party/lib/*.so ./tmp/
#cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./tmp/
[
{
"directory": "/home/amir/git/ipgallery/common/cpp/Microservice",
"command": "/usr/bin/g++ -DMicroservice_EXPORTS -std=c++11 -m64 -g -O3 -DNDEBUG -fPIC -I/home/amir/git/ipgallery/common/cpp/Microservice/src -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/rapidjson-0.11/include/rapidjson -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/cppmetrics-0.1.1-Linux/include -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/mongoose -isystem /usr/include/hiredis -o CMakeFiles/Microservice.dir/src/impl/clients/MSICommandClientHttpImpl.cpp.o -c /home/amir/git/ipgallery/common/cpp/Microservice/src/impl/clients/MSICommandClientHttpImpl.cpp",
"file": "/home/amir/git/ipgallery/common/cpp/Microservice/src/impl/clients/MSICommandClientHttpImpl.cpp"
},
{
"directory": "/home/amir/git/ipgallery/common/cpp/Microservice",
"command": "/usr/bin/g++ -DMicroservice_EXPORTS -std=c++11 -m64 -g -O3 -DNDEBUG -fPIC -I/home/amir/git/ipgallery/common/cpp/Microservice/src -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/rapidjson-0.11/include/rapidjson -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/cppmetrics-0.1.1-Linux/include -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/mongoose -isystem /usr/include/hiredis -o CMakeFiles/Microservice.dir/src/impl/MSIMetricsFactoryDropwisardImpl.cpp.o -c /home/amir/git/ipgallery/common/cpp/Microservice/src/impl/MSIMetricsFactoryDropwisardImpl.cpp",
"file": "/home/amir/git/ipgallery/common/cpp/Microservice/src/impl/MSIMetricsFactoryDropwisardImpl.cpp"
},
{
"directory": "/home/amir/git/ipgallery/common/cpp/Microservice",
"command": "/usr/bin/g++ -DMicroservice_EXPORTS -std=c++11 -m64 -g -O3 -DNDEBUG -fPIC -I/home/amir/git/ipgallery/common/cpp/Microservice/src -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/rapidjson-0.11/include/rapidjson -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/cppmetrics-0.1.1-Linux/include -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/mongoose -isystem /usr/include/hiredis -o CMakeFiles/Microservice.dir/src/impl/Microservice_IConfigurationConfigPropImpl.cpp.o -c /home/amir/git/ipgallery/common/cpp/Microservice/src/impl/Microservice_IConfigurationConfigPropImpl.cpp",
"file": "/home/amir/git/ipgallery/common/cpp/Microservice/src/impl/Microservice_IConfigurationConfigPropImpl.cpp"
},
{
"directory": "/home/amir/git/ipgallery/common/cpp/Microservice",
"command": "/usr/bin/g++ -DMicroservice_EXPORTS -std=c++11 -m64 -g -O3 -DNDEBUG -fPIC -I/home/amir/git/ipgallery/common/cpp/Microservice/src -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/rapidjson-0.11/include/rapidjson -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/cppmetrics-0.1.1-Linux/include -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/mongoose -isystem /usr/include/hiredis -o CMakeFiles/Microservice.dir/src/impl/Microservice_IResponseRestImpl.cpp.o -c /home/amir/git/ipgallery/common/cpp/Microservice/src/impl/Microservice_IResponseRestImpl.cpp",
"file": "/home/amir/git/ipgallery/common/cpp/Microservice/src/impl/Microservice_IResponseRestImpl.cpp"
},
{
"directory": "/home/amir/git/ipgallery/common/cpp/Microservice",
"command": "/usr/bin/g++ -DMicroservice_EXPORTS -std=c++11 -m64 -g -O3 -DNDEBUG -fPIC -I/home/amir/git/ipgallery/common/cpp/Microservice/src -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/rapidjson-0.11/include/rapidjson -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/cppmetrics-0.1.1-Linux/include -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/mongoose -isystem /usr/include/hiredis -o CMakeFiles/Microservice.dir/src/impl/Microservice_ICacheClientRedisImpl.cpp.o -c /home/amir/git/ipgallery/common/cpp/Microservice/src/impl/Microservice_ICacheClientRedisImpl.cpp",
"file": "/home/amir/git/ipgallery/common/cpp/Microservice/src/impl/Microservice_ICacheClientRedisImpl.cpp"
},
{
"directory": "/home/amir/git/ipgallery/common/cpp/Microservice",
"command": "/usr/bin/g++ -DMicroservice_EXPORTS -std=c++11 -m64 -g -O3 -DNDEBUG -fPIC -I/home/amir/git/ipgallery/common/cpp/Microservice/src -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/rapidjson-0.11/include/rapidjson -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/cppmetrics-0.1.1-Linux/include -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/mongoose -isystem /usr/include/hiredis -o CMakeFiles/Microservice.dir/src/impl/servers/Microservice_IRestServerMongooseImpl.cpp.o -c /home/amir/git/ipgallery/common/cpp/Microservice/src/impl/servers/Microservice_IRestServerMongooseImpl.cpp",
"file": "/home/amir/git/ipgallery/common/cpp/Microservice/src/impl/servers/Microservice_IRestServerMongooseImpl.cpp"
},
{
"directory": "/home/amir/git/ipgallery/common/cpp/Microservice",
"command": "/usr/bin/g++ -DMicroservice_EXPORTS -std=c++11 -m64 -g -O3 -DNDEBUG -fPIC -I/home/amir/git/ipgallery/common/cpp/Microservice/src -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/rapidjson-0.11/include/rapidjson -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/cppmetrics-0.1.1-Linux/include -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/mongoose -isystem /usr/include/hiredis -o CMakeFiles/Microservice.dir/src/impl/Microservice_IRequestRestImpl.cpp.o -c /home/amir/git/ipgallery/common/cpp/Microservice/src/impl/Microservice_IRequestRestImpl.cpp",
"file": "/home/amir/git/ipgallery/common/cpp/Microservice/src/impl/Microservice_IRequestRestImpl.cpp"
},
{
"directory": "/home/amir/git/ipgallery/common/cpp/Microservice",
"command": "/usr/bin/g++ -DMicroservice_EXPORTS -std=c++11 -m64 -g -O3 -DNDEBUG -fPIC -I/home/amir/git/ipgallery/common/cpp/Microservice/src -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/rapidjson-0.11/include/rapidjson -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/cppmetrics-0.1.1-Linux/include -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/mongoose -isystem /usr/include/hiredis -o CMakeFiles/Microservice.dir/src/impl/MSIMetricsFactoryStdImpl.cpp.o -c /home/amir/git/ipgallery/common/cpp/Microservice/src/impl/MSIMetricsFactoryStdImpl.cpp",
"file": "/home/amir/git/ipgallery/common/cpp/Microservice/src/impl/MSIMetricsFactoryStdImpl.cpp"
},
{
"directory": "/home/amir/git/ipgallery/common/cpp/Microservice",
"command": "/usr/bin/g++ -DMicroservice_EXPORTS -std=c++11 -m64 -g -O3 -DNDEBUG -fPIC -I/home/amir/git/ipgallery/common/cpp/Microservice/src -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/rapidjson-0.11/include/rapidjson -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/cppmetrics-0.1.1-Linux/include -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/mongoose -isystem /usr/include/hiredis -o CMakeFiles/Microservice.dir/src/impl/Microservices_ILoggerLog4cppImpl.cpp.o -c /home/amir/git/ipgallery/common/cpp/Microservice/src/impl/Microservices_ILoggerLog4cppImpl.cpp",
"file": "/home/amir/git/ipgallery/common/cpp/Microservice/src/impl/Microservices_ILoggerLog4cppImpl.cpp"
},
{
"directory": "/home/amir/git/ipgallery/common/cpp/Microservice",
"command": "/usr/bin/g++ -DMicroservice_EXPORTS -std=c++11 -m64 -g -O3 -DNDEBUG -fPIC -I/home/amir/git/ipgallery/common/cpp/Microservice/src -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/rapidjson-0.11/include/rapidjson -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/cppmetrics-0.1.1-Linux/include -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/mongoose -isystem /usr/include/hiredis -o CMakeFiles/Microservice.dir/src/Microservice_App.cpp.o -c /home/amir/git/ipgallery/common/cpp/Microservice/src/Microservice_App.cpp",
"file": "/home/amir/git/ipgallery/common/cpp/Microservice/src/Microservice_App.cpp"
},
{
"directory": "/home/amir/git/ipgallery/common/cpp/Microservice",
"command": "/usr/bin/g++ -DMicroservice_EXPORTS -std=c++11 -m64 -g -O3 -DNDEBUG -fPIC -I/home/amir/git/ipgallery/common/cpp/Microservice/src -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/rapidjson-0.11/include/rapidjson -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/cppmetrics-0.1.1-Linux/include -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/mongoose -isystem /usr/include/hiredis -o CMakeFiles/Microservice.dir/src/handlers/Microservice_MonitorHandler.cpp.o -c /home/amir/git/ipgallery/common/cpp/Microservice/src/handlers/Microservice_MonitorHandler.cpp",
"file": "/home/amir/git/ipgallery/common/cpp/Microservice/src/handlers/Microservice_MonitorHandler.cpp"
},
{
"directory": "/home/amir/git/ipgallery/common/cpp/Microservice",
"command": "/usr/bin/g++ -DMicroservice_EXPORTS -std=c++11 -m64 -g -O3 -DNDEBUG -fPIC -I/home/amir/git/ipgallery/common/cpp/Microservice/src -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/rapidjson-0.11/include/rapidjson -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/cppmetrics-0.1.1-Linux/include -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/mongoose -isystem /usr/include/hiredis -o CMakeFiles/Microservice.dir/src/handlers/Microservice_RestHandler.cpp.o -c /home/amir/git/ipgallery/common/cpp/Microservice/src/handlers/Microservice_RestHandler.cpp",
"file": "/home/amir/git/ipgallery/common/cpp/Microservice/src/handlers/Microservice_RestHandler.cpp"
},
{
"directory": "/home/amir/git/ipgallery/common/cpp/Microservice",
"command": "/usr/bin/g++ -DMicroservice_EXPORTS -std=c++11 -m64 -g -O3 -DNDEBUG -fPIC -I/home/amir/git/ipgallery/common/cpp/Microservice/src -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/rapidjson-0.11/include/rapidjson -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/cppmetrics-0.1.1-Linux/include -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/mongoose -isystem /usr/include/hiredis -o CMakeFiles/Microservice.dir/src/Microservice_Client.cpp.o -c /home/amir/git/ipgallery/common/cpp/Microservice/src/Microservice_Client.cpp",
"file": "/home/amir/git/ipgallery/common/cpp/Microservice/src/Microservice_Client.cpp"
},
{
"directory": "/home/amir/git/ipgallery/common/cpp/Microservice",
"command": "/usr/bin/gcc -DMicroservice_EXPORTS -O3 -DNDEBUG -fPIC -I/home/amir/git/ipgallery/common/cpp/Microservice/src -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/rapidjson-0.11/include/rapidjson -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/cppmetrics-0.1.1-Linux/include -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/mongoose -isystem /usr/include/hiredis -o CMakeFiles/Microservice.dir/home/amir/git/ipgallery/common/cpp/3party/mongoose/mongoose.c.o -c /home/amir/git/ipgallery/common/cpp/3party/mongoose/mongoose.c",
"file": "/home/amir/git/ipgallery/common/cpp/3party/mongoose/mongoose.c"
},
{
"directory": "/home/amir/git/ipgallery/common/cpp/Microservice",
"command": "/usr/bin/g++ -std=c++11 -m64 -g -O3 -DNDEBUG -I/home/amir/git/ipgallery/common/cpp/Microservice/src -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/rapidjson-0.11/include/rapidjson -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/cppmetrics-0.1.1-Linux/include -isystem /home/amir/git/ipgallery/common/cpp/Microservice/../3party/mongoose -isystem /usr/include/hiredis -o CMakeFiles/test_Microservice.dir/test/Microservice_Test.cpp.o -c /home/amir/git/ipgallery/common/cpp/Microservice/test/Microservice_Test.cpp",
"file": "/home/amir/git/ipgallery/common/cpp/Microservice/test/Microservice_Test.cpp"
}
]
\ No newline at end of file
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