Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FWCC
GitLab HPC Driver Prototype
Commits
62360c44
Commit
62360c44
authored
Oct 18, 2019
by
Pape, David (FWCC) - 139658
Browse files
Implemeneted cleanup.
parent
d3119c58
Changes
7
Hide whitespace changes
Inline
Side-by-side
base.sh
0 → 100755
View file @
62360c44
#!/usr/bin/env bash
CUSTOM_ENV_PATH
=
"
$CUSTOM_ENV_CI_RUNNER_ID
-
$CUSTOM_ENV_CI_PROJECT_ID
-
$CUSTOM_ENV_CI_CONCURRENT_PROJECT_ID
-
$CUSTOM_ENV_CI_JOB_ID
"
cleanup.sh
0 → 100755
View file @
62360c44
#!/usr/bin/env bash
set
-e
source
"/home/pape58/gitlab-runner-custom/base.sh"
rm
-r
"/home/pape58/runner-wd/builds/
$CUSTOM_ENV_PATH
"
config.sh
View file @
62360c44
#!/usr/bin/env bash
CUSTOM_ENV_PATH
=
"
$CUSTOM_ENV_CI_RUNNER_ID
-
$CUSTOM_ENV_CI_PROJECT_ID
-
$CUSTOM_ENV_CI_CONCURRENT_PROJECT_ID
-
$CUSTOM_ENV_CI_JOB_ID
"
source
"/home/pape58/gitlab-runner-custom/base.sh"
1>&2
echo
"Config is beeing executed. Custom env path:
$CUSTOM_ENV_PATH
"
cat
<<
EOS
{
"builds_dir": "/home/pape58/runner-wd/builds/
$CUSTOM_ENV_PATH
",
"cache_dir": "/home/pape58/runner-wd/cache/
$CUSTOM_ENV_PATH
",
"builds_dir_is_shared": true
"cache_dir": "/home/pape58/runner-wd/cache/
$CUSTOM_ENV_PATH
"
}
EOS
run.sh
View file @
62360c44
...
...
@@ -114,5 +114,3 @@ else
"
$script
"
fi
exit
0
run.sh.srun
View file @
62360c44
...
...
@@ -32,4 +32,3 @@ else
"
$script
"
fi
exit
0
runner-config.toml
View file @
62360c44
concurrent
=
10
concurrent
=
4
check_interval
=
0
[session_server]
...
...
@@ -11,10 +11,11 @@ check_interval = 0
executor
=
"custom"
builds_dir
=
"/home/pape58/runner-wd/builds"
cache_dir
=
"/home/pape58/runner-wd/cache"
builds_dir_is_shared
=
"
true
"
builds_dir_is_shared
=
true
shell
=
"bash"
[runners.custom]
config_exec
=
"config.sh"
run_exec
=
"run.sh"
config_exec
=
"/home/pape58/gitlab-runner-custom/config.sh"
run_exec
=
"/home/pape58/gitlab-runner-custom/run.sh"
cleanup_exec
=
"/home/pape58/gitlab-runner-custom/cleanup.sh"
graceful_kill_timeout
=
200
force_kill_timeout
=
200
setup.sh
View file @
62360c44
#!/usr/bin/env bash
RUNNER_CONFIG_DIR
=
"/home/
$USER
/.gitlab-runner"
LOCAL_BIN_DIR
=
"/home/
$USER
/.local/bin"
REPO_DIR
=
"
$(
pwd
)
"
which
"gitlab-runner"
>
/dev/null
...
...
@@ -10,9 +9,3 @@ mkdir -p "$RUNNER_CONFIG_DIR"
cd
"
$RUNNER_CONFIG_DIR
"
ln
-s
"
$REPO_DIR
/runner-config.toml"
"config.toml"
mkdir
-p
"
$LOCAL_BIN_DIR
"
cd
"
$LOCAL_BIN_DIR
"
ln
-s
"
$REPO_DIR
/run.sh"
"run.sh"
ln
-s
"
$REPO_DIR
/config.sh"
"config.sh"
exit
0
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment