Commit a268c1a0 authored by Simonas's avatar Simonas

in progress

parent 53aae2ea
......@@ -8,7 +8,6 @@ RUN set -ex; \
savedAptMark="$(apt-mark showmanual)"; \
\
apt-get update; \
apt-get install unzip wget; \
apt-get install -y --no-install-recommends \
libjpeg-dev \
libpng-dev \
......@@ -44,8 +43,8 @@ RUN { \
VOLUME /var/www/html
ENV WORDPRESS_VERSION 5.0
ENV WORDPRESS_SHA1 67758958f14c1dcefe37ce6558d470a4e142893b
ENV WORDPRESS_VERSION 5.0.3
ENV WORDPRESS_SHA1 f9a4b482288b5be7a71e9f3dc9b5b0c1f881102b
RUN set -ex; \
curl -o wordpress.tar.gz -fSL "https://wordpress.org/wordpress-${WORDPRESS_VERSION}.tar.gz"; \
......@@ -55,12 +54,15 @@ RUN set -ex; \
rm wordpress.tar.gz; \
chown -R www-data:www-data /usr/src/wordpress
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
COPY ./wp-content/themes/biuro /temp/themes/biuro
COPY ./wp-content/plugins/ /temp/plugins/
COPY ./wp-content/uploads/ /temp/uploads/
COPY ./wp-content/content/ /temp/content/
RUN \
unzip '/temp/themes/*.zip' -d /temp/themes && rm /temp/themes/*.zip || true; \
......
......@@ -113,9 +113,12 @@ Restart docker (sometimes PC restart may be required)
- 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 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
- `docker exec -it mysql bash`
......
......@@ -288,8 +288,10 @@ fi
cp -r /temp/themes/* $THEME_DIR || true
cp -r /temp/plugins/* $PLUGIN_DIR || true
cp -r /temp/uploads/* $UPLOADS_DIR || true
# cp -r /temp/base/* $CONTENT_DIR || true
cp -r /temp/content/* $ROOT_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
exec "$@"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment