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
50a14079
Commit
50a14079
authored
5 years ago
by
Armin Co
Browse files
Options
Downloads
Patches
Plain Diff
Added script.
Script to build mumble web.
parent
90d03bec
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
build_mumble_web.sh
+39
-0
39 additions, 0 deletions
build_mumble_web.sh
with
39 additions
and
0 deletions
build_mumble_web.sh
0 → 100755
+
39
−
0
View file @
50a14079
#!/bin/bash
# Mumble-Web repository
REPOSITORY
=
"mumble-web"
URL_GITHUB
=
"https://github.com/Johni0702/
${
REPOSITORY
}
.git"
# name of the image which will be build
IMAGE_NAME
=
"build_mumble_web_image"
# name of the temporarily created container
CONTAINER_NAME
=
"build_mumble_web_container"
# path to the directorie "dist" in the image
DIST_DIR
=
"/home/node/dist"
# path on the host where to copy the files
DESTINATION_HOST
=
"./dist"
# check if git repository is already cloned
# then pull updates
# if not clone repository
if
cd
$REPOSITORY
then
git pull
cd
../
else
git clone
$URL_GITHUB
fi
# build docker image
docker build
-t
$IMAGE_NAME
.
# create temporary container
docker create
--name
$CONTAINER_NAME
"
${
IMAGE_NAME
}
"
# copy files from container to host
docker
cp
$CONTAINER_NAME
:
"
${
DIST_DIR
}
"
$DESTINATION_HOST
# remove created container
docker
rm
-f
$CONTAINER_NAME
# remove the created image
# otherwise it would only pull updates
# from other node dependenices
# if there was an update in the repository
docker rmi
$IMAGE_NAME
\ 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