Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Software Heritage virtual environment packaging manifests
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
Container Registry
Model registry
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
Platform
Infrastructure
Software Heritage virtual environment packaging manifests
Merge requests
!21
Add an image for swh-web service
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add an image for swh-web service
4812_swh_web
into
master
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
Guillaume Samson
requested to merge
4812_swh_web
into
master
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
3
Expand
Related to
sysadm-environment#4812 (closed)
0
0
Merge request reports
Compare
master
version 1
209311d7
1 year ago
master (base)
and
latest version
latest version
826287b3
1 commit,
1 year ago
version 1
209311d7
1 commit,
1 year ago
3 files
+
70
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
apps/swh-web/Dockerfile
0 → 100644
+
36
−
0
Options
# Deeply inspired from the Dockerfile of the swh-storage project
FROM
python:3.10-bullseye
RUN
apt-get
-y
update
&&
\
apt-get
-y
upgrade
&&
\
apt-get
install
-y
libcmph-dev librdkafka-dev
&&
\
apt clean
&&
\
addgroup
--gid
1000 swh
&&
\
useradd
--gid
1000
--uid
1000
-m
-d
/srv/swh swh
&&
\
mkdir
-p
/etc/softwareheritage /var/log/softwareheritage/webapp
&&
\
chown
swh:swh /var/log/softwareheritage/webapp
USER
swh
WORKDIR
/srv/swh
COPY
--chown=swh:swh requirements-frozen.txt /srv/swh
COPY
--chown=swh:swh entrypoint.sh /srv/swh
ENV
PYTHONPATH=/srv/swh
ENV
PATH=/srv/swh/.local/bin:$PATH
RUN
chmod
u+x /srv/swh/entrypoint.sh
&&
\
/usr/local/bin/python
-m
pip
install
--upgrade
pip
&&
\
pip
install
--no-cache-dir
-r
requirements-frozen.txt
&&
\
pip
install
gunicorn
ENV
SWH_CONFIG_FILENAME=/etc/softwareheritage/config.yml
ENV
PORT 5004
EXPOSE
$PORT
ENV
THREADS 2
ENV
WORKERS 2
ENV
TIMEOUT 3600
ENV
DJANGO_SETTINGS_MODULE swh.web.settings.production
ENV
SWH_MAIN_PACKAGE swh.web
ENTRYPOINT
["/srv/swh/entrypoint.sh"]
Loading