Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 4091367

Browse files
committed
update package files and add README for packaging
Signed-off-by: Wang Xu <[email protected]>
1 parent 80ae9eb commit 4091367

File tree

18 files changed

+72
-140
lines changed

18 files changed

+72
-140
lines changed

package/README.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## Build Binary Packages for Distros
2+
3+
4 Distros are supported by HyperContainer binary pacaking tools currently.
4+
The `Dockerfile` of builders are hosted in repo [hyperhq/official-images](https://github.com/hyperhq/official-images):
5+
6+
- CentOS: [centos_builder_2](https://github.com/hyperhq/official-images/tree/master/centos_builder_2) ;
7+
- Fedora: [fedora_builder_2](https://github.com/hyperhq/official-images/tree/master/fedora_builder_2) ;
8+
- Debian: [debian_builder_2](https://github.com/hyperhq/official-images/tree/master/debian_builder_2) ;
9+
- Ubuntu: [centos_builder_2](https://github.com/hyperhq/official-images/tree/master/ubuntu_builder_2) ;
10+
11+
All these images shared the same usages, for example, the image name is `gnawux/buildenv:centos` here:
12+
13+
```bash
14+
docker run -it -e HYPERD_REF=pull/563/merge -e UPLOAD=upload/rc1 -e AWS_ACCESSKEY=AAAAAA -e AWS_SECRETKEY=fffffff+ppppp/k gnawux/buildenv:centos
15+
16+
```
17+
18+
#### Supported Environments
19+
20+
The default environments of the images are defined as:
21+
22+
```bash
23+
HYPERD_REF=${HYPERD_REF:-heads/master}
24+
HYPERSTART_REF=${HYPERSTART_REF:-heads/master}
25+
BUILD=${BUILD:-yes}
26+
UPLOAD=${UPLOAD:-none}
27+
ACCESS=${AWS_ACCESSKEY:-none}
28+
SECRET=${AWS_SECRETKEY:-none}
29+
```
30+
31+
- `HYPERD_REF` : The hyperd git reference to be built, master by default, and if you want to build master with PR#563 merged, then specify `-e HYPERD_REF=pull/563/merge`
32+
- `HYPERSTART_REF`: The hyperstart git reference to be built, similar to hyperd.
33+
- `BUILD`: flag for build, won't build if not yes, default is `yes`.
34+
- `UPLOAD`: the S3 bucket (path) will be uploaded to, won't upload if not specify, for example `candidates/rc-1`.
35+
- `ACCESS` and `SECRET`: AWS credential for package uploading, the credential should have the permission to upload to the path specify by `UPLOAD`.

package/centos/.dockerignore

-3
This file was deleted.

package/centos/Dockerfile

-19
This file was deleted.

package/centos/centos-rpm.pod.in

-25
This file was deleted.

package/centos/make-rpm.sh

-21
This file was deleted.

package/centos/rpm/SPECS/hyper-container.spec

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Summary: Hyper Container is a VM based docker runtime
22
Name: hyper-container
3-
Version: 0.8.1
3+
Version: 1.0.0
44
Release: 1%{?dist}
55
License: Apache License, Version 2.0
66
Group: System Environment/Base
@@ -50,6 +50,8 @@ rm -rf %{buildroot}
5050
/lib/systemd/system/hyper-vmlogd.service
5151

5252
%changelog
53+
* Thu Sep 28 2017 Hyper Dev Team <[email protected]> - 1.0.0-1
54+
- update source to 1.0.0
5355
* Mon May 8 2017 Hyper Dev Team <[email protected]> - 0.8.1-1
5456
- update source to 0.8.1
5557
* Mon Mar 20 2017 Hyper Dev Team <[email protected]> - 0.8.0-1

package/centos/rpm/SPECS/hyperstart.spec

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Summary: Hyperstart is the initrd for hyper VM
22
Name: hyperstart
3-
Version: 0.8.1
3+
Version: 1.0.0
44
Release: 1%{?dist}
55
License: Apache License, Version 2.0
66
Group: System Environment/Base
@@ -37,6 +37,8 @@ rm -rf %{buildroot}
3737
%{_sharedstatedir}/*
3838

3939
%changelog
40+
* Thu Sep 28 2017 Hyper Dev Team <[email protected]> - 1.0.0-1
41+
- update source to 1.0.0
4042
* Mon May 8 2017 Hyper Dev Team <[email protected]> - 0.8.1-1
4143
- update source to 0.8.1
4244
* Mon Mar 20 2017 Hyper Dev Team <[email protected]> - 0.8.0-1

package/debian/hypercontainer/debian/changelog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
hypercontainer (1.0.0-1) unstable; urgency=low
2+
3+
* Release 1.0.0
4+
5+
-- Hyper Dev Team <[email protected]> Thu, 28 Sep 2017 22:30:08 +0800
6+
17
hypercontainer (0.8.1-1) unstable; urgency=low
28

39
* Release 0.8.1

package/debian/hyperstart/debian/changelog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
hyperstart (1.0.0-1) unstable; urgency=low
2+
3+
* Release 1.0.0
4+
5+
-- Hyper Dev Team <[email protected]> Thu, 28 Sep 2017 22:30:08 +0800
6+
17
hyperstart (0.8.1-1) unstable; urgency=low
28

39
* Release 0.8.1

package/dist/etc/hyper/config

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
# Root directory for hyperd
44
# Root=/var/lib/hyper/
55

6-
# Specify the hypervisor: libvirt, qemu, qemu-kvm, kvm, xen, vbox (for linux)
7-
# vbox (for mac).
6+
# Specify the hypervisor: libvirt, qemu, qemu-kvm, kvm, xen, xenpv, kvmtool
87
# "kvm" is equivalent to "qemu-kvm" which uses qemu with kvm acceleration.
98
# "qemu" is equivalent to "qemu-kvm" when the system enables kvm, otherwise
109
# the hypervisor is "qemu-tcg" (qemu without kvm acceleration).

package/fedora/.dockerignore

-3
This file was deleted.

package/fedora/Dockerfile

-16
This file was deleted.

package/fedora/fedora-rpm.pod.in

-25
This file was deleted.

package/fedora/make-rpm.sh

-22
This file was deleted.

package/fedora/rpm/SPECS/hyper-container.spec

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Summary: Hyper is a VM based docker runtime
22
Name: hyper-container
3-
Version: 0.8.1
3+
Version: 1.0.0
44
Release: 1%{?dist}
55
License: Apache License, Version 2.0
66
Group: System Environment/Base
@@ -48,6 +48,8 @@ rm -rf %{buildroot}
4848
/lib/systemd/system/hyper-vmlogd.service
4949

5050
%changelog
51+
* Thu Sep 28 2017 Hyper Dev Team <[email protected]> - 1.0.0-1
52+
- update source to 1.0.0
5153
* Mon May 8 2017 Hyper Dev Team <[email protected]> - 0.8.1-1
5254
- update source to 0.8.1
5355
* Mon Mar 20 2017 Hyper Dev Team <[email protected]> - 0.8.0-1

package/fedora/rpm/SPECS/hyperstart.spec

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Summary: Hyperstart is the initrd for hyper VM
22
Name: hyperstart
3-
Version: 0.8.1
3+
Version: 1.0.0
44
Release: 1%{?dist}
55
License: Apache License, Version 2.0
66
Group: System Environment/Base
@@ -37,6 +37,8 @@ rm -rf %{buildroot}
3737
%{_sharedstatedir}/*
3838

3939
%changelog
40+
* Thu Sep 28 2017 Hyper Dev Team <[email protected]> - 1.0.0-1
41+
- update source to 1.0.0
4042
* Mon May 8 2017 Hyper Dev Team <[email protected]> - 0.8.1-1
4143
- update source to 0.8.1
4244
* Mon Mar 20 2017 Hyper Dev Team <[email protected]> - 0.8.0-1

package/ubuntu/hypercontainer/debian/changelog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
hypercontainer (1.0.0-1) xenial; urgency=low
2+
3+
* Release 1.0.0
4+
5+
-- Hyper Dev Team <[email protected]> Thu, 28 Sep 2017 22:30:08 +0800
6+
17
hypercontainer (0.8.1-1) xenial; urgency=low
28

39
* Release 0.8.1

package/ubuntu/hyperstart/debian/changelog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
hyperstart (1.0.0-1) xenial; urgency=low
2+
3+
* Release 1.0.0
4+
5+
-- Hyper Dev Team <[email protected]> Thu, 28 Sep 2017 22:30:08 +0800
6+
17
hyperstart (0.8.1-1) xenial; urgency=low
28

39
* Release 0.8.1

0 commit comments

Comments
 (0)