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
b0eec369
Commit
b0eec369
authored
9 years ago
by
Kamil Manka
Browse files
Options
Downloads
Patches
Plain Diff
Copy instead of mv.
parent
ce0c467b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
Dockerfile
+6
-3
6 additions, 3 deletions
Dockerfile
run.sh
+8
-0
8 additions, 0 deletions
run.sh
with
15 additions
and
3 deletions
.gitignore
0 → 100644
+
1
−
0
View file @
b0eec369
data
This diff is collapsed.
Click to expand it.
Dockerfile
+
6
−
3
View file @
b0eec369
...
...
@@ -3,10 +3,13 @@ MAINTAINER Kamil Manka <kamil.manka@seamless.se>
RUN
DEBIAN_FRONTEND
=
noninteractive apt-get
-y
install
unzip curl
ADD
get_prestashop.sh /get_prestashop
.sh
RUN
chmod
+x /
get_prestashop
.sh
ADD
run.sh /run
.sh
RUN
chmod
+x /
run
.sh
RUN
mkdir
-p
/var/www/html
# SEQR plugin directory
RUN
mkdir
-p
/var/www/html/modules/seqr
# apache config
ENV
APACHE_RUN_USER www-data
ENV
APACHE_RUN_GROUP www-data
...
...
@@ -14,4 +17,4 @@ RUN chown -R www-data:www-data /var/www/
VOLUME
/var/www/html
CMD
["/
get_prestashop
.sh"]
CMD
["/
run
.sh"]
This diff is collapsed.
Click to expand it.
get_prestashop
.sh
→
run
.sh
+
8
−
0
View file @
b0eec369
#!/bin/bash
curl
-s
-o
/tmp/temp
"https://www.prestashop.com/download/old/prestashop_
$PS_VERSION
.zip"
unzip
-q
/tmp/temp
-d
/var/www/html
mv
/var/www/html/prestashop/
*
/var/www/html
rm
-rf
/var/www/html/prestashop
rm
/tmp/temp
chown
-R
www-data:www-data /var/www
\
unzip
-q
/tmp/temp
-d
/tmp
cp
-rf
/tmp/prestashop/
*
/var/www/html
rm
-rf
/tmp/
*
chown
-R
www-data:www-data /var/www
while
true
;
do
true
;
done
while
true
;
do
true
;
done
;
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