Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bluesky_blissdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fs-ec
bluesky_blissdata
Commits
18700de6
Commit
18700de6
authored
10 months ago
by
Udai Singh
Browse files
Options
Downloads
Patches
Plain Diff
added docker
parent
62738fe2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
AUTHORS.rst
+1
-0
1 addition, 0 deletions
AUTHORS.rst
docker/Dockerfile
+44
-0
44 additions, 0 deletions
docker/Dockerfile
docker/supervisord.conf
+46
-0
46 additions, 0 deletions
docker/supervisord.conf
with
91 additions
and
0 deletions
AUTHORS.rst
+
1
−
0
View file @
18700de6
...
...
@@ -3,3 +3,4 @@ Contributors
============
* Udai Singh <udai.singh@desy.de>
pytest
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker/Dockerfile
0 → 100644
+
44
−
0
View file @
18700de6
FROM
condaforge/mambaforge:23.3.1-1
# Set timezone
ENV
TZ=Europe/Paris
RUN
ln
-snf
/usr/share/zoneinfo/
$TZ
/etc/localtime
&&
echo
$TZ
>
/etc/timezone
# Update and basic install
RUN
apt-get update
&&
\
apt-get
install
-y
--no-install-recommends
tzdata curl wget bzip2 build-essential git libgl1-mesa-glx xvfb libxrender1
&&
\
apt-get clean autoclean
&&
apt-get autoremove
--yes
&&
\
rm
-rf
/var/lib/apt/lists/
*
# Clone repos
WORKDIR
/
RUN
git clone https://gitlab.desy.de/fs-ec/bluesky_blissdata.git
# Setup environment
RUN
conda config
--append
channels esrf-bcu
&&
\
conda config
--append
channels tango-controls
WORKDIR
/bluesky_blissdata
RUN
[
"/bin/bash"
,
"-c"
,
". /opt/conda/etc/profile.d/conda.sh &&
\
. /opt/conda/etc/profile.d/mamba.sh &&
\
mamba create -n bluesky_blissdata python=3.9 &&
\
conda config --env --append channels esrf-bcu &&
\
mamba activate bluesky_blissdata &&
\
mamba install blissdata &&
\
pip install -e . &&
\
# Bliss makefile will have used pip cache
rm -rf /root/.cache/pip && \
# https://jcristharif.com/conda-docker-tips.html
find /opt/conda/ -follow -type f -name '*.a' -delete && \
find /opt/conda/ -follow -type f -name '*.pyc' -delete && \
find /opt/conda/ -follow -type f -name '*.js.map' -delete"]
RUN
[
"/bin/bash"
,
"-c"
,
". /opt/conda/etc/profile.d/conda.sh &&
\
. /opt/conda/etc/profile.d/mamba.sh &&
\
pip install --no-cache-dir pyzmq==22.3.0 supervisor multivisor[web]"
]
COPY
./supervisord.conf /etc/supervisor/supervisord.conf
ENTRYPOINT
["/bin/bash", "-c", ". /opt/conda/etc/profile.d/conda.sh && supervisord"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker/supervisord.conf
0 → 100644
+
46
−
0
View file @
18700de6
[
supervisord
]
nodaemon
=
true
silent
=
true
[
rpcinterface
:
supervisor
]
supervisor
.
rpcinterface_factory
=
supervisor
.
rpcinterface
:
make_main_rpcinterface
[
supervisorctl
]
serverurl
=
http
://
127
.
0
.
0
.
1
:
9032
[
inet_http_server
]
port
=
9032
;
new
rpc
interface
for
multivisor
[
rpcinterface
:
multivisor
]
supervisor
.
rpcinterface_factory
=
multivisor
.
rpc
:
make_rpc_interface
bind
=*:
9034
[
group
:
bliss
]
programs
=
bliss_data
[
program
:
bliss_data
]
command
=
bash
-
c
". /opt/conda/etc/profile.d/conda.sh && conda activate bluesky_blissdata && bluesky_blissdata --redis_port=$redis_port --redis_host=$redis_host -vv"
environment
=
HOME
=/
priority
=
0
user
=
root
startsecs
=
5
autostart
=
true
redirect_stderr
=
true
stdout_logfile
=/
var
/
log
/
bliss_data
.
log
stdout_logfile_maxbytes
=
1
MB
stdout_logfile_backups
=
10
stdout_capture_maxbytes
=
1
MB
[
program
:
bluesky_zmq
]
command
=
bash
-
c
". /opt/conda/etc/profile.d/conda.sh && conda activate bluesky_blissdata && bluesky-0MQ-proxy 5577 5578"
environment
=
HOME
=/
priority
=
0
user
=
root
startsecs
=
5
autostart
=
true
redirect_stderr
=
true
stdout_logfile
=/
var
/
log
/
beacon
.
log
stdout_logfile_maxbytes
=
1
MB
stdout_logfile_backups
=
10
stdout_capture_maxbytes
=
1
MB
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment