Граф коммитов

63 Коммитов

Автор SHA1 Сообщение Дата
Sebastiaan van Stijn 5da189c9fb
scripts/.rpm-helpers: prioritize dnf over yum
dnf is the default for current RPM-based distros now, so moving it
as first choice. We can probably remove the fallback to yum, but
leaving that for a follow-up.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-07-20 20:21:27 +02:00
Sebastiaan van Stijn a31b64b579
scripts/checkout.sh: prevent ls-remote from matching multiple tags
git ls-remote's <pattern> argument [1] is a glob [2], and matches anything
ending with the given string. This is problematic if multiple tags or
branches end with the given pattern. In containerd's case, this returns
both tags for the main module ("refs/tags/v1.7.19") and 	# the API module
("refs/tags/api/v1.7.19").

To prevent both of those being found, we check if the given reference starts
with a "v"; if it does, we can assume it's a tag, and prefix the pattern with
"refs/tags/" to make it less ambiguous.

We're using a case statement here to avoid introducing Bashisms.

[1]: https://git-scm.com/docs/git-ls-remote#Documentation/git-ls-remote.txt-ltpatternsgt82308203
[2]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-glob

Before this patch:

    make REF=v1.7.19 checkout
    # ...
    Initialized empty Git repository in /Users/thajeztah/go/src/github.com/docker/containerd-packaging/src/github.com/containerd/containerd/.git/
    git -C src/github.com/containerd/containerd remote add origin "https://github.com/containerd/containerd.git"
    ./scripts/checkout.sh src/github.com/containerd/containerd "v1.7.19"
    + SRC=src/github.com/containerd/containerd
    + REF=v1.7.19
    + REF_FETCH=v1.7.19
    ++ git -C src/github.com/containerd/containerd ls-remote --refs --heads --tags origin v1.7.19
    ++ awk '{print $2}'
    + REF='refs/tags/api/v1.7.19
    refs/tags/v1.7.19'
    + '[' -n 'refs/tags/api/v1.7.19
    refs/tags/v1.7.19' ']'
    + REF_FETCH='refs/tags/api/v1.7.19
    refs/tags/v1.7.19:refs/tags/api/v1.7.19
    refs/tags/v1.7.19'
    + git -C src/github.com/containerd/containerd fetch --update-head-ok --depth 1 origin 'refs/tags/api/v1.7.19
    refs/tags/v1.7.19:refs/tags/api/v1.7.19
    refs/tags/v1.7.19'
    fatal: invalid refspec 'refs/tags/api/v1.7.19
    refs/tags/v1.7.19:refs/tags/api/v1.7.19
    refs/tags/v1.7.19'
    make: *** [checkout] Error 128

With this patch:

    make REF=v1.7.19 checkout
    # ...
    Initialized empty Git repository in /Users/thajeztah/go/src/github.com/docker/containerd-packaging/src/github.com/containerd/containerd/.git/
    git -C src/github.com/containerd/containerd remote add origin "https://github.com/containerd/containerd.git"
    ./scripts/checkout.sh src/github.com/containerd/containerd "v1.7.19"
    + SRC=src/github.com/containerd/containerd
    + REF=v1.7.19
    + REF_FETCH=v1.7.19
    + REF_GLOB=v1.7.19
    + case $REF_GLOB in
    + REF_GLOB=refs/tags/v1.7.19
    ++ git -C src/github.com/containerd/containerd ls-remote --refs --heads --tags origin refs/tags/v1.7.19
    ++ awk '{print $2}'
    + REF=refs/tags/v1.7.19
    + '[' -n refs/tags/v1.7.19 ']'
    + REF_FETCH=refs/tags/v1.7.19:refs/tags/v1.7.19
    + git -C src/github.com/containerd/containerd fetch --update-head-ok --depth 1 origin refs/tags/v1.7.19:refs/tags/v1.7.19
    remote: Enumerating objects: 6397, done.
    remote: Counting objects: 100% (6397/6397), done.
    remote: Compressing objects: 100% (5114/5114), done.
    Receiving objects: 100% (6397/6397), 10.09 MiB | 13.94 MiB/s, done.
    remote: Total 6397 (delta 1376), reused 3349 (delta 816), pack-reused 0
    Resolving deltas: 100% (1376/1376), done.
    From https://github.com/containerd/containerd
     * [new tag]         v1.7.19    -> v1.7.19
    + git -C src/github.com/containerd/containerd checkout -q refs/tags/v1.7.19

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-07-17 01:44:55 +02:00
Sebastiaan van Stijn c0f96473f6
remove deprecated containerd and runc build-tags
containerd and runc (no longer) use the seccomp and apparmor build-tags, and runc
has removed the runc_nokmem build-tag (now the default).

seccomp is enabled by default for containerd and runc, but can be disabled on
runc by setting BUILDTAGS to an empty string;
https://github.com/opencontainers/runc/blob/v1.1.2/README.md#build-tags

Given that we always want to include seccomp (with non-static builds), this patch
removes the BUILDTAGS altogether for runc.

For containerd, we still need a buildtag to disable btrfs on CentOS 8 and up;
https://github.com/containerd/containerd/blob/v1.6.5/BUILDING.md#build-containerd

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-06-04 22:54:38 +02:00
Sebastiaan van Stijn 9a9563ab44
Merge pull request #279 from thaJeztah/skip_validate_sources_and_artifacts
make validate: skip artifacts and sources
2022-05-02 13:37:03 +02:00
Sebastiaan van Stijn 6bb0f3d96e
scripts: make sure all dates use UTC
While most of the dates generated were done from within a container (which defaults
to using UTC), some scripts could be run on the host, and therefore depend on the
host's configured timezone.

This patch makes sure that all calls to `date` use `TZ=UTC` to make sure the dates
are consistent.

Before this patch:

    ./scripts/new-deb-release 1.2.3 &> /dev/null && git diff -- debian/changelog | grep Sebastiaan
    + -- Sebastiaan van Stijn <github@gone.nl>  Wed, 06 Apr 2022 12:22:09 +0200

With this patch:

    ./scripts/new-deb-release 1.2.3 &> /dev/null && git diff -- debian/changelog | grep Sebastiaan
    + -- Sebastiaan van Stijn <github@gone.nl>  Wed, 06 Apr 2022 10:22:15 +0000

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-04-06 12:26:20 +02:00
Sebastiaan van Stijn 56a2763ec2
scripts/new-deb-release: fix date generation on macOS
macOS uses the BSD flavor of `date`, which does not support the `--rfc-2822` option,
causing the script to fail and produce a changelog entry without a date.

The BSD flavor does have `-R` option, which is supported both on GNU and BSD,
which provides the equivalent. From the man page on macOS:

     -R      Use RFC 2822 date and time output format. This is equivalent to use
             '%a, %d %b %Y %T %z' as output_fmt while LC_TIME is set to the
             'C' locale .

Before this patch:

    ./scripts/new-deb-release 1.2.3
    date: illegal option -- -
    usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
    [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
    ...
    containerd.io (1.2.3-1) release; urgency=medium

    * TODO: Insert release changes here

    -- Sebastiaan van Stijn <thajeztah@docker.com>

After this patch

    ./scripts/new-deb-release 1.2.3
    containerd.io (1.2.3-1) release; urgency=medium

    * TODO: Insert release changes here

    -- Sebastiaan van Stijn <thajeztah@docker.com>  Wed, 06 Apr 2022 12:06:17 +0200

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-04-06 12:12:56 +02:00
Sebastiaan van Stijn 7f57607850
make validate: skip artifacts and sources
While CI won't hit this situation, when running make validate
locally, the working directory may contain a src, build, or archive
directory, which is not part of the code in this repo, so does not
have to be validated.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-04-01 20:14:24 +02:00
Sebastiaan van Stijn 655193435b
update years in license headers
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-03-04 10:30:39 +01:00
Sebastiaan van Stijn 2dd2f00eb0
Merge pull request #243 from thaJeztah/remove_runc_version_fallbacks
scripts/determine-runc-version: remove fallback for older containerd versions
2021-07-19 16:34:10 +02:00
Sebastiaan van Stijn 3206806f2a
scripts/determine-runc-version: remove fallback for older containerd versions
Starting with containerd v1.4.5, and v1.5.0-beta.4, we can now use the
runc-version file:

- https://github.com/containerd/containerd/blob/v1.4.5/script/setup/runc-version
- https://github.com/containerd/containerd/blob/v1.5.0/script/setup/runc-version

There should no longer be a need to build older (patch) releases of the containerd
packages, so we can now remove the fallbacks.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-07-19 12:04:35 +02:00
Sebastiaan van Stijn edec858512
scripts: remove unused gen-go-dl-url script
This was originally used in e232259116 to download
the go binary, but starting with 6e4218ae9a, the
code switched to copy the go binary from a Docker Image, so there's no longer a
need to generate the download URL.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-07-19 11:51:34 +02:00
Sebastiaan van Stijn 91b25bb07e
Fix missing echo in scripts/determine-runc-version
This was introduced in e1b2c4a0e7, where
the version that was found is now stored in a variable (runc_ref) for
debugging.

However, I forgot to add an "echo" to actually print the version.

Because of that, the script debugs the version it found:

    + git -C src/github.com/containerd/containerd checkout -q refs/tags/v1.4.6
    ./scripts/checkout.sh src/github.com/opencontainers/runc "$(./scripts/determine-runc-version)"
    INFO: detected runc version (v1.0.0-rc95) from script/setup/runc-version

But in the "build" target it shows that it didn't actually print it
(note the missing version missing between `runc :` and `(commit: ...)`):

    --------------------------------------------------------------------
    Building packages on docker.io/dockereng/rhel:7-s390x

    containerd   : v1.4.6 (commit: d71fcd7)
    INFO: detected runc version (v1.0.0-rc95) from script/setup/runc-version
    runc         :  (commit: e005fee)
    architecture : s390x
    build image  : docker.io/dockereng/rhel:7-s390x
    golang image : docker.io/library/golang:1.13.15-buster
    --------------------------------------------------------------------

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-05-26 13:11:30 +02:00
Sebastiaan van Stijn e1b2c4a0e7
improve info messages from determine-runc-version
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-05-26 09:28:21 +02:00
Sebastiaan van Stijn 6a2e254c9b
Fix detection of default runc version due upstream to switch to go.mod
The code that was used to automatically select the default version of
runc to use for containerd was still assuming the containerd code to
have a vendor.conf.

Containerd "master", and v1.5 have switched to go modules, so should
now look in the go.mod file to get the recommended / default version.

Also change the order in which we check out source-code, so that the
containerd source-code is checked out before we determine the runc
version; this allows us to always use the local source of containerd,
without having to use curl to get the version from GitHub.

Finally, a small modification was made for the "make validate" target,
which now uses a generic "alpine" Golang image, so that validation can
be done before the containerd source code was checked out (which was
used to detect the Go version to use).

Before this patch:

    $ make docker.io/library/ubuntu:focal
    ...
    curl: (22) The requested URL returned error: 404 Not Found
    --------------------------------------------------------------------
    Building packages on docker.io/library/ubuntu:focal

    containerd   : HEAD (commit: a72fe7d)
    runc         :  (commit: 59ad417)
    architecture : x86_64
    build image  : docker.io/library/ubuntu:focal
    golang image : docker.io/library/golang:1.15.8-buster

With this patch:

    $ make docker.io/library/ubuntu:focal
    INFO: detected runc version from script/setup/runc-version
    ...
    Building packages on docker.io/library/ubuntu:focal

    containerd   : HEAD (commit: a72fe7d)
    runc         : v1.0.0-rc93 (commit: 59ad417)
    architecture : x86_64
    build image  : docker.io/library/ubuntu:focal
    golang image : docker.io/library/golang:1.15.8-buster

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-03-17 12:49:22 +01:00
Sebastiaan van Stijn 726a928bdd
deb: keep '/var/lib/apt/lists/' to allow building for Debian unstable
Debian "unstable" releases use apt caching information to get the codename
see discussion on https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845651:

> That's all to say that this bug is (to my belief) actually expected behaviour;
> and fixing it through forcing the codename to be interpreted as "stretch" when
> apt-cache information is unavailable would be wrong. When /etc/debian_version
> contains "potato/sid", the codename is either potato xor sid, and only apt-
> cache can discriminate a testing host from a sid host. Therefore, in such a
> situation, the correct answer is actually "I can't tell", aka "n/a".

From testing, it reads the information from these files:

  - /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_InRelease
  - /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_binary-amd64_Packages.lz4

Removing these files (`rm -rf /var/lib/apt/lists/*`) causes 'lsb_release -sc`
to print 'n/a'. While we could use '/etc/debian_version' as a fallback for our
own scripts (stripping everything after '/' (e.g. bullseye/sid -> bullseye),
dpkg-buildpackage will still depend on this information to be present, and
if not present, renames packages to use 'n/a' in their path:

    dpkg-buildpackage: info: full upload; Debian-native package (full source is included)
    renamed '../containerd.io-dbgsym_0.20210219.014044~e58be59-1_amd64.deb' -> '/build/debian/n/a/amd64/containerd.io-dbgsym_0.20210219.014044~e58be59-1_amd64.deb'
    renamed '../containerd.io_0.20210219.014044~e58be59-1_amd64.deb' -> '/build/debian/n/a/amd64/containerd.io_0.20210219.014044~e58be59-1_amd64.deb'

Given that we don't need the final image (as we only use it as a build environment
and copy the artifacts out), keeping some of the cache files should not be a problem.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-02-19 19:28:20 +01:00
Daniel Lipovetsky 1da2018510
Use 'runc_nokmem' build tag for RHEL/CentOS 7.x RPMs
Signed-off-by: Daniel Lipovetsky <dlipovetsky@d2iq.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-09-09 16:51:10 +02:00
Sebastiaan van Stijn c58c9172ed
scripts/checkout.sh: fix git fetch when explicitly fetching "master"
Before:

    git init src/github.com/containerd/containerd
    # Initialized empty Git repository in /root/test/packaging/src/github.com/containerd/containerd/.git/
    git -C src/github.com/containerd/containerd remote add origin "https://github.com/containerd/containerd.git"
    ...
    git -C src/github.com/containerd/containerd fetch --depth 1 origin refs/heads/master:refs/heads/master
    # fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository
    # make[1]: *** [Makefile:72: checkout] Error 128
    # make[1]: Leaving directory '/root/test/packaging'
    # make: *** [Makefile:67: docker.io/library/ubuntu:focal] Error 2
    # make: Leaving directory '/root/test/packaging'

After:

    git init src/github.com/containerd/containerd
    # Initialized empty Git repository in /root/test/packaging/src/github.com/containerd/containerd/.git/
    git -C src/github.com/containerd/containerd remote add origin "https://github.com/containerd/containerd.git"
    ...
    git -C src/github.com/containerd/containerd fetch --update-head-ok --depth 1 origin refs/heads/master:refs/heads/master
    # remote: Enumerating objects: 3869, done.
    # remote: Counting objects: 100% (3869/3869), done.
    # remote: Compressing objects: 100% (3337/3337), done.
    # remote: Total 3869 (delta 695), reused 1605 (delta 272), pack-reused 0
    # Receiving objects: 100% (3869/3869), 6.33 MiB | 9.10 MiB/s, done.
    # Resolving deltas: 100% (695/695), done.
    # From https://github.com/containerd/containerd
    #  * [new branch]      master     -> master
    #  * [new branch]      master     -> origin/master

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-07-21 10:40:00 +02:00
Tibor Vass fbe9af0076 Add checkout.sh to handle tags with shallow clones
Commit 9706347c34 changed to shallow clones
but fetching a tag ref does not download the tag itself.
This patch makes sure that the tag (or branch) is downloaded otherwise
fallsback to fetching the commit hash as it did before.

Signed-off-by: Tibor Vass <tibor@docker.com>
2020-05-13 01:42:32 +00:00
Sebastiaan van Stijn 959220522f
Dockerfiles: add verify step
Add some rudimentary checks to verify the packages that
were built.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-20 12:34:23 +02:00
Sebastiaan van Stijn ea2bca0661
rpm: install build dependencies so that they can be cached
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-20 12:28:17 +02:00
Sebastiaan van Stijn 713168ae62
Use "build" as output dir, to be consistent with the host
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-20 12:28:04 +02:00
Sebastiaan van Stijn 64fff3da99
scripts: use --git-dir instead of -C, which is slightly more portable
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-03-30 15:59:12 +02:00
Sebastiaan van Stijn b09d976146
scripts: source helpers from same directory
This allows these scripts to be run from other directories
instead of hard-coded at the root (/)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-03-30 15:59:07 +02:00
Sebastiaan van Stijn 93ae009441
scripts: remove bashisms, make POSIX compatible
This allows these scripts to be ran inside the Dockerfile
without having to use Bash as a shell.

Also using subshells because POSIX does not support
"local" variables.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-03-30 15:58:08 +02:00
Sebastiaan van Stijn b8d8a5923a
scripts: reformat scripts, and use tabs for indentation
- use tabs for indentation
- some other reformatting and minor linting issues

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-03-30 15:55:05 +02:00
Guillaume Lours fd446dcc92 Add Apache License to open source the repository
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2020-02-20 15:11:31 +01:00
Sebastiaan van Stijn a7b3dbfd94
Make new-rpm-release script work on macOS
Works around a difference in the macOS version of sed,
which caused this error;

    sed: -i may not be used with stdin

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-02-05 09:43:24 +01:00
Derek McGowan bc456de9f9 Update packaging for containerd 1.2.12
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2020-02-04 12:21:39 -08:00
Sebastiaan van Stijn a5e0d7126a
update golang to 1.12.15
Update Golang 1.12.15
---------------------------

full diff: https://github.com/golang/go/compare/go1.12.14...go1.12.15
go1.12.15 (released 2020/01/09) includes fixes to the runtime and the net/http
package. See the Go 1.12.15 milestone on the issue tracker for details:
https://github.com/golang/go/issues?q=milestone%3AGo1.12.15+label%3ACherryPickApproved

Update Golang 1.12.14
---------------------------

go1.12.14 (released 2019/12/04) includes a fix to the runtime. See the Go 1.12.14
milestone on our issue tracker for details:
https://github.com/golang/go/issues?q=milestone%3AGo1.12.14+label%3ACherryPickApproved

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-01-24 15:42:35 +01:00
Eli Uriegas 67d0725f47
bump to golang 1.12.10
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2019-09-30 19:34:17 +00:00
Sebastiaan van Stijn 1cb909c43e
Release containerd 1.2.8
- containerd 1.2.8 release
- build with Go 1.12.9

containerd changelog: https://github.com/containerd/containerd/releases/tag/v1.2.8

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-08-27 01:12:02 +02:00
Sebastiaan van Stijn a3d70781c6
Bump golang 1.11.13 (CVE-2019-9512, CVE-2019-9514)
go1.11.13 (released 2019/08/13) includes security fixes to the net/http and net/url packages.
See the Go 1.11.13 milestone on our issue tracker for details:

https://github.com/golang/go/issues?q=milestone%3AGo1.11.13

- net/http: Denial of Service vulnerabilities in the HTTP/2 implementation
  net/http and golang.org/x/net/http2 servers that accept direct connections from untrusted
  clients could be remotely made to allocate an unlimited amount of memory, until the program
  crashes. Servers will now close connections if the send queue accumulates too many control
  messages.
  The issues are CVE-2019-9512 and CVE-2019-9514, and Go issue golang.org/issue/33606.
  Thanks to Jonathan Looney from Netflix for discovering and reporting these issues.
  This is also fixed in version v0.0.0-20190813141303-74dc4d7220e7 of golang.org/x/net/http2.
  net/url: parsing validation issue
- url.Parse would accept URLs with malformed hosts, such that the Host field could have arbitrary
  suffixes that would appear in neither Hostname() nor Port(), allowing authorization bypasses
  in certain applications. Note that URLs with invalid, not numeric ports will now return an error
  from url.Parse.
  The issue is CVE-2019-14809 and Go issue golang.org/issue/29098.
  Thanks to Julian Hector and Nikolai Krein from Cure53, and Adi Cohen (adico.me) for discovering
  and reporting this issue.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-08-15 21:03:19 +02:00
Eli Uriegas 32d9d1e7a6
scripts: Use correct spec file for new-rpm-release
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2019-08-13 20:32:20 +00:00
Eli Uriegas 6f19aa6d14
rpm: Install dependencies in a more generic way, only use major distro version
Dependencies needed a way to install in a more generic way since zypper
doesn't have the equivalent of yum-builddep

Also there needed to be an EXTRA_REPOS option so that we could include
repos for specific distributions like oraclelinux

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2019-08-07 23:30:46 +00:00
zelahi b88c1fa1cc
FIXED issue with building rpm 2019-06-19 15:40:30 -07:00
zelahi bf484adfd5
GENERATED .tar files on package build 2019-06-19 15:40:30 -07:00
Eli Uriegas 241608f9e1
Refactor to be image based, see description
Changes the build process to be based on images instead of relying on
separate dockerfiles, simplifies maintenance to be just image based,
still need a good solution for windows though

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2019-06-19 15:40:24 -07:00
Sebastiaan van Stijn 5d955e1ef5
Bump Golang 1.11.8
go1.11.8 (released 2019/04/08) fixes an issue where using the prebuilt binary
releases on older versions of GNU/Linux led to failures when linking programs
that used cgo. Only Linux users who hit this issue need to update.

See https://github.com/golang/go/issues/31293 for details

Full diff: https://github.com/golang/go/compare/go1.11.7...go1.11.8

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-04-09 17:01:27 +02:00
Eli Uriegas 5415dc8c71 Add support for amazonlinux-2
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2019-04-01 17:10:50 +00:00
Sebastiaan van Stijn 45c0024690
Bump Golang 1.11.5
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-14 20:21:09 +01:00
Dave Tucker 4946024c22 RHEL 8 Support
This commit adds the necessary Makefile/Dockerfile changes to support
packaging on RHEL 8. Notably BTRFS is disabled for containerd builds on
this OS as the btrfs-progs package is not available during the beta. It
may also not be available at GA.

Signed-off-by: Dave Tucker <dt@docker.com>
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2019-03-11 22:55:46 +00:00
Sebastiaan van Stijn fb3f49f430
Bump Golang 1.10.8 (CVE-2019-6486)
See the milestone for details;
https://github.com/golang/go/issues?q=milestone%3AGo1.10.8+label%3ACherryPickApproved

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-02-13 01:01:31 +01:00
Eli Uriegas 66bcbce4d9 Add in versioning dot for package only updates
New rpm version strings should look somewhat similar to

> build/centos-7/RPMS/x86_64/containerd.io-1.2.2-3.2.el7.x86_64.rpm

Note the 3.2 after the 1.2.2 versioning

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2019-01-18 18:37:49 +00:00
Eli Uriegas 893dbdb2a9 Bump to golang 1.10.6
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2018-12-14 23:50:12 +00:00
Sebastiaan van Stijn c640bd77b8
Bump Go to 1.10.5
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2018-11-30 20:20:58 +01:00
Eli Uriegas b9550e0209 Update new-rpm-release for new gen-rpm-ver-bits
Allows a changeable spec file, and accounts for removing the RPM release
version when crafting a new one

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2018-09-05 13:43:51 +00:00
Eli Uriegas d0f061e985 Update rpm version to include actual rpm release
This was a bug that if we wanted to do just a release of an rpm without
code changes to the underlying containerd we really couldn't.

This adds an extra number at the end of RPM_RELEASE so that it gets
numbered correctly upon release.

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2018-09-05 13:29:06 +00:00
Eli Uriegas fa427af4ed Add stuff to build sles
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2018-08-17 22:55:49 +00:00
Jose Bigio 94d7156fc8 Work around build arg problems by using multiple dockerfiles
Signed-off-by: Jose Bigio <jose.bigio@docker.com>
2018-08-15 16:54:23 -07:00
Jose Bigio 37f092d9eb Create containerd packaging on multiple distros
Signed-off-by: Jose Bigio <jose.bigio@docker.com>
2018-08-14 10:45:33 -07:00