Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
beat.env.python
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
beat
beat.env.python
Commits
ccb27234
Commit
ccb27234
authored
Sep 14, 2017
by
Philip ABBET
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to beat.backend.python 1.2.2
parent
807a3966
Pipeline
#12139
passed with stage
in 13 minutes and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
Dockerfile
Dockerfile
+7
-9
environment.json
environment.json
+7
-0
No files found.
Dockerfile
View file @
ccb27234
...
@@ -43,11 +43,10 @@ RUN set -ex \
...
@@ -43,11 +43,10 @@ RUN set -ex \
&& bash Miniconda2-latest-Linux-x86_64.sh -b -p /opt/miniconda2 \
&& bash Miniconda2-latest-Linux-x86_64.sh -b -p /opt/miniconda2 \
&& conda config --add channels defaults \
&& conda config --add channels defaults \
&& conda config --add channels https://www.idiap.ch/software/bob/conda \
&& conda config --add channels https://www.idiap.ch/software/bob/conda \
&& conda create -y -n beat_env python=2.7 \
# Install the needed packages
# Install the needed packages
&& source activate beat_env \
&& conda install -y \
&& conda install -y \
python=2.7 \
gevent \
gevent \
opencv=3.1.0 \
opencv=3.1.0 \
numpy=1.12.1 \
numpy=1.12.1 \
...
@@ -85,22 +84,21 @@ RUN set -ex \
...
@@ -85,22 +84,21 @@ RUN set -ex \
bob.sp=2.0.8 \
bob.sp=2.0.8 \
# Install the beat packages
# Install the beat packages
&& pip install -e git+https://gitlab.idiap.ch/beat/beat.backend.python.git@v1.
1.6
#egg=beat.backend.python \
&& pip install -e git+https://gitlab.idiap.ch/beat/beat.backend.python.git@v1.
2.2
#egg=beat.backend.python \
# Create the wrapper scripts for the executables
# Create the wrapper scripts for the executables
&& mkdir /usr/local/bin/beat \
&& mkdir /usr/local/bin/beat \
&& printf '#! /bin/bash\n\n
source activate beat_env\n
describe $1 $2\n' > /usr/local/bin/beat/describe \
&& printf '#! /bin/bash\n\ndescribe $1 $2\n' > /usr/local/bin/beat/describe \
&& printf '#! /bin/bash\n\n
source activate beat_env\n
execute $1 $2 $3\n' > /usr/local/bin/beat/execute \
&& printf '#! /bin/bash\n\nexecute $1 $2 $3\n' > /usr/local/bin/beat/execute \
&& chmod 755 /usr/local/bin/beat/describe \
&& chmod 755 /usr/local/bin/beat/describe \
&& chmod 755 /usr/local/bin/beat/execute \
&& chmod 755 /usr/local/bin/beat/execute \
# Customisation of the environment name
&& mkdir /etc/beat \
&& printf "{\n \"name\": \"Scientific Python 2.7\",\n \"version\": \"1.0.0\"\n}\n" > /etc/beat/environment.json \
# Cleanup
# Cleanup
&& conda clean -y -a \
&& conda clean -y -a \
&& apt-get purge -y --auto-remove git \
&& apt-get purge -y --auto-remove git \
&& apt-get clean \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/Miniconda2-latest-Linux-x86_64.sh
&& rm -rf /tmp/Miniconda2-latest-Linux-x86_64.sh
# Customisation of the environment
ADD
environment.json /etc/beat/
environment.json
0 → 100644
View file @
ccb27234
{
"name"
:
"Scientific Python 2.7"
,
"version"
:
"1.0.0"
,
"capabilities"
:
[
"direct_access"
]
}
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