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
5122b5f4
Commit
5122b5f4
authored
Dec 07, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui-lua
parent
763ecbc5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
84 deletions
+0
-84
Dockerfile
templates/ui_lua/Dockerfile
+0
-24
default.conf
templates/ui_lua/default.conf
+0
-8
docker-entrypoint.sh
templates/ui_lua/docker-entrypoint.sh
+0
-25
nginx.conf
templates/ui_lua/nginx.conf
+0
-27
No files found.
templates/ui_lua/Dockerfile
deleted
100644 → 0
View file @
763ecbc5
FROM
192.168.4.36/baseimg/nginx
MAINTAINER
kalvin "dekun.dai@quantgroup.cn"
ARG
SYSTEM_NAME
ARG
BUILD_NUMBER
USER
root
ENV
SYSTEM_NAME=${SYSTEM_NAME}
WORKDIR
/home/quant_group
RUN
mkdir
${
SYSTEM_NAME
}
RUN
echo
"
${
BUILD_NUMBER
}
"
>>
./version.txt
EXPOSE
80
COPY
docker-entrypoint.sh .
COPY
dist.tgz ./${SYSTEM_NAME}/dist.tgz
COPY
default.conf /etc/nginx/conf.d/default.conf
COPY
nginx.conf /etc/nginx/nginx.conf
RUN
chmod
+x ./docker-entrypoint.sh
CMD
./docker-entrypoint.sh ${SYSTEM_NAME}
VOLUME
/home/quant_group/logs/
templates/ui_lua/default.conf
deleted
100644 → 0
View file @
763ecbc5
server
{
listen
80
;
server_name
_
;
location
/ {
root
/
home
/
quant_group
/
project
/
public
;
}
}
templates/ui_lua/docker-entrypoint.sh
deleted
100755 → 0
View file @
763ecbc5
#!/bin/sh
echo
"deploy ui"
module_name
=
$1
package_path
=
"/home/quant_group/
${
module_name
}
"
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
echo
"nginx -g 'daemon off;'"
nginx
-g
'daemon off;'
templates/ui_lua/nginx.conf
deleted
100644 → 0
View file @
763ecbc5
user
nginx
;
worker_processes
1
;
error_log
/var/log/nginx/error.log
warn
;
pid
/var/run/nginx.pid
;
events
{
worker_connections
1024
;
}
http
{
include
/etc/nginx/mime.types
;
default_type
application/octet-stream
;
log_format
main
'
$remote_addr
-
$remote_user
[
$time_local
]
"
$request
"
'
'
$status
$body_bytes_sent
"
$http_referer
"
'
'"
$http_user_agent
"
"
$http_x_forwarded_for
"'
;
access_log
/var/log/nginx/access.log
main
;
server_names_hash_bucket_size
64
;
sendfile
on
;
keepalive_timeout
65
;
include
/etc/nginx/conf.d/*.conf
;
}
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