Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-dockerfiles
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
qg-dockerfiles
Commits
88d3a306
Commit
88d3a306
authored
Dec 27, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbugs
parent
3fe20b18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
19 deletions
+7
-19
Dockerfile
templates/openresty/Dockerfile
+1
-3
docker-entrypoint.sh
templates/openresty/docker-entrypoint.sh
+6
-16
No files found.
templates/openresty/Dockerfile
View file @
88d3a306
...
...
@@ -11,15 +11,13 @@ ENV BRANCH_NAME=$BRANCH_NAME
USER
root
WORKDIR
/home/quant_group
RUN
mkdir
project
RUN
echo
"BUILD_NUMBER:
${
BUILD_NUMBER
}
,SYSTEM_NAME:
${
SYSTEM_NAME
}
,BRANCH_NAME:
${
BRANCH_NAME
}
"
>>
./build_info
EXPOSE
80
COPY
docker-entrypoint.sh .
COPY
dist.tgz ./project/dist.tgz
COPY
default.conf /usr/local/openresty/nginx/conf.d/default.conf
COPY
*dist.tgz .
RUN
chmod
+x ./docker-entrypoint.sh
...
...
templates/openresty/docker-entrypoint.sh
View file @
88d3a306
#!/bin/sh
echo
"deploy openresty"
module_name
=
'project'
package_path
=
"/home/quant_group/
${
module_name
}
"
package_path
=
"/home/quant_group"
echo
"cd
${
package_path
}
"
cd
${
package_path
}
echo
"mkdir -p public"
mkdir
-p
${
package_path
}
/public
echo
"rm public/* -rf"
rm
${
package_path
}
/public/
*
-rf
echo
"tar zxf dist.tgz -C
${
package_path
}
/public"
tar
zxf
${
package_path
}
/dist.tgz
-C
${
package_path
}
/public
echo
"mv public/dist/* public"
mv
${
package_path
}
/public/dist/
*
public
echo
"rm dist.tgz public/dist -rf"
rm
${
package_path
}
/dist.tgz
${
package_path
}
/public/dist
-rf
for
entry
in
./
*
.tgz
do
echo
"tar zxf
${
$entry
}
-C
${
package_path
}
"
tar
zxf
${
package_path
}
/
$entry
-C
${
package_path
}
done
echo
"/usr/bin/openresty -g 'daemon off;'"
/usr/bin/openresty
-g
'daemon off;'
\ No newline at end of file
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