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
10c55813
Verified
Commit
10c55813
authored
4 years ago
by
Armin Co
Browse files
Options
Downloads
Patches
Plain Diff
Save image build log into build.log
parent
5fb15d6d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+2
-1
2 additions, 1 deletion
.gitignore
build_mumble_web.sh
+11
-5
11 additions, 5 deletions
build_mumble_web.sh
with
13 additions
and
6 deletions
.gitignore
+
2
−
1
View file @
10c55813
dist/
mumble-web/
\ No newline at end of file
mumble-web/
*.log
\ No newline at end of file
This diff is collapsed.
Click to expand it.
build_mumble_web.sh
+
11
−
5
View file @
10c55813
...
...
@@ -12,6 +12,11 @@ DIST_DIR="/home/node/dist"
# path on the host where to copy the files
DESTINATION_HOST
=
"./dist"
function
verify_commit_HEAD
()
{
cd
$REPOSITORY
git verify-commit
-v
HEAD
cd
../
}
# check if git repository is already cloned
# then pull updates
...
...
@@ -19,20 +24,21 @@ DESTINATION_HOST="./dist"
if
cd
$REPOSITORY
then
git pull
git verify-commit
-v
HEAD
cd
../
else
git clone
$URL_GITHUB
cd
$REPOSITORY
git verify-commit
-v
HEAD
cd
../
fi
# print verify-commit output
verify_commit_HEAD
# build docker image
docker build
-t
$IMAGE_NAME
.
printf
"
\n
Building image
\n
"
docker build
-t
$IMAGE_NAME
.
>
build.log
# create temporary container
docker create
--name
$CONTAINER_NAME
"
${
IMAGE_NAME
}
"
# remove previously copied files
rm
-rf
dist/
# copy files from container to host
docker
cp
$CONTAINER_NAME
:
"
${
DIST_DIR
}
"
$DESTINATION_HOST
# remove created container
...
...
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