-
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.
Additional Branding + Docker dev env (#44)
* Branding * Add docker-compose and plugin installation
- Loading branch information
Showing
107 changed files
with
2,325 additions
and
186 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,16 @@ | ||
PRESTASHOP_VERSION=1.7.7.5 | ||
PRESTASHOP_PERSISTENT= | ||
PRESTASHOP_EXPOSED_PORT=8012 | ||
PRESTASHOP_NGROK_HOST= | ||
PRESTASHOP_NGROK_TOKEN= | ||
PRESTASHOP_MYSQL_ROOT_PASSWORD= | ||
PRESTASHOP_MYSQL_DATABASE= | ||
PRESTASHOP_EMAIL= | ||
PRESTASHOP_PASSWORD= | ||
PRESTASHOP_COUNTRY= | ||
PRESTASHOP_LANGUAGE= | ||
PRESTASHOP_NAME= | ||
PRESTASHOP_MYSQL_HOST= | ||
PRESTASHOP_MYSQL_ROOT_PASSWORD= | ||
PRESTASHOP_MYSQL_DATABASE= | ||
PRESTASHOP_ENABLE_SSL= |
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,4 @@ | ||
*.zip | ||
*.zip | ||
.DS_Store | ||
node_modules/ | ||
data/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM mysql:5.7 |
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 | ||
|
||
# Die vorliegende Software ist Eigentum von QENTA Payment CEE GmbH | ||
# und daher vertraulich zu behandeln. | ||
# Jegliche Weitergabe an dritte, in welcher Form auch immer, ist unzulaessig. | ||
|
||
# Software & Service Copyright © by | ||
# QENTA Payment CEE GmbH, | ||
# FB-Nr: FN 539960 i, https://www.qenta.com/ | ||
|
||
# sed because output array is random | ||
function get_ngrok_url() { | ||
curl --fail -s localhost:4040/api/tunnels | jq -r .tunnels\[0\].public_url | sed 's/^http:/https:/' | ||
} | ||
|
||
function wait_for_ngrok() { | ||
while [[ -z ${RESPONSE} || ${RESPONSE} == 'null' ]]; do | ||
RESPONSE=$(get_ngrok_url) | ||
sleep 3; | ||
done | ||
} | ||
|
||
NGROK_TOKEN=${1} | ||
|
||
if [[ -z ${NGROK_TOKEN} ]]; then | ||
echo 'NGROK token missing. Set NGROK_TOKEN env' >&2 | ||
exit 1 | ||
fi | ||
|
||
/workspace/node_modules/ngrok/bin/ngrok authtoken ${NGROK_TOKEN} >&/dev/null | ||
/workspace/node_modules/ngrok/bin/ngrok http 80 >&/dev/null & | ||
wait_for_ngrok | ||
export NGROK_URL=$(get_ngrok_url) | ||
export NGROK_HOST=$(sed 's/^https...//' <<< ${NGROK_URL}) | ||
|
||
echo ${NGROK_HOST} |
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 @@ | ||
FROM php:7.2-apache | ||
|
||
#install curl | ||
RUN apt-get update && apt-get install -y curl git vim wget | ||
|
||
# Install mcrypt | ||
|
||
# Activate apache mod_rewrite | ||
RUN a2enmod rewrite | ||
|
||
# Install mysqli php extension | ||
RUN apt-get update && apt-get install -y \ | ||
&& docker-php-ext-install -j$(nproc) mysqli \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install zip extension | ||
RUN apt-get update && apt-get install -y \ | ||
libzip-dev \ | ||
zip \ | ||
&& docker-php-ext-install -j$(nproc) zip | ||
|
||
# Install PDO MySQL extension | ||
RUN apt-get update \ | ||
&& docker-php-ext-install -j$(nproc) pdo pdo_mysql \ | ||
&& docker-php-ext-enable pdo_mysql | ||
|
||
# Install Intl extension | ||
RUN apt-get update && apt-get install -y zlib1g-dev libicu-dev libpng-dev libjpeg-dev libfreetype6-dev g++ && \ | ||
docker-php-ext-configure intl && \ | ||
docker-php-ext-install -j$(nproc) intl | ||
|
||
# Install gd | ||
RUN apt-get update && apt-get install -y \ | ||
libfreetype6-dev \ | ||
libjpeg62-turbo-dev \ | ||
libpng-dev \ | ||
jq \ | ||
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ | ||
&& docker-php-ext-install -j$(nproc) gd | ||
|
||
COPY php.ini /usr/local/etc/php/php.ini | ||
|
||
# Install Composer | ||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer | ||
|
||
# Install node.js and npm | ||
RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - | ||
RUN apt-get -y install nodejs | ||
RUN apt-get install -y build-essential | ||
|
||
COPY setup.sh /tmp/setup.sh |
Oops, something went wrong.