Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro-pterodactyl
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
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
MyCard
srvpro-pterodactyl
Commits
358ca31a
Commit
358ca31a
authored
Aug 29, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first
parent
a0e34914
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
105 additions
and
0 deletions
+105
-0
Dockerfile
Dockerfile
+19
-0
entrypoint.sh
entrypoint.sh
+33
-0
install.sh
install.sh
+29
-0
run.sh
run.sh
+24
-0
No files found.
Dockerfile
0 → 100644
View file @
358ca31a
# Dockerfile for SRVPro on YL
FROM
node:12-stretch-slim
# apt
COPY
sources.list /etc/apt/sources.list
RUN
apt update
&&
\
env
DEBIAN_FRONTEND
=
noninteractive apt
install
-y
git wget build-essential libevent-dev libsqlite3-dev mono-complete p7zip-full
RUN
useradd
-ms
/bin/bash container
USER
container
ENV
USER container
ENV
HOME /home/container
WORKDIR
/home/container
COPY
./entrypoint.sh /entrypoint.sh
CMD
["/bin/bash", "/entrypoint.sh"]
entrypoint.sh
0 → 100644
View file @
358ca31a
#!/bin/bash
cd
/home/container
# Output Current Java Version
node
-v
## only really needed to show what version is being used. Should be changed for different applications
#cd /home/container/windbot
#git fetch origin master
#git reset --hard FETCH_HEAD
#xbuild /property:Configuration=Release /property:TargetFrameworkVersion=v4.5
#cd /home/container/ygopro
#git fetch origin server
#git reset --hard FETCH_HEAD
#git submodule foreach git fetch origin master
#git submodule foreach git reset --hard FETCH_HEAD
#./premake5 gmake
#cd build
#make config=release
#cd ..
#strip ygopro
#cd /home/container/ygopro-server
#git fetch origin master
##git reset --hard FETCH_HEAD
#npm install
# Replace Startup Variables
MODIFIED_STARTUP
=
`
eval echo
$(
echo
${
STARTUP
}
|
sed
-e
's/{{/${/g'
-e
's/}}/}/g'
)
`
echo
":/home/container
$
${
MODIFIED_STARTUP
}
"
#curl https://raw.githubusercontent.com/Pterodactyl-CN/images/master/ad.txt
# Run the Server
eval
${
MODIFIED_STARTUP
}
install.sh
0 → 100644
View file @
358ca31a
#!/bin/bash
git clone https://github.com/moecube/ygopro
--branch
=
server
--recursive
cd
ygopro/
git submodule foreach git checkout master
wget
-O
- https://github.com/premake/premake-core/releases/download/v5.0.0-alpha13/premake-5.0.0-alpha13-linux.tar.gz |
tar
zfx -
./premake5 gmake
cd
build/
make
config
=
release
cd
..
ln
-s
bin/release/ygopro ./
strip ygopro
mkdir
replay
cd
..
git clone https://github.com/moecube/windbot
cd
windbot
xbuild /property:Configuration
=
Release /property:TargetFrameworkVersion
=
v4.5
ln
-s
bin/Release/WindBot.exe
.
ln
-s
../ygopro/cards.cdb
.
cd
..
git clone https://github.com/moecube/srvpro ygopro-server
cd
ygopro-server
npm ci
ln
-s
../ygopro
.
ln
-s
../windbot
.
mkdir
decks replays
cd
..
run.sh
0 → 100644
View file @
358ca31a
#!/bin/bash
cd
/home/container/windbot
git fetch origin master
git reset
--hard
FETCH_HEAD
xbuild /property:Configuration
=
Release /property:TargetFrameworkVersion
=
v4.5
cd
/home/container/ygopro
git fetch origin server
git reset
--hard
FETCH_HEAD
git submodule foreach git fetch origin master
git submodule foreach git reset
--hard
FETCH_HEAD
./premake5 gmake
cd
build
make
config
=
release
cd
..
strip ygopro
cd
/home/container/ygopro-server
git fetch origin master
git reset
--hard
FETCH_HEAD
npm
install
node ygopro-server.js
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