Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery.common.cpp
/
Microservice
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
abae72be
authored
Jun 02, 2016
by
amir
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add docker files
parent
3c2d7aa6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
0 deletions
.gitignore
Dockerfile
docker-compose.yml
prepare-docker.sh
.gitignore
View file @
abae72be
...
@@ -33,6 +33,7 @@ nbproject
...
@@ -33,6 +33,7 @@ nbproject
build
build
bin
bin
lib
lib
tmp
CMakeFiles
CMakeFiles
CMakeCache.txt
CMakeCache.txt
cmake_install.cmake
cmake_install.cmake
...
...
Dockerfile
0 → 100644
View file @
abae72be
#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"]
docker-compose.yml
0 → 100644
View file @
abae72be
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
prepare-docker.sh
0 → 100755
View file @
abae72be
#!/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/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment