mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 12:23:35 +01:00
3dc19702e0
Signed-off-by: Jess Frazelle <jess@mesosphere.com>
29 lines
727 B
Bash
Executable File
29 lines
727 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
ROOT=/gitiles
|
|
PROPERTIES=
|
|
|
|
if [ "x$1" != "x" ]; then
|
|
PROPERTIES="-Dcom.google.gitiles.configPath=$1"
|
|
else
|
|
PROPERTIES="-Dcom.google.gitiles.configPath=/gitfiles.config"
|
|
cat > /gitfiles.config <<-EOF
|
|
[gitiles]
|
|
# Repositories placed here
|
|
basePath = /home/git
|
|
# Do not check they are exported
|
|
exportAll = true
|
|
# This URL will be displayed as clone URL. DO NOT FORGET TRAILING SLASH!
|
|
baseGitUrl = git@g.j3ss.co:
|
|
# Title of site (doh)
|
|
siteTitle = Gitiles - git.j3ss.co
|
|
# I dunno why, but it is have to be configured.
|
|
canonicalHostName = git.j3ss.co
|
|
EOF
|
|
fi
|
|
|
|
PROPERTIES="$PROPERTIES -Dcom.google.gitiles.sourcePath=$ROOT"
|
|
|
|
exec java $PROPERTIES -jar "$ROOT/buck-out/gen/gitiles-dev/dev.jar"
|