-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
4,461 additions
and
443 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 |
---|---|---|
@@ -1,2 +1,8 @@ | ||
**/node_modules | ||
npm-cache | ||
src/addons | ||
build | ||
data | ||
omelette | ||
.yalc | ||
backend |
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 |
---|---|---|
|
@@ -75,3 +75,4 @@ omelette | |
src/addons | ||
src/develop | ||
npm-cache | ||
backend/src/* |
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,22 +1,28 @@ | ||
FROM node:12-stretch-slim | ||
FROM node:12-buster-slim | ||
|
||
RUN runDeps="openssl ca-certificates patch" \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends $runDeps \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN apt-get update && apt-get install -y git | ||
|
||
COPY . /opt/frontend/ | ||
RUN chown -R node /opt/frontend/ | ||
|
||
WORKDIR /opt/frontend/ | ||
RUN npm install -g mrs-developer | ||
USER node | ||
|
||
RUN RAZZLE_API_PATH=VOLTO_API_PATH RAZZLE_INTERNAL_API_PATH=VOLTO_INTERNAL_API_PATH yarn \ | ||
&& RAZZLE_API_PATH=VOLTO_API_PATH RAZZLE_INTERNAL_API_PATH=VOLTO_INTERNAL_API_PATH yarn build \ | ||
ARG MAX_OLD_SPACE_SIZE=8192 | ||
ENV NODE_OPTIONS=--max_old_space_size=$MAX_OLD_SPACE_SIZE | ||
|
||
RUN mkdir -p src/addons | ||
|
||
RUN yarn develop | ||
|
||
RUN RAZZLE_API_PATH=VOLTO_API_PATH RAZZLE_INTERNAL_API_PATH=VOLTO_INTERNAL_API_PATH yarn | ||
|
||
RUN RAZZLE_API_PATH=VOLTO_API_PATH RAZZLE_INTERNAL_API_PATH=VOLTO_INTERNAL_API_PATH yarn build \ | ||
&& rm -rf /home/node/.cache | ||
|
||
EXPOSE 3000 3001 4000 4001 | ||
|
||
ENTRYPOINT ["/opt/frontend/entrypoint-prod.sh"] | ||
CMD ["yarn", "start:prod"] | ||
USER root |
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,5 @@ | ||
FROM eeacms/plonesaas:5.2.1-71 | ||
|
||
COPY site.cfg /plone/instance | ||
COPY docker-setup.sh / | ||
RUN /docker-setup.sh |
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,36 @@ | ||
#!/bin/bash | ||
|
||
runDeps=" | ||
build-essential | ||
silversearcher-ag | ||
tmux | ||
mc | ||
procps | ||
" | ||
|
||
echo "=========================================================================" | ||
echo "Installing $runDeps" | ||
echo "=========================================================================" | ||
|
||
apt-get update | ||
apt-get install -y --no-install-recommends $runDeps | ||
|
||
echo "=========================================================================" | ||
echo "Running buildout -c develop.cfg" | ||
echo "=========================================================================" | ||
|
||
buildout -c site.cfg | ||
|
||
echo "=========================================================================" | ||
echo "Cleaning up cache..." | ||
echo "=========================================================================" | ||
|
||
rm -vrf /var/lib/apt/lists/* | ||
rm -vrf /plone/buildout-cache/downloads/* | ||
|
||
echo "=========================================================================" | ||
echo "Fixing permissions..." | ||
echo "=========================================================================" | ||
|
||
find /data -not -user plone -exec chown plone:plone {} \+ | ||
find /plone -not -user plone -exec chown plone:plone {} \+ |
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,51 @@ | ||
[buildout] | ||
extends = develop.cfg | ||
|
||
eggs += | ||
plone.app.robotframework | ||
collective.MockMailHost | ||
plone.tiles | ||
plone.reload | ||
collective.taxonomy | ||
eea.volto.slate | ||
eea.api.dataconnector | ||
eea.restapi | ||
eea.volto.policy | ||
freshwater.content | ||
|
||
zcml += | ||
collective.taxonomy | ||
eea.api.dataconnector | ||
eea.volto.slate | ||
plone.reload | ||
eea.api.dataconnector | ||
eea.volto.policy | ||
|
||
auto-checkout = | ||
plone.restapi | ||
collective.taxonomy | ||
eea.api.dataconnector | ||
eea.dexterity.rdfmarshaller | ||
eea.volto.slate | ||
eea.volto.policy | ||
eea.restapi | ||
freshwater.content | ||
|
||
# kitconcept.volto | ||
# kitconcept.voltodemo | ||
|
||
[configuration] | ||
shared-blob = off | ||
|
||
[sources] | ||
plone.restapi = git https://github.com/plone/plone.restapi.git branch=slots | ||
collective.taxonomy = git https://github.com/eea/collective.taxonomy branch=restapi | ||
eea.api.dataconnector = git https://github.com/eea/eea.api.dataconnector.git branch=develop | ||
eea.dexterity.rdfmarshaller = git https://github.com/eea/eea.dexterity.rdfmarshaller.git | ||
eea.restapi = git https://github.com/eea/eea.restapi branch=develop | ||
eea.volto.slate = git https://github.com/eea/eea.volto.slate.git branch=main | ||
eea.volto.policy = git https://github.com/eea/eea.volto.policy.git | ||
freshwater.content = git https://github.com/eea/freshwater.content.git | ||
|
||
[versions] | ||
plone.schema = |
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 |
---|---|---|
@@ -1 +1 @@ | ||
eeacms/freshwater-frontend:0.1 | ||
eeacms/freshwater-frontend:develop |
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,7 +1,34 @@ | ||
{ | ||
"compilerOptions": { | ||
"paths": { | ||
"volto-block-image-cards": [ | ||
"addons/volto-block-image-cards/src" | ||
], | ||
"volto-embed": [ | ||
"addons/volto-embed/src" | ||
], | ||
"volto-object-widget": [ | ||
"addons/volto-object-widget/src" | ||
], | ||
"volto-columns-tabs-block": [ | ||
"addons/volto-columns-tabs-block/src" | ||
], | ||
"volto-columns-block": [ | ||
"addons/volto-columns-block/src" | ||
], | ||
"@eeacms/volto-freshwater": [ | ||
"addons/volto-freshwater/src" | ||
], | ||
"volto-tabs-block": [ | ||
"addons/volto-tabs-block/src" | ||
], | ||
"volto-block-style": [ | ||
"addons/volto-block-style/src" | ||
], | ||
"volto-block-toc": [ | ||
"addons/volto-block-toc/src" | ||
] | ||
}, | ||
"baseUrl": "src" | ||
} | ||
} | ||
} |
Oops, something went wrong.