Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
courses
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
R3
school
courses
Commits
9d3afe24
Verified
Commit
9d3afe24
authored
5 years ago
by
Laurent Heirendt
Browse files
Options
Downloads
Patches
Plain Diff
add contribute shell
parent
1f4f417f
No related branches found
No related tags found
2 merge requests
!58
Regular merge of develop
,
!57
Docker system
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contribute.sh
+35
-0
35 additions, 0 deletions
contribute.sh
with
35 additions
and
0 deletions
contribute.sh
0 → 100755
+
35
−
0
View file @
9d3afe24
#!/bin/bash
# set the variables
dockerImg
=
"git-r3lab.uni.lu:4567/r3/docker/nodejs-yarn-grunt"
dockerPort
=
"9000"
helpFunction
()
{
echo
""
echo
"Usage:
$0
-d parameterDate -n parameterName"
echo
-e
"
\t
-d Data of presentation"
echo
-e
"
\t
-n Name of presentation"
exit
1
# Exit script after printing help
}
while
getopts
"d:n:"
opt
do
case
"
$opt
"
in
d
)
parameterDate
=
"
$OPTARG
"
;;
n
)
parameterName
=
"
$OPTARG
"
;;
?
)
helpFunction
;;
# Print helpFunction in case parameter is non-existent
esac
done
# Print helpFunction in case parameters are empty
if
[
-z
"
$parameterDate
"
]
||
[
-z
"
$parameterName
"
]
then
echo
"Some or all of the parameters are empty"
;
helpFunction
fi
# launch the docker file
cmd
=
"python contribute.py --date=
\"
$parameterDate
\"
--name=
\"
$parameterName
\"
"
docker run
-p
$dockerPort
:
$dockerPort
-it
-v
$(
pwd
)
/:/presentation
$dockerImg
/bin/bash
-c
"
$cmd
"
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