generated from eea/volto-frontend-template
-
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.
Merge pull request #3 from eea/develop
Develop
- Loading branch information
Showing
47 changed files
with
2,291 additions
and
318 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 |
---|---|---|
|
@@ -75,4 +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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM node:16-slim | ||
|
||
COPY . /opt/frontend/ | ||
WORKDIR /opt/frontend/ | ||
|
||
# Update apt packages | ||
RUN runDeps="openssl ca-certificates patch gosu git tmux locales-all" \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends $runDeps \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& npm install -g mrs-developer \ | ||
&& cp jsconfig.json.prod jsconfig.json \ | ||
&& mkdir -p /opt/frontend/src/addons \ | ||
&& rm -rf /opt/frontend/src/addons/* \ | ||
&& find /opt/frontend -not -user node -exec chown node {} \+ | ||
|
||
USER node | ||
RUN cd /opt/frontend \ | ||
&& 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 \ | ||
&& rm -rf /home/node/.cache | ||
USER root | ||
|
||
EXPOSE 3000 3001 4000 4001 | ||
|
||
ENTRYPOINT ["/opt/frontend/entrypoint.sh"] | ||
CMD ["yarn", "start:prod"] |
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,4 +1,8 @@ | ||
FROM eeacms/plonesaas:5.2.4-63 | ||
FROM eeacms/plone:5.2.4-78 | ||
|
||
COPY site.cfg /plone/instance/ | ||
RUN gosu plone buildout -c site.cfg | ||
RUN mv /plone/instance/versions.cfg /plone/instance/eea-versions.cfg | ||
|
||
COPY src/docker/* / | ||
COPY src/plone/* /plone/instance/ | ||
|
||
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,4 @@ | ||
FROM eeacms/plonesaas:5.2.4-68 | ||
|
||
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,39 @@ | ||
#!/bin/bash | ||
|
||
#make sure all the commands are run succesfully | ||
set -e | ||
|
||
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 develop.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 was deleted.
Oops, something went wrong.
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 @@ | ||
major=$(grep FROM Dockerfile | awk -F':|-' '{print $2}');let minor=$(git tag | grep -E $major-[0-9]+ | cut -d- -f2 | sort -n | tail -n 1 )+1; echo $major-$minor |
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,58 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
buildDeps=" | ||
build-essential | ||
libldap2-dev | ||
libsasl2-dev | ||
libssl-dev | ||
" | ||
|
||
runDeps=" | ||
curl | ||
git | ||
subversion | ||
vim | ||
" | ||
|
||
echo "=========================================================================" | ||
echo "Installing $buildDeps" | ||
echo "=========================================================================" | ||
|
||
apt-get update | ||
apt-get install -y --no-install-recommends $buildDeps | ||
|
||
echo "=========================================================================" | ||
echo "Running buildout -c buildout.cfg" | ||
echo "=========================================================================" | ||
|
||
buildout -c buildout.cfg | ||
|
||
echo "=========================================================================" | ||
echo "Unininstalling $buildDeps" | ||
echo "=========================================================================" | ||
|
||
apt-get purge -y --auto-remove $buildDeps | ||
|
||
|
||
echo "=========================================================================" | ||
echo "Installing $runDeps" | ||
echo "=========================================================================" | ||
|
||
apt-get install -y --no-install-recommends $runDeps | ||
|
||
|
||
echo "=========================================================================" | ||
echo "Cleaning up cache..." | ||
echo "=========================================================================" | ||
|
||
rm -rf /var/lib/apt/lists/* | ||
rm -rf /plone/buildout-cache/downloads/* | ||
rm -rf /tmp/* | ||
|
||
echo "=========================================================================" | ||
echo "Fixing permissions..." | ||
echo "=========================================================================" | ||
|
||
find /data -not -user plone -exec chown plone:plone {} \+ | ||
find /plone -not -user plone -exec chown plone:plone {} \+ |
Oops, something went wrong.