Skip to content
Snippets Groups Projects
Commit 421f3ff0 authored by Maciej Osyda's avatar Maciej Osyda
Browse files

Wordpress install script draft

parent c22eb6f4
Branches
Tags
No related merge requests found
FROM ubuntu:14.04
MAINTAINER Kamil Manka <kamil.manka@gmail.com>
MAINTAINER Maciej Osyda <maciej.osyda@gmail.com>
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install unzip curl
ADD run.sh /run.sh
RUN chmod +x /run.sh
RUN mkdir -p /var/www/html
ADD install-wc.sh /var/www/html/install-wc.sh
# apache config
ENV APACHE_RUN_USER www-data
......
#!/bin/bash -x
mysql -u root -e "CREATE DATABASE IF NOT EXISTS \`wordpress\` CHARACTER SET utf8 COLLATE utf8_general_ci;"
cd /var/www/html
./wp-cli core download --version=3.5
./wp-cli core config --dbname=wordpress --dbuser=root --dbpass=root
./wp-cli core install --url=http://localhost:8888/wordpress/ --title=WordPress --admin_user=admin --admin_password=admin123 --admin_email=somefakeemail@fakedomain.com
#!/bin/bash
if [ -z "$PS_VERSION" ]; then
echo "Prestashop version not found. Please set up PS_VERSION variable properly."
exit 1
fi
curl -s -o /tmp/temp "https://www.prestashop.com/download/old/prestashop_$PS_VERSION.zip"
unzip -q /tmp/temp -d /tmp
cp -rf /tmp/prestashop/* /var/www/html
rm -rf /tmp/*
chown -R www-data:www-data /var/www
if [ -n "$PLUGIN_NAME" ]; then
chmod -Rf 777 /var/www/html/modules/$PLUGIN_NAME
fi
curl -O -s https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /var/www/html/wp-cli
if [ -n "$1" ]; then
exec $1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment