-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from mbarde/backend-distribution
- Loading branch information
Showing
146 changed files
with
4,627 additions
and
1,017 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Changelog | ||
|
||
<!-- | ||
You should *NOT* be adding new change log entries to this file. | ||
You should create a file in the news directory instead. | ||
For helpful instructions, please see: | ||
https://github.com/plone/plone.releaser/blob/master/ADD-A-NEWS-ITEM.rst | ||
--> | ||
|
||
<!-- towncrier release notes start --> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
# syntax=docker/dockerfile:1 | ||
ARG PLONE_VERSION=6.0.10 | ||
ARG PLONE_VERSION=6 | ||
FROM plone/server-builder:${PLONE_VERSION} as builder | ||
|
||
WORKDIR /app | ||
|
||
# Add local code | ||
COPY . . | ||
COPY . src/plone.edu | ||
|
||
# Install local requirements and pre-compile mo files | ||
RUN <<EOT | ||
set -e | ||
bin/pip install mxdev | ||
mv requirements-docker.txt requirements.txt | ||
sed -i 's/-e src\/plone_edu\[test\]/src\/plone_edu/g' mx.ini | ||
bin/mxdev -c mx.ini | ||
bin/pip install -r requirements-mxdev.txt | ||
mv src/plone.edu/requirements-docker.txt ./requirements.txt | ||
bin/pip install -r requirements.txt | ||
bin/python /compile_mo.py | ||
rm -Rf src/ | ||
rm -Rf src/ /compile_mo.py compile_mo.log | ||
EOT | ||
|
||
FROM plone/server-prod-config:${PLONE_VERSION} | ||
|
||
LABEL maintainer="Plone Foundation <[email protected]>" \ | ||
org.label-schema.name="plone-edu-backend" \ | ||
org.label-schema.description="Plone EDU backend image." \ | ||
org.label-schema.vendor="Plone Foundation" | ||
LABEL maintainer="Plone Community <[email protected]>" \ | ||
org.label-schema.name="ghcr.io/collective/edu" \ | ||
org.label-schema.description="A new Plone Distribution" \ | ||
org.label-schema.vendor="Plone Community" | ||
|
||
# Disable MO Compilation | ||
ENV zope_i18n_compile_mo_files= | ||
# Show only our distributions | ||
ENV ALLOWED_DISTRIBUTIONS=edu | ||
|
||
# Copy /app from builder | ||
COPY --from=builder /app /app | ||
|
||
RUN <<EOT | ||
set -e | ||
ln -s /data /app/var | ||
EOT |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
graft src/plone | ||
graft docs | ||
graft news | ||
graft scripts | ||
graft tests | ||
include .coveragerc | ||
include .dockerignore | ||
include .editorconfig | ||
include *.txt | ||
include *.yml | ||
include *.md | ||
exclude *-mxdev.txt | ||
exclude Dockerfile | ||
exclude *.mo | ||
exclude mx.ini | ||
exclude Makefile | ||
recursive-exclude frontend * | ||
exclude instance.yaml | ||
global-exclude *.pyc | ||
global-exclude .DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.