-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixing certificate revoked on Mac * Use Mutagen to bring up core config * Wait for necessary files to be present when building PWA theme. * Remove whitespaces * Mac optimizations - Add volume core-frontend-data for core frontend container - Implement mutagen configuration for both core and frontend dc configs - FIx node container not having wget - Keep maildev configuration in local setup only * Optimize frontend deploy script acquiring process Make them be mounted into frontend container on deploy instead of copied on build * Add mutagen config without frontend container Optimize sync making it two-way-resolved Propagate www-data as default file owner * Move core-frontend-data volume from main compose to core compose * Fix permission issue in app and nginx containers * Rename mutagen compose files to keep originals * Add modified original compose files back * Move core frontend volume declaration to corresponding compose file * Fix user being set as file owner on alpha * Refactor sync sessions - remove nginx session by introducing named volume - extend mutagen permission config with default file mode * Revert not working Mac certificate fix * Typo and ping removal * Remove ping from installed packages * Add mutagen-powered-app container name to resolve container naming issue in yml files * Refactor frontend container compose files Move dependency installation to build script Replace deploy script with single command Remove core-frontend-data volume, mount app-data directly Rename start-with-frontend script * Mount all app-data into nginx * Return magento se:up success check to deploy * Update process file names to the relevant ones * Return dependency installation to FE deploy * Revert demo deploy script changes * Use separate deploy script for Mutagen Remove waiting for composer.json files in main script * Use start-with-mutagen script to wait for fs * Map Mutagen start scripts into containers * Build scripts into containers instead of map * Mount app-data into frontend container * Remove mounting start script from host * Move waiting logic to separate script for FE cont * Apply proper permissions to waiting script * Implement script to wait for fs * Removed links * Moved additional buildstep to separate folder, for quicker build. * Moving global installs to build * Adding new lines in the end to most mutagen files * Added ignores for node_modules and vendor * Added missing max-body size nginx setting * Merged mutagen with ScandiPWA, fixed multiple issues * Updated gitignore with a proper file name * Fix for mutagen lock files * Added proper labels to containers Co-authored-by: negzu <[email protected]>
- Loading branch information
1 parent
4ade667
commit ec901c9
Showing
35 changed files
with
343 additions
and
323 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 |
---|---|---|
|
@@ -4,3 +4,4 @@ src/* | |
!src/composer.* | ||
!.gitignore | ||
!**/.gitkeep | ||
mutagen.*.lock |
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,5 @@ | ||
# hadolint ignore=DL3007 | ||
FROM scandipwa/php:latest | ||
LABEL maintainer="Scandiweb <[email protected]>" | ||
LABEL authors="Jurijs Jegorovs [email protected]; Ilja Lapkovskis [email protected]" | ||
|
||
# Set bash by default | ||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
|
@@ -60,7 +58,7 @@ RUN { \ | |
echo 'from no-reply@docker'; \ | ||
echo 'account default'; \ | ||
} | tee /etc/msmtprc | ||
|
||
# Start script, executed upon container creation from image | ||
COPY deploy/start.sh /start.sh | ||
RUN chmod +x /start.sh | ||
|
@@ -85,4 +83,4 @@ CMD ["/start.sh"] | |
RUN echo "$(tput setaf 3)php, composer$(tput sgr0)";\ | ||
composer diagnose; printf "\n";\ | ||
echo "$(tput setaf 3)nodejs, npm$(tput sgr0)";\ | ||
npm doctor; printf "\n"; | ||
npm doctor; printf "\n"; |
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,16 +1,11 @@ | ||
ARG NODEJS_VERSION=10 | ||
|
||
FROM node:$NODEJS_VERSION | ||
LABEL authors="Alfred Genkins, Ilja Lapkovskis [email protected]" | ||
|
||
ARG BASEPATH=/var/www/public | ||
LABEL maintainer="Alfreds Genkins [email protected]" | ||
LABEL author="Ilja Lapkovskis [email protected]" | ||
|
||
# Set working directory so any relative configuration or scripts wont fail | ||
WORKDIR $BASEPATH | ||
RUN npm install pm2 forever -g | ||
|
||
COPY start.sh /start.sh | ||
COPY start-core.sh /start-core.sh | ||
RUN chmod +x /start.sh | ||
RUN chmod +x /start-core.sh | ||
|
||
CMD ["/bin/bash", "/start.sh"] |
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 |
---|---|---|
@@ -1,4 +1,58 @@ | ||
#!/bin/bash | ||
|
||
mutagen="0" | ||
core="0" | ||
|
||
helpFunction() | ||
{ | ||
echo "" | ||
echo "Usage: $0 [-M] [-C]" | ||
echo -e "\t-M Wait for Mutagen to sync files before start" | ||
echo -e "\t-C Start core watching script" | ||
exit 1 # Exit script after printing help | ||
} | ||
|
||
while getopts "MC" opt | ||
do | ||
case "$opt" in | ||
M ) mutagen="1" ;; | ||
C ) core="1" ;; | ||
? ) helpFunction ;; | ||
esac | ||
done | ||
|
||
PATH_TO_THEME="/var/www/public" | ||
|
||
if [ "$core" = "1" ] | ||
then | ||
PATH_TO_THEME="$PATH_TO_THEME/localmodules/base-theme/" | ||
else | ||
PATH_TO_THEME="$PATH_TO_THEME/app/design/frontend/Scandiweb/pwa/" | ||
fi | ||
|
||
if [ -d $PATH_TO_THEME ] | ||
then | ||
cd $PATH_TO_THEME; | ||
else | ||
echo "ERROR: $PATH_TO_THEME is empty!" | ||
exit 1 | ||
fi | ||
|
||
if [ "$mutagen" = "1" ] | ||
then | ||
echo "Waiting for Mutagen to sync initial files" | ||
while ! [ -f ./package.json -a -f ./package-lock.json ] | ||
do | ||
sleep 2 | ||
done | ||
fi | ||
|
||
echo "Installing node modules" | ||
npm ci | ||
npm install pm2 forever -g | ||
pm2-runtime process.yml | ||
|
||
if [ "$core" = "1" ] | ||
then | ||
pm2-runtime process-core.yml | ||
else | ||
pm2-runtime process.yml | ||
fi |
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,5 +1,6 @@ | ||
FROM ubuntu:bionic | ||
LABEL maintainer="Ilja Lapkovskis [email protected]" | ||
LABEL author="Ilja Lapkovskis [email protected]" | ||
LABEL maintainer="Alfreds Genkins [email protected]" | ||
|
||
ARG COMPOSER_HOME=/var/lib/composer | ||
ARG COMPOSER_VERSION=latest | ||
|
@@ -55,7 +56,7 @@ ENV PHPIZE_DEPS \ | |
libxslt1-dev \ | ||
libsodium-dev \ | ||
libargon2-0-dev | ||
|
||
# Update server packages to latest versions | ||
RUN apt-get -qq update &&\ | ||
apt-get -qq dist-upgrade -y &&\ | ||
|
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,5 +1,7 @@ | ||
FROM node:10 | ||
|
||
LABEL maintainer="Alfreds Genkins [email protected]" | ||
|
||
# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others) | ||
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer | ||
# installs, work. | ||
|
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,6 +1,7 @@ | ||
FROM debian:stretch-slim | ||
LABEL maintainer="Ilja Lapkovskis admin@scandiweb.com" | ||
LABEL maintainer="Alfreds Genkins alfreds@scandipwa.com" | ||
LABEL author="Jurijs Jegorovs [email protected]" | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive \ | ||
VARNISH_VERSION=5.2 \ | ||
VARNISH_VERSION_FLATTEN=52\ | ||
|
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,6 +1,7 @@ | ||
FROM scandipwa/base | ||
LABEL authors="Jurijs Jegorovs [email protected]" | ||
LABEL maintainer="Jurijs Jegorovs [email protected]" | ||
|
||
LABEL maintainer="Alfreds Genkins [email protected]" | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Install required PHP extensions | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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.