Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
srvpro
Commits
9aaf5ddd
Commit
9aaf5ddd
authored
Mar 20, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mc'
parents
dfee2819
16bb8ccc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
11 deletions
+23
-11
Dockerfile
Dockerfile
+2
-3
data/entrypoint.sh
data/entrypoint.sh
+0
-8
data/pm2-docker.json
data/pm2-docker.json
+21
-0
No files found.
Dockerfile
View file @
9aaf5ddd
FROM
node:stretch
RUN
ssh-keygen
-A
RUN
sed
-i
's/deb.debian.org/ftp.cn.debian.org/g'
/etc/apt/sources.list
RUN
apt update
RUN
apt
install
-y
openssh-server locales curl git vim
sudo
cron build-essential premake4 libevent-dev libsqlite3-dev liblua5.3-dev mono-complete sqlite3 p7zip-full redis-server
RUN
apt
install
-y
openssh-server locales curl git vim
build-essential premake4 libevent-dev libsqlite3-dev liblua5.3-dev mono-complete sqlite3 p7zip-full
RUN
ln
-s
/usr/lib/x86_64-linux-gnu/liblua5.3.so /usr/lib/liblua.so
RUN
npm
install
pm2
coffeescript@1.12.7
-g
RUN
npm
install
pm2
-g
# 系统源
#RUN sed -i 's/deb.debian.org/ftp.cn.debian.org/g' /etc/apt/sources.list
...
...
data/entrypoint.sh
deleted
100644 → 0
View file @
dfee2819
#!/bin/bash
if
[
-n
"
$authorized_keys
"
]
&&
[
!
-f
/root/.ssh/authorized_keys
]
;
then
mkdir
/root/.ssh
;
printenv
authorized_keys
>
/root/.ssh/authorized_keys
;
chmod
600 /root/.ssh/authorized_keys
;
fi
if
[
-n
"
$password
"
]
&&
passwd
--status
|
grep
-q
'L'
;
then
echo
"root:
$password
"
| chpasswd
;
fi
unset
authorized_keys
unset
password
if
[
-s
/root/.pm2/dump.pm2
]
;
then
pm2 resurrect
;
fi
/usr/sbin/sshd
-D
data/pm2-docker.json
0 → 100644
View file @
9aaf5ddd
{
"apps"
:
[
{
"name"
:
"ygopro-server"
,
"script"
:
"/ygopro-server/ygopro-server.js"
,
"cwd"
:
"/ygopro-server"
},
{
"name"
:
"windbot"
,
"script"
:
"/ygopro-server/windbot/WindBot.exe"
,
"cwd"
:
"/ygopro-server/windbot/"
,
"args"
:
"ServerMode=true ServerPort=2399"
,
"interpreter"
:
"mono"
},
{
"name"
:
"redis-server"
,
"script"
:
"/usr/bin/redis-server"
,
"cwd"
:
"/redis"
}
]
}
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