Skip to content

Commit

Permalink
Update 3.4.3 (#8)
Browse files Browse the repository at this point in the history
Update 3.4.3 (#8)
  • Loading branch information
khs1994 authored Dec 7, 2017
1 parent 2c60e51 commit 457b0d8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
6 changes: 3 additions & 3 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ FROM node:9-alpine

ENV TZ=Asia/Shanghai

COPY docker-entrypoint.sh /usr/local/bin

WORKDIR /srv/hexo

COPY package.json package.json

RUN apk add --no-cache \
tzdata \
git \
openssh \
openssh-client \
openssl \
&& npm install \
&& mkdir -p ~/.ssh \
Expand All @@ -25,6 +23,8 @@ EXPOSE 4000

WORKDIR /srv/hexo-src

COPY docker-entrypoint.sh /usr/local/bin

ENTRYPOINT ["docker-entrypoint.sh"]

CMD build
3 changes: 3 additions & 0 deletions alpine/docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sut:
build: .
command: version
8 changes: 6 additions & 2 deletions alpine/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

START=`date "+%F %T"`

if [ $1 = "sh" ];then
sh
if [ $1 = "sh" ];then sh; exit 0; fi

if [ $1 = "version" ];then
cd ../hexo
tar -zxvf node_modules.tar.gz > /dev/null 2>&1
./node_modules/hexo/bin/hexo version
exit 0
fi

Expand Down
4 changes: 2 additions & 2 deletions alpine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"author": "khs1994.com",
"private": true,
"hexo": {
"version": "3.4.2"
"version": "3.4.3"
},
"scripts": {
"generate": "./node_modules/hexo/bin/hexo g",
"deploy": "./node_modules/hexo/bin/hexo d",
"version": "./node_modules/hexo/bin/hexo version"
},
"dependencies": {
"hexo": "^3.4.2",
"hexo": "^3.4.3",
"hexo-deployer-git": "^0.3.1",
"hexo-generator-archive": "^0.1.5",
"hexo-generator-category": "^0.1.3",
Expand Down

0 comments on commit 457b0d8

Please sign in to comment.