fixing symfony init + enabling gateway ip on dev

This commit is contained in:
a-sansara 2017-03-16 04:35:46 +01:00
parent 9cabf4d736
commit 28533f0cce
9 changed files with 25 additions and 17 deletions

Binary file not shown.

Binary file not shown.

View File

@ -2,7 +2,14 @@
# @app pluie/alpine-apache-php7 # @app pluie/alpine-apache-php7
# @author a-Sansara https://git.pluie.org/pluie/docker-images # @author a-Sansara https://git.pluie.org/pluie/docker-images
echo "http://dl-cdn.alpinelinux.org/alpine/edge/community #~ echo "http://dl-cdn.alpinelinux.org/alpine/edge/community
http://dl-cdn.alpinelinux.org/alpine/edge/main #~ http://dl-cdn.alpinelinux.org/alpine/edge/main
http://dl-cdn.alpinelinux.org/alpine/edge/testing #~ http://dl-cdn.alpinelinux.org/alpine/edge/testing
#~ echo "http://alpine.gliderlabs.com/alpine/edge/community
#~ http://alpine.gliderlabs.com/alpine/edge/main
#~ http://alpine.gliderlabs.com/alpine/edge/testing
#~ " >> /etc/apk/repositories
echo "http://dl-5.alpinelinux.org/alpine/edge/community
http://dl-5.alpinelinux.org/alpine/edge/main
http://dl-5.alpinelinux.org/alpine/edge/testing
" > /etc/apk/repositories " > /etc/apk/repositories

View File

@ -2,7 +2,7 @@
# @app pluie/alpine-apache # @app pluie/alpine-apache
# @author a-Sansara https://git.pluie.org/pluie/docker-images # @author a-Sansara https://git.pluie.org/pluie/docker-images
apk --update add apache2 apache2-proxy \ apk -U upgrade && apk --update add apache2 apache2-proxy \
php7-apache2 php7-mbstring php7-session php7-phar php7-zlib php7-zip php7-ctype \ php7-apache2 php7-mbstring php7-session php7-phar php7-zlib php7-zip php7-ctype \
php7-mysqli php7-xml php7-pdo_mysql php7-opcache php7-pdo php7-json php7-curl \ php7-mysqli php7-xml php7-pdo_mysql php7-opcache php7-pdo php7-json php7-curl \
php7-gd php7-mcrypt php7-openssl php7-dom \ php7-gd php7-mcrypt php7-openssl php7-dom \

View File

@ -2,7 +2,7 @@
# @app pluie/alpine-apache-php7 # @app pluie/alpine-apache-php7
# @author a-Sansara https://git.pluie.org/pluie/docker-images # @author a-Sansara https://git.pluie.org/pluie/docker-images
# #
echo "http://dl-cdn.alpinelinux.org/alpine/edge/community echo "http://dl-5.alpinelinux.org/alpine/edge/community
http://dl-cdn.alpinelinux.org/alpine/edge/main http://dl-5.alpinelinux.org/alpine/edge/main
http://dl-cdn.alpinelinux.org/alpine/edge/testing http://dl-5.alpinelinux.org/alpine/edge/testing
" > /etc/apk/repositories " > /etc/apk/repositories

Binary file not shown.

View File

@ -2,12 +2,14 @@
# @app pluie/alpine-symfony # @app pluie/alpine-symfony
# @author a-Sansara https://git.pluie.org/pluie/docker-images # @author a-Sansara https://git.pluie.org/pluie/docker-images
if [ -z "$CREATE_WWW_DIR" ]; then if [ ! -z "$CREATE_WWW_DIR" ]; then
cd /tmp cd /tmp
mkdir $WWW_DIR
symfony new app $SYMFONY_VERSION symfony new app $SYMFONY_VERSION
mv app/* /app/ rm -rf /app/web
mv -f app/* /app/
chown -R 1000:apache /app/ chown -R 1000:apache /app/
chown -R 1000:apache /app/var chown -R 1000:apache /app/var
chmod -R g+w /app chmod -R g+w /app
CTN_IP=$(ip route | cut -d ' ' -f3 | head -n1)
sed -i "/::1/s//::1', '$CTN_IP/" /app/web/app_dev.php
fi fi

Binary file not shown.

View File

@ -2,14 +2,13 @@
# @app pluie/alpine-symfony # @app pluie/alpine-symfony
# @author a-Sansara https://git.pluie.org/pluie/docker-images # @author a-Sansara https://git.pluie.org/pluie/docker-images
if [ -z "$CREATE_WWW_DIR" ]; then if [ ! -z "$CREATE_WWW_DIR" ]; then
cd /tmp cd /tmp
ls -la /tmp
mkdir $WWW_DIR
symfony new app $SYMFONY_VERSION symfony new app $SYMFONY_VERSION
mv app/* /app/ rm -rf /app/web
mv -f app/* /app/
chown -R 1000:apache /app/ chown -R 1000:apache /app/
mkdir -p /app/var/logs chmod -R 777 /app/var
chown -R 1000:apache /app/var CTN_IP=$(ip route | cut -d ' ' -f3 | head -n1)
chmod -R g+w /app/ sed -i "/::1/s//::1', '$CTN_IP/" /app/web/app_dev.php
fi fi