Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Docker - WooCommerce images
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Tools
Docker - WooCommerce images
Commits
421f3ff0
Commit
421f3ff0
authored
9 years ago
by
Maciej Osyda
Browse files
Options
Downloads
Patches
Plain Diff
Wordpress install script draft
parent
c22eb6f4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+2
-1
2 additions, 1 deletion
Dockerfile
install-wc.sh
+10
-0
10 additions, 0 deletions
install-wc.sh
run.sh
+3
-14
3 additions, 14 deletions
run.sh
with
15 additions
and
15 deletions
Dockerfile
+
2
−
1
View file @
421f3ff0
FROM
ubuntu:14.04
FROM
ubuntu:14.04
MAINTAINER
Kamil Manka <kamil.mank
a@gmail.com>
MAINTAINER
Maciej Osyda <maciej.osyd
a@gmail.com>
RUN
DEBIAN_FRONTEND
=
noninteractive apt-get
-y
install
unzip curl
RUN
DEBIAN_FRONTEND
=
noninteractive apt-get
-y
install
unzip curl
ADD
run.sh /run.sh
ADD
run.sh /run.sh
RUN
chmod
+x /run.sh
RUN
chmod
+x /run.sh
RUN
mkdir
-p
/var/www/html
RUN
mkdir
-p
/var/www/html
ADD
install-wc.sh /var/www/html/install-wc.sh
# apache config
# apache config
ENV
APACHE_RUN_USER www-data
ENV
APACHE_RUN_USER www-data
...
...
This diff is collapsed.
Click to expand it.
install-wc.sh
0 → 100644
+
10
−
0
View file @
421f3ff0
#!/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
This diff is collapsed.
Click to expand it.
run.sh
+
3
−
14
View file @
421f3ff0
#!/bin/bash
#!/bin/bash
if
[
-z
"
$PS_VERSION
"
]
;
then
curl
-O
-s
https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
echo
"Prestashop version not found. Please set up PS_VERSION variable properly."
chmod
+x wp-cli.phar
exit
1
sudo mv
wp-cli.phar /var/www/html/wp-cli
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
if
[
-n
"
$1
"
]
;
then
if
[
-n
"
$1
"
]
;
then
exec
$1
exec
$1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment