Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pandora
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
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
ai3
docker
pandora
Commits
d9bd9131
Commit
d9bd9131
authored
3 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Add a README
parent
1efaf861
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#30315
passed
3 years ago
Stage: build
Stage: release
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+43
-0
43 additions, 0 deletions
README.md
with
43 additions
and
0 deletions
README.md
0 → 100644
+
43
−
0
View file @
d9bd9131
pandora
===
Container image for
[
Pan.do/ra
](
https://pan.do/ra
)
, based on the
upstream's Docker images, but modified to use Debian and, most
importantly, to accomodate the characteristics of our
[
runtime
environment
](
https://git.autistici.org/ai3/float
)
:
*
running as arbitrary unprivileged user
*
having a read-only root filesystem
On top of that, this image neatly separates the build stage from the
release stage, resulting in a (slightly) smaller size. All the
0x-related dependencies are built from source, tracked as sub-modules
of this git repository.
With respect to more traditional Django-based images, this one
compiles all the Python and static content during the build stage,
leaving only database-related migrations to be done at container
startup time.
## Configuration
The resulting image is meant to contain an instance of Pandora that is
already configured at the application level, by way of the
[
config.jsonc
](
config.jsonc
)
file in this repository. Runtime
configuration (ports, credentials, etc) is handled separately, outside
of the container image, by an Ansible role.
The data volume is expected to be mounted r/w as
*/data*
, and a
local_settings.py file should be also mounted at
*/srv/pandora/pandora/local_settings.py*
to provide the runtime
configuration.
The container image uses
[
s6-overlay
](
https://git.autistici.org/ai3/docker/s6-base
)
to run
multiple processes:
*
the gunicorn workers serving the main Django application
*
various background worker processes for asynchronous jobs (via
Celery)
*
a minimal NGINX instance to serve static content (/data and /static)
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