Jose Carlos Venegas Munoz
20a1928705
obs: docker-build: Pass OBSPROJECT variable
...
Pass project variable to docker run.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-15 16:53:48 -05:00
Jose Carlos Venegas Munoz
5e0dc9efba
obs: update version to 1.2.0
...
Update hashes and versions for new Kata version.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-15 16:53:48 -05:00
Jose Carlos Venegas Munoz
527bd92e2b
obs: image: remove unused variables.
...
Remove unsed variables.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-15 16:53:48 -05:00
Jose Carlos Venegas Munoz
5362e22df0
versions: upadate qemu commit.
...
update qemu commit
Remove unsed variables.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-15 16:53:48 -05:00
Jose Carlos Venegas Munoz
4cce1653a7
obs: lib: remove unused flag APIURL
...
Today we dont change the APIURL remove it by now.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-15 16:53:48 -05:00
Jose Carlos Venegas Munoz
59e3ffcbfa
obs: runtime: fix function call pkg_version.
...
pkg_version require 3 parameters.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-15 16:53:48 -05:00
Jose Carlos Venegas Munoz
19ed81d0d0
obs: qemu set hash variable.
...
Needed by changelog function.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-15 16:53:48 -05:00
Jose Carlos Venegas Munoz
e9ed406d0a
obs: kernel: set unbound variable.
...
Set variable to make happy lib functions
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-15 16:53:48 -05:00
Jose Carlos Venegas Munoz
b06f33bd66
obs: lib: Fix reference to not defined variable.
...
API variable can be empty.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-15 16:53:48 -05:00
Jose Carlos Venegas Munoz
7ccf64ee09
obs: pkglib: remove unused option.
...
Remove unused option.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-15 16:53:48 -05:00
Jose Carlos Venegas Munoz
0c7b2a82c3
obs: image: Fix to use new image tarball name.
...
The image name changed fix to allow obs build.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-15 16:53:48 -05:00
Jose Carlos Venegas Munoz
bb889a464d
obs: build-from-docker.sh: Not build image if already craeted.
...
Accelerate the build process by not creating image again.
Add DEBUG flag to docker run.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-15 16:53:48 -05:00
Jose Carlos Venegas Munoz
9c64f571f6
obs: build_all.sh: serach scripts in own dir.
...
update scripts are relative to this script go to
it and then try to update.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-15 16:53:48 -05:00
Jose Carlos Venegas Munoz
b8a41a8994
gitignore: Ignore tarballs and generated files.
...
Ignore tarballs and sha files
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-15 16:53:48 -05:00
Jose Carlos Venegas Munoz
0628e4de7f
release: add kata-deploy-binaries.sh
...
Add script to generate a tarball with kata binaries install kata
whitout pkgs.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-15 16:53:48 -05:00
Eric Ernst
ea91fff56b
kata-deploy: pull particular version of deploy image
...
For 1.2.0 we are changing the format of the kata-deploy container image.
To avoid issues, pull an explicit version in our daemonset.
In a follow on PR we'll update the yaml/scripts to 1.2.0 format
Fixes : #135
Signed-off-by: Eric Ernst <eric.ernst@intel.com >
2018-08-14 15:49:16 -07:00
Jose Carlos Venegas Munoz
79da855b83
build-image: Dont create image in script dir.
...
Create in the current directory where the script is called.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-14 14:08:42 -05:00
Jose Carlos Venegas Munoz
91c7213148
relase: add script publish-kata-image.sh
...
Add script to publish kata image in agent repository.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-14 14:07:45 -05:00
Jose Carlos Venegas Munoz
639df2276b
build-image: Pass DEBUG to osbuilder.
...
Pass debug flag when we use docker.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-14 14:00:36 -05:00
Jose Carlos Venegas Munoz
8c223e811c
lib: get deps based in a branch.
...
We want to create pacakges based in different branches modify
function to get the yaml version needed to to that.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-14 14:00:36 -05:00
Jose Carlos Venegas Munoz
764ce02779
obs: build_all.sh: Add usage function (refactor)
...
Add usage function.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-14 14:00:36 -05:00
Jose Carlos Venegas Munoz
0d789968a4
obs: build_from_docker: Add arg to build based in a branch.
...
Build OBS packages based in a kata brach.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-14 14:00:36 -05:00
Jose Carlos Venegas Munoz
f7074e178a
obs: : Minor bash fixes (refactor)
...
Remove unused variables and set default value to variables.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-14 14:00:36 -05:00
Jose Carlos Venegas Munoz
6c5c293f81
obs: scripts: Set bash options (refactor)
...
Add long name bash options.
Make xtrace optional when DEBUG variable is set.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-14 14:00:36 -05:00
Jose Carlos Venegas Munoz
1659d4ace7
obs: pkglib: get_obs_pkg_release: Allow find release number in empty repo.
...
If we can not find a release number in a file this means
it is an new repository. This could happend when upload changes
for a new brach.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-13 12:21:45 -05:00
Graham Whaley
0f5e37cf9f
Merge pull request #134 from nitkon/broken_link
...
snap: Fix broken link in README
2018-08-13 17:36:24 +01:00
Eric Ernst
f512a087f3
Merge pull request #132 from nitkon/patch-2
...
snap-build: Fix a typo in README
2018-08-13 07:33:55 -07:00
Nitesh Konkar
d30b523c9f
snap: Fix broken link in README
...
The Integration with docker link in
README is broken. Fix it.
Fixes : #133
Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
2018-08-13 17:01:35 +05:30
Nitesh Konkar
25278f9c64
snap-build: Refactor and fix a typo in README
...
The #usage part of README talks about
cross building snap images for all "supported
architectures" not "supported images".
Also fold the "Usage" part into "Cross-build
snap images" section.
Fixes : #131
Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
2018-08-13 14:57:00 +05:30
Graham Whaley
f23ddb7600
Merge pull request #130 from nitkon/patch-1
...
snap: Improve README
2018-08-13 09:59:51 +01:00
nitkon
35c1632c2b
snap: Improve README
...
Improve README by pointing to a specific sub-section
in runtime repo that actually talks about the possibility
of having multiple configurations files.
Fixes : #129
Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
2018-08-11 20:14:22 +05:30
Julio Montes
6cea1e14be
Merge pull request #128 from nitkon/snapcraft
...
snapcraft.yaml: Use the correct powerpc kernel config name
2018-08-10 13:38:19 -05:00
Graham Whaley
5a500c95f0
Merge pull request #125 from nitkon/master
...
lib.sh: install_yq fails on ppc64le
2018-08-10 15:35:59 +01:00
Nitesh Konkar
d009421e17
snapcraft.yaml: Use the correct powerpc kernel config name
...
Kernel building fails as part of "make snap" as
the kernel config file is renamed from ppc64le_kata_kvm_4.14.x
to powerpc_kata_kvm_4.14.x
Fixes: #127
Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
2018-08-10 19:16:03 +05:30
Nitesh Konkar
63a9b2291e
lib.sh: install_yq fails on ppc64le
...
install_yq() has no arch entry for
ppc64le and hence installing yq
fails on Power systems.
Fixes : #124
Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
2018-08-10 18:25:10 +05:30
Eric Ernst
7705d68f7d
Merge pull request #99 from devimc/snap/multiArch
...
snap: cross-build snap images
2018-08-09 07:35:15 -07:00
Julio Montes
a8a4e15951
snap-build: implement system to cross-build snap images
...
Add scripts to cross-build snap images for all supported
architectures using virtual machines
fixes #98
Signed-off-by: Julio Montes <julio.montes@intel.com >
2018-08-09 09:14:31 -05:00
Julio Montes
f9aef172be
snap: support arm and ppc architectures
...
Use `arch` to identify qemu architecture instead of hardcoding it.
fixes #91
Signed-off-by: Julio Montes <julio.montes@intel.com >
2018-08-09 09:14:06 -05:00
Graham Whaley
e2dc90c2e7
Merge pull request #122 from jcvenegas/fix-tag.sh
...
tag_repos.sh: fix typo
2018-08-09 09:15:03 +01:00
Jose Carlos Venegas Munoz
eb10d79fa8
tag_repos.sh: fix typo
...
Fix variable name that breaks the script when creating releases.
Fixes : #121
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-08-08 14:40:00 -05:00
Peng Tao
47835a8fd3
Merge pull request #104 from devimc/topic/fixMemConstraints
...
kernel/configs: enable swap extension (CONFIG_MEMCG_SWAP)
2018-08-02 10:09:15 +08:00
Julio Montes
3b18544a99
kernel/configs: enable swap extension (CONFIG_MEMCG_SWAP)
...
libcontainer limits the memory+swap usage by writing the limit at
/sys/fs/cgroup/memory/docker/$CONTID/memory.memsw.limit_in_bytes, this path
doesn't exist if CONFIG_MEMCG_SWAP and CONFIG_MEMCG_SWAP_ENABLED are not
enabled.
fixes #103
Signed-off-by: Julio Montes <julio.montes@intel.com >
2018-08-01 11:42:53 -05:00
Julio Montes
4af56db0ea
Merge pull request #114 from nitkon/master
...
ppc64le: Use powerpc as prefix for kernel config file
2018-08-01 07:07:18 -05:00
Nitesh Konkar
65c00dc29a
ppc64le: Use powerpc as prefix for kernel config file
...
Post Fix #111 , the kernel config name is
expected is to be prefixed with powerpc instead
of ppc64le. Just rename the file to suit the scripts.
Fixes : #113
Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
2018-08-01 14:46:10 +05:30
Julio Montes
edda8cc68a
Merge pull request #117 from jcvenegas/fix-ci
...
ci: Fix ci when tmp_dir is not set.
2018-07-31 15:37:40 -05:00
Jose Carlos Venegas Munoz
b4a6303b14
ci: Fix ci when tmp_dir is not set.
...
When tmp_dir is not set and lib.sh is sourced
could lead to fail.
Fix : #116
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-07-31 15:21:20 -05:00
Jose Carlos Venegas Munoz
6e69deba7f
Merge pull request #108 from jcvenegas/github-release
...
release: Create github release after create tag.
2018-07-31 12:30:59 -05:00
James O. D. Hunt
78c79ce138
Merge pull request #102 from nitkon/master
...
packaging: Get packaging for ppc64le
2018-07-31 16:56:35 +01:00
Jose Carlos Venegas Munoz
f65fd94583
tag_repos: Create github release.
...
After create a tag craete a github release.
Fixes : #107
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-07-31 10:23:55 -05:00
Jose Carlos Venegas Munoz
dfddde813d
lib: move build_hub to lib
...
hub will be used by other script move it.
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2018-07-31 10:22:52 -05:00