Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
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
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
bf98e2c9
Verified
Commit
bf98e2c9
authored
5 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Make /etc/biscuit mountable from the host.
parent
c906c52c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+5
-1
5 additions, 1 deletion
Dockerfile
docker-compose.yaml
+2
-0
2 additions, 0 deletions
docker-compose.yaml
with
7 additions
and
1 deletion
Dockerfile
+
5
−
1
View file @
bf98e2c9
...
...
@@ -38,7 +38,7 @@ RUN pip install "poetry==$POETRY_VERSION"; \
poetry build
&&
/srv/venv/bin/pip
install
dist/
*
.whl
# Build messages and assets
RUN
mkdir
/srv/media /srv/static /var/backups/biscuit
;
\
RUN
mkdir
/etc/biscuit
/srv/media /srv/static /var/backups/biscuit
;
\
/srv/venv/bin/python manage.py compilemessages
;
\
/srv/venv/bin/python manage.py collectstatic
--no-input
--clear
...
...
@@ -53,5 +53,9 @@ RUN apt-get remove --purge -y \
apt-get clean
-y
;
\
rm
-f
/var/lib/apt/lists/
*
_
*
# Mark /etc/biscuit as coming from the host
VOLUME
/etc/biscuit
# Define entrypoint and gunicorn running on port 8000
EXPOSE
8000
ENTRYPOINT
["/usr/src/app/BiscuIT-ng/docker/entrypoint.sh"]
This diff is collapsed.
Click to expand it.
docker-compose.yaml
+
2
−
0
View file @
bf98e2c9
...
...
@@ -16,6 +16,7 @@ services:
-
biscuit_media:/srv/media
-
biscuit_static:/srv/static
-
biscuit_backups:/var/backups/biscuit
-
biscuit_config:/etc/biscuit
environment
:
-
BISCUIT_secret_key=DoNotUseInProduction
-
BISCUIT_http__allowed_hosts="['*']"
...
...
@@ -39,3 +40,4 @@ volumes:
biscuit_media
:
biscuit_static
:
biscuit_backups
:
biscuit_config
:
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