Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Sysadmin
Neon Components for OpenQA
Commits
002bf3dc
Commit
002bf3dc
authored
Jan 24, 2017
by
Harald Sitter
⛏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add own embed so we can priv
parent
ec31a411
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
Jenkinsfile
Jenkinsfile
+1
-1
contain.rb
contain.rb
+35
-0
No files found.
Jenkinsfile
View file @
002bf3dc
...
...
@@ -7,7 +7,7 @@ cleanNode('master') {
git
'https://github.com/apachelogger/kde-os-autoinst'
}
stage
(
'run'
)
{
sh
'
~/tooling/kci
/contain.rb /workspace/bootstrap.rb'
sh
'
.
/contain.rb /workspace/bootstrap.rb'
}
}
...
...
contain.rb
0 → 100755
View file @
002bf3dc
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# Copyright (C) 2014-2017 Harald Sitter <sitter@kde.org>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) version 3, or any
# later version accepted by the membership of KDE e.V. (or its
# successor approved by the membership of KDE e.V.), which shall
# act as a proxy defined in Section 6 of version 3 of the license.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library. If not, see <http://www.gnu.org/licenses/>.
require
"
#{
Dir
.
home
}
/tooling/lib/ci/containment"
Docker
.
options
[
:read_timeout
]
=
4
*
60
*
60
# 4 hours.
DIST
=
ENV
.
fetch
(
'DIST'
)
JOB_NAME
=
ENV
.
fetch
(
'JOB_NAME'
)
PWD_BIND
=
ENV
.
fetch
(
'PWD_BIND'
,
'/workspace'
)
c
=
CI
::
Containment
.
new
(
JOB_NAME
,
image:
CI
::
PangeaImage
.
new
(
:ubuntu
,
DIST
),
binds:
[
"
#{
Dir
.
pwd
}
:
#{
PWD_BIND
}
"
],
privileged:
true
)
status_code
=
c
.
run
(
Cmd
:
ARGV
,
WorkingDir
:
PWD_BIND
)
exit
status_code
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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