Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
docker-mirai-cqhttp
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
docker-mirai-cqhttp
Commits
db30e84d
Commit
db30e84d
authored
Apr 30, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
novnc
parent
54a2efbb
Pipeline
#3068
passed with stage
in 3 minutes and 7 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
80 additions
and
0 deletions
+80
-0
Dockerfile.novnc
Dockerfile.novnc
+26
-0
novnc-supervisord.conf
novnc-supervisord.conf
+24
-0
pm2-novnc.json
pm2-novnc.json
+30
-0
No files found.
Dockerfile.novnc
0 → 100644
View file @
db30e84d
ARG BASE_IMAGE=git-registry.mycard.moe/nanahira/docker-mirai-cqhttp:x
FROM ${BASE_IMAGE}
RUN apt update && \
apt -y install python3 git x11vnc xvfb socat npm && \
npm install -g pm2 && \
git clone --depth=1 https://github.com/kanaka/noVNC.git /usr/src/noVNC && \
git clone --depth=1 https://github.com/kanaka/websockify.git /usr/src/noVNC/utils/websockify \
&& sed -i -- "s/ps -p/ps -o pid | grep/g" /usr/src/noVNC/utils/launch.sh \
&& rm -rf /usr/src/noVNC/.git /usr/src/noVNC/utils/websockify/.git \
&& apt -y purge git \
&& apt -y autoremove && \
rm -rf /var/tmp/* /tmp/* /var/lib/apt/lists/*
ENV HOME=/root \
DEBIAN_FRONTEND=noninteractive \
LANG=en_US.UTF-8 \
LANGUAGE=en_US.UTF-8 \
LC_ALL=C.UTF-8 \
DISPLAY=:0.0 \
DISPLAY_WIDTH=425 \
DISPLAY_HEIGHT=900
#COPY ./novnc-supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY ./pm2-novnc.json /usr/src/app/pm2-novnc.json
CMD ["pm2-docker", "/usr/src/app/pm2-novnc.json"]
novnc-supervisord.conf
0 → 100644
View file @
db30e84d
[
supervisord
]
nodaemon
=
true
[
program
:
X11
]
command
=
Xvfb
:
0
-
screen
0
425
x900x24
autorestart
=
true
[
program
:
x11vnc
]
command
=/
usr
/
bin
/
x11vnc
autorestart
=
true
[
program
:
novnc
]
command
=/
usr
/
src
/
noVNC
/
utils
/
launch
.
sh
--
vnc
localhost
:
5900
--
listen
8080
autorestart
=
true
[
program
:
socat
]
command
=
socat
tcp
-
listen
:
6000
,
reuseaddr
,
fork
unix
:/
tmp
/.
X11
-
unix
/
X0
autorestart
=
true
[
program
:
mirai
]
command
=
java
-
jar
./
mcl
.
jar
directory
=/
usr
/
src
/
app
autorestart
=
true
pm2-novnc.json
0 → 100644
View file @
db30e84d
{
"apps"
:
[
{
"name"
:
"x11"
,
"script"
:
"bash"
,
"args"
:
" -c 'Xvfb :0 -screen 0 ${DISPLAY_WIDTH}x${DISPLAY_HEIGHT}x24'"
},
{
"name"
:
"x11vnc"
,
"script"
:
"/usr/bin/x11vnc"
},
{
"name"
:
"novnc"
,
"script"
:
"/usr/src/noVNC/utils/launch.sh"
,
"args"
:
"--vnc localhost:5900 --listen 8080"
,
"interpreter"
:
"bash"
},
{
"name"
:
"socat"
,
"script"
:
"socat"
,
"args"
:
"tcp-listen:6000,reuseaddr,fork unix:/tmp/.X11-unix/X0"
},
{
"name"
:
"mirai"
,
"script"
:
"java"
,
"cwd"
:
"/usr/src/app"
,
"args"
:
"-jar ./mcl.jar"
}
]
}
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