Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
obj2rgbd
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
obj2rgbd
Commits
870ce549
Commit
870ce549
authored
Mar 02, 2020
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trying docker
parent
a2a8a4e0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
0 deletions
+57
-0
Dockerfile
docker/Dockerfile
+46
-0
build.sh
docker/build.sh
+2
-0
init_fake_display.sh
docker/init_fake_display.sh
+3
-0
run.sh
docker/run.sh
+6
-0
No files found.
docker/Dockerfile
0 → 100644
View file @
870ce549
FROM
python:3.7
RUN
apt-get update
&&
\
apt-get
install
-y
\
curl
\
bzip2
\
libfreetype6
\
libgl1-mesa-dev
\
libglu1-mesa
\
libxi6
\
libxrender1
\
xvfb
&&
\
apt-get
-y
autoremove
&&
\
rm
-rf
/var/lib/apt/lists/
*
RUN
pip
install
--no-cache-dir
pip
--upgrade
RUN
pip
install
--no-cache-dir
numpy
\
scipy
\
pandas
\
matplotlib
\
pillow
\
OpenEXR
ENV
BLENDER_URL https://download.blender.org/release/Blender2.80/blender-2.80-linux-glibc217-x86_64.tar.bz2
RUN
mkdir
/usr/local/blender
&&
\
curl
-SL
$BLENDER_URL
-o
blender.tar.bz2
&&
\
tar
-jxvf
blender.tar.bz2
-C
/usr/local/blender
--strip-components
=
1
&&
\
rm
blender.tar.bz2
&&
\
ln
-sf
/usr/local/blender/blender /usr/local/bin
RUN
mkdir
git
&&
cd
git
&&
\
git clone https://git.elphel.com/Elphel/obj2rgbd.git
ENV
DISPLAY 1:
#COPY init_fake_display.sh /usr/local/bin/init_fake_display.sh
#CMD ['/bin/bash', '/usr/local/bin/init_fake_display.sh']
ENTRYPOINT
bash -c "Xvfb :1 -screen 0 1920x1080x24+32 -fbdir /var/tmp &" && bash
#time blender -b -noaudio -P blender_generate_image_and_depth.py -- input/1527256815_550165_v01/1527256815_550165.obj
#CMD Xvfb :1 -screen 0 1920x1080x24+32 -fbdir /var/tmp
#ENTRYPOINT export DISPLAY="TEST"
docker/build.sh
0 → 100755
View file @
870ce549
#!/bin/bash
docker build
-t
obj2rgbd:latest
.
docker/init_fake_display.sh
0 → 100755
View file @
870ce549
#!/bin/bash
touch
/testfile.txt
Xvfb :1
-screen
0 1920x1080x24+32
-fbdir
/var/tmp &
docker/run.sh
0 → 100755
View file @
870ce549
#!/bin/bash
docker run
-it
\
--name
obj2rgbd
\
-v
/home/oleg/GIT/obj2rgbd/:/app
\
--rm
obj2rgbd:latest
\
/bin/bash
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