Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create package index files, for apt and yum #4752

Merged
merged 1 commit into from Jul 16, 2019

Conversation

afbjorklund
Copy link
Collaborator

After creating the .deb and .rpm packages,
also create index files for apt and for yum.

But don't have any signing infrastructure yet:
Need somewhere to store the private gpg keys.


Note that the packages for the kvm2 driver are
available separately (PR #4556), to be included.

Once those docker-machine-driver-kvm2packages
are built, they will be included in the indexes too.

But don't have any signing infrastructure yet

Need somewhere to store the private gpg keys.
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 13, 2019
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 13, 2019
@afbjorklund
Copy link
Collaborator Author

afbjorklund commented Jul 13, 2019

Need to make sure that apt-utils and createrepo are available on the build server, before including:

We probably also need to sign the packages and indexes, before they will actually work for the user...

@afbjorklund
Copy link
Collaborator Author

Packages (apt)

Package: minikube
Architecture: amd64
Version: 1.2.0
Priority: optional
Section: base
Maintainer: Aaron Prindle <aaprindle@gmail.com>
Recommends: virtualbox
Filename: ./minikube_1.2.0.deb
Size: 13715490
MD5sum: ec86a037e069af83509e1620a8843d20
SHA1: b34f86bd9ce251749c2cff5e495b06d04ea72100
SHA256: 751dc13b3d59de18da19197ea90910cb1ced4a0ee8927f60e8cf018b681d1dd2
SHA512: 0d25c9038962fd1ab27d2c3adf637bee6f729aa0de1925bf88ffbeb2704ee55b551151abd65eb49a72ddc56eedd8270c8ccb78d98422c6e2cd114eeafed4c8c2
Description: Minikube
 Minikube is a tool that makes it easy to run Kubernetes locally.
 Minikube runs a single-node Kubernetes cluster inside a VM on your
 laptop for users looking to try out Kubernetes or develop with it 
 day-to-day.

primary.xml (yum)

<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://linux.duke.edu/metadata/common" xmlns:rpm="http://linux.duke.edu/metadata/rpm" packages="1">
<package type="rpm">
  <name>minikube</name>
  <arch>x86_64</arch>
  <version epoch="0" ver="1.2.0" rel="0"/>
  <checksum type="sha256" pkgid="YES">dbd0f6dfa9cc2feb51b21e3186194e69014fc0e2232fab56d57c1cf3578d1735</checksum>
  <summary>Run Kubernetes locally</summary>
  <description>Minikube is a tool that makes it easy to run Kubernetes locally.
Minikube runs a single-node Kubernetes cluster inside a VM on your
laptop for users looking to try out Kubernetes or develop with it
day-to-day.</description>
  <packager></packager>
  <url>https://github.com/kubernetes/minikube</url>
  <time file="1563088472" build="1561365172"/>
  <size package="10984347" installed="35636464" archive="35636720"/>
<location xml:base="https://github.com/kubernetes/minikube/releases/download/v1.2.0/" href="minikube-1.2.0.rpm"/>
  <format>
    <rpm:license>ASL 2.0</rpm:license>
    <rpm:vendor/>
    <rpm:group>Development/Tools</rpm:group>
    <rpm:buildhost>jenkins.c.k8s-minikube.internal</rpm:buildhost>
    <rpm:sourcerpm>minikube-1.2.0-0.src.rpm</rpm:sourcerpm>
    <rpm:header-range start="4392" end="6348"/>
    <rpm:provides>
      <rpm:entry name="minikube" flags="EQ" epoch="0" ver="1.2.0" rel="0"/>
      <rpm:entry name="minikube(x86-64)" flags="EQ" epoch="0" ver="1.2.0" rel="0"/>
    </rpm:provides>
    <rpm:requires>
      <rpm:entry name="libpthread.so.0()(64bit)"/>
      <rpm:entry name="rtld(GNU_HASH)"/>
      <rpm:entry name="libpthread.so.0(GLIBC_2.2.5)(64bit)"/>
      <rpm:entry name="libpthread.so.0(GLIBC_2.3.2)(64bit)"/>
      <rpm:entry name="libc.so.6(GLIBC_2.2.5)(64bit)"/>
    </rpm:requires>
    <file>/usr/bin/minikube</file>
  </format>
</package>
</metadata>

@RA489
Copy link

RA489 commented Jul 16, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 16, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: afbjorklund, RA489

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 3eeee2e into kubernetes:master Jul 16, 2019
@afbjorklund
Copy link
Collaborator Author

At this point more of a test, as just generating those indexes locally won't actually do anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants