Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dev.biuro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Biuro
dev.biuro
Commits
a268c1a0
Commit
a268c1a0
authored
Jan 15, 2019
by
Simonas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
in progress
parent
53aae2ea
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
Dockerfile
Dockerfile
+5
-3
README.md
README.md
+5
-2
docker-entrypoint.sh
docker-entrypoint.sh
+3
-1
No files found.
Dockerfile
View file @
a268c1a0
...
@@ -8,7 +8,6 @@ RUN set -ex; \
...
@@ -8,7 +8,6 @@ RUN set -ex; \
savedAptMark
=
"
$(
apt-mark showmanual
)
"
;
\
savedAptMark
=
"
$(
apt-mark showmanual
)
"
;
\
\
\
apt-get update
;
\
apt-get update
;
\
apt-get
install
unzip wget
;
\
apt-get
install
-y
--no-install-recommends
\
apt-get
install
-y
--no-install-recommends
\
libjpeg-dev
\
libjpeg-dev
\
libpng-dev
\
libpng-dev
\
...
@@ -44,8 +43,8 @@ RUN { \
...
@@ -44,8 +43,8 @@ RUN { \
VOLUME
/var/www/html
VOLUME
/var/www/html
ENV
WORDPRESS_VERSION 5.0
ENV
WORDPRESS_VERSION 5.0
.3
ENV
WORDPRESS_SHA1
67758958f14c1dcefe37ce6558d470a4e142893
b
ENV
WORDPRESS_SHA1
f9a4b482288b5be7a71e9f3dc9b5b0c1f881102
b
RUN
set
-ex
;
\
RUN
set
-ex
;
\
curl
-o
wordpress.tar.gz
-fSL
"https://wordpress.org/wordpress-
${
WORDPRESS_VERSION
}
.tar.gz"
;
\
curl
-o
wordpress.tar.gz
-fSL
"https://wordpress.org/wordpress-
${
WORDPRESS_VERSION
}
.tar.gz"
;
\
...
@@ -55,12 +54,15 @@ RUN set -ex; \
...
@@ -55,12 +54,15 @@ RUN set -ex; \
rm wordpress.tar.gz; \
rm wordpress.tar.gz; \
chown -R www-data:www-data /usr/src/wordpress
chown -R www-data:www-data /usr/src/wordpress
COPY
docker-entrypoint.sh /usr/local/bin/
COPY
docker-entrypoint.sh /usr/local/bin/
RUN
chmod
+x /usr/local/bin/docker-entrypoint.sh
RUN
chmod
+x /usr/local/bin/docker-entrypoint.sh
COPY
./wp-content/themes/biuro /temp/themes/biuro
COPY
./wp-content/themes/biuro /temp/themes/biuro
COPY
./wp-content/plugins/ /temp/plugins/
COPY
./wp-content/plugins/ /temp/plugins/
COPY
./wp-content/uploads/ /temp/uploads/
COPY
./wp-content/uploads/ /temp/uploads/
COPY
./wp-content/content/ /temp/content/
RUN
\
RUN
\
unzip
'/temp/themes/*.zip'
-d
/temp/themes
&&
rm
/temp/themes/
*
.zip
||
true
;
\
unzip
'/temp/themes/*.zip'
-d
/temp/themes
&&
rm
/temp/themes/
*
.zip
||
true
;
\
...
...
README.md
View file @
a268c1a0
...
@@ -113,9 +113,12 @@ Restart docker (sometimes PC restart may be required)
...
@@ -113,9 +113,12 @@ Restart docker (sometimes PC restart may be required)
-
docker load --input ourdemo.tar
-
docker load --input ourdemo.tar
-
docker build -t simoncereska/biuro-staging:0.0.
2
.
-
docker build -t simoncereska/biuro-staging:0.0.
6
.
-
docker login --username=simoncereska --password=rlgjsPeOuF2T6VgW8fGss81h
-
docker login --username=simoncereska --password=rlgjsPeOuF2T6VgW8fGss81h
-
docker push simoncereska/biuro-staging:0.0.2
-
docker push simoncereska/biuro-staging:0.0.6
-
sudo chown -R www-data:www-data wordpress/wp-content/plugins
### DB preview
### DB preview
-
`docker exec -it mysql bash`
-
`docker exec -it mysql bash`
...
...
docker-entrypoint.sh
View file @
a268c1a0
...
@@ -288,8 +288,10 @@ fi
...
@@ -288,8 +288,10 @@ fi
cp
-r
/temp/themes/
*
$THEME_DIR
||
true
cp
-r
/temp/themes/
*
$THEME_DIR
||
true
cp
-r
/temp/plugins/
*
$PLUGIN_DIR
||
true
cp
-r
/temp/plugins/
*
$PLUGIN_DIR
||
true
cp
-r
/temp/uploads/
*
$UPLOADS_DIR
||
true
cp
-r
/temp/uploads/
*
$UPLOADS_DIR
||
true
# cp -r /temp/base/* $CONTEN
T_DIR || true
cp
-r
/temp/content/
*
$ROO
T_DIR
||
true
chown
-R
$WEB_USER
:
$WEB_USER
$ROOT_DIR
/wp-content/themes
chown
-R
$WEB_USER
:
$WEB_USER
$ROOT_DIR
/wp-content/plugins
chown
-R
$WEB_USER
:
$WEB_USER
$ROOT_DIR
/wp-content/uploads
chown
-R
$WEB_USER
:
$WEB_USER
$ROOT_DIR
/wp-content/uploads
exec
"
$@
"
exec
"
$@
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment