Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Mumble Web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Armin Co
Mumble Web
Commits
aeb6bffd
Verified
Commit
aeb6bffd
authored
5 years ago
by
Armin Co
Browse files
Options
Downloads
Patches
Plain Diff
Updated README
parent
cf580141
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1
Feature nginx.
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+24
-31
24 additions, 31 deletions
README.md
with
24 additions
and
31 deletions
README.md
+
24
−
31
View file @
aeb6bffd
# Build Mumble Web
# Build Mumble Web
A script to build the mumble-web app in a docker image.
You can use the
`build_mumble_web.sh`
script to build the mumble-web application, which
can be deployed with an webserver. The application
will be stored at
`./dist`
.
The script will clone the
[
mumble-web
](
https://github.com/Johni0702/mumble-web
)
repository.
The script will clone the
[
mumble-web
](
https://github.com/Johni0702/mumble-web
)
repository.
If the repository already was cloned it will pull the latest commits.
If the repository already was cloned it will pull the latest commits.
Afterwards the docker image, defined in the
[
Dockerfile
](
https://gitlab.cvh-server.de/aco/build-mumble-web/-/blob/master/Dockerfile
)
, will be build.
Afterwards the docker image, defined in the
[
Dockerfile
](
https://gitlab.cvh-server.de/aco/build-mumble-web/-/blob/master/Dockerfile
)
, will be build.
**Dockerfile**
## build
-
alpine:edge
To build the mumble-web application: just run the script!
-
copy content of repository into image
-
install git and npm
-
npm: install, run build, audit fix, audit
The image contains the generated files of the app, which can be published by a webserver.
```
bash
To copy these files out of the image it is necessary to create a container out of this image.
./build_mumble_web.sh
Therefore the command 'docker create' needs to be executed.
```
Afterwards the directory can be copied with 'docker cp'.
## testing
The container and the image are not longer needed, so they will be removed at the end.
If you want to test mumble web, you can deploy it together with mumble and websockify
via the provided 'docker-compose.yml' file.
```
# to deploy run:
docker-compose up -d
```
This will build two containers. One with mumble-web and nginx as a webserver and the second container
just contains websockify. The imae for the third container will not be build localy but
pulled from DockerHub. The container will serve murmur (mumble server)
for this test deployment.
The web application will be accessible via:
[
https://localhost
](
https://localhost
)
.
The certificate is self signed, so your browser will warn you when you try to access the site.
**
V
erifying
commits
**
**
v
erifying
the mumble-web repository
**
Commits made from the online editor are signed with the github web-flow key.
Commits made from the online editor are signed with the github web-flow key.
Other commits are not verified.
Other commits are not verified.
[
https://github.com/web-flow.gpg
](
https://github.com/web-flow.gpg
)
[
https://github.com/web-flow.gpg
](
https://github.com/web-flow.gpg
)
\ No newline at end of file
**Testing**
To test if the generation of the website files was succesfully
a test version can be run with websockify.
```
openssl req -newkey rsa:2048 -nodes -keyout test.key -x509 -days 365 -out test.crt
websockify --cert=test.crt --key=test.key --ssl-only --ssl-target --web=/home/node/dist 443 MUMBLE_SERVER:64738
```
**Deploy**
When the website is not deployed with websockify, it is still needed for the websocket.
```websockify --ssl-target 64737 MUMBLE_SERVER:64738```
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment