71 Commits

Author SHA1 Message Date
Michka Popoff
31a95d21be
Dockerfile: add gawk dependency
This is needed to build glibc on CI
2021-02-27 22:56:48 +01:00
Mike McQuaid
637ec77438
Dockerfile: run git fetch.
This should setup `origin/master` correctly for
https://github.com/Homebrew/homebrew-test-bot/pull/424.
2020-06-12 09:10:42 +01:00
Shaun Jackman
1c0c6217e2 Dockerfile: Unset gc.auto and homebrew.devcmdrun 2020-05-25 17:29:58 -07:00
Shaun Jackman
0c8a7b0488 Base homebrew/brew Docker image on ubuntu:20.04
Add a new image homebrew/ubuntu16.04 for building Linux bottles.
Tag the most recent stable release of each image as latest.
2020-05-20 22:11:42 -07:00
Bo Anderson
5935da6c6c Dockerfile: restore git-core PPA 2020-05-03 14:29:09 +01:00
Shaun Jackman
5052f49f40 Build Docker images for Ubuntu 18.04 and 20.04 2020-05-02 21:04:08 -07:00
Issy Long
785f3ab464
Dockerfile: Tabs to spaces
- My editor converted some of these to spaces when I changed the lines
  in the previous commit. We should be consistent, so I made all of them
  into spaces.
2020-04-26 09:55:14 +01:00
Issy Long
9baebbe38a
Lint the homebrew/brew Dockerfile with hadolint
- I suggested this for the contents of
  [Linuxbrew/docker](https://github.com/Linuxbrew/docker) in
  https://github.com/Linuxbrew/docker/issues/75. People agreed, and
  Shaun asked me to do the same here.
- This adds a step to CI to lint the Dockerfile, via
  [hadolint](https://github.com/hadolint/hadolint), on Ubuntu.
- The linting errors it surfaced on this Dockerfile were:

```
Dockerfile:4 DL3008 Pin versions in apt get install. Instead of `apt-get install <package>` use `apt-get install <package>=<version>`
Dockerfile:30 DL3020 Use COPY instead of ADD for files and folders
Dockerfile:32 DL3003 Use WORKDIR to switch to a directory
```

- [DL3008](https://github.com/hadolint/hadolint/wiki/DL3008) - pinning
  versions in `apt-get install` - is at odds with what we recommend in the
  normal Homebrew on Linux dependency install instructions. We don't
  want the dependency management of having to check each of these
  Dockerfiles periodically for the latest version numbers of packages
  and have to update them. So I've disabled this lint.

- [DL3003](https://github.com/hadolint/hadolint/wiki/DL3003) - use
  WORKDIR to `cd` - is disabled in this case due to [review
  comments](https://github.com/Homebrew/brew/pull/7433/files#r415098255).
2020-04-26 09:54:36 +01:00
Mike McQuaid
f2b8d4ec08
Dockerfile: use normal brew cleanup. 2020-02-05 19:31:59 +00:00
Jonathan Chang
efc27df4bd Dockerfile: changes to speed CI runs 2020-02-04 17:10:13 +01:00
Dawid Dziurla
22e72e842b
Dockerfile: install 'netbase' apt package 2020-01-26 14:01:39 +01:00
Dawid Dziurla
03028d57ce
Dockerfile: install tzdata apt package 2020-01-05 19:46:10 +01:00
Dawid Dziurla
b10e4f282d
Dockerfile: make the prefix group writable 2019-11-05 21:14:15 +01:00
Markus Reiter
85968040b1 Try caching the Docker image. 2019-08-21 06:55:15 +02:00
Mike McQuaid
8d6f30966b
Dockerfile: unset work writable permission.
Otherwise Ruby complains which is causing failing tests.
2019-04-01 09:37:47 +01:00
Mike McQuaid
5e42f67783
Dockerfile: install zlib headers (for nokogiri gem). 2019-02-22 17:23:33 +00:00
Shaun Jackman
a30b69c318 Dockerfile.test.yml: Run brew test-bot as linuxbrew
Running brew test-bot as root fails.

==> Running brew update...
Error: Running Homebrew as root is extremely dangerous and no longer supported.
2019-02-16 20:39:25 -08:00
Michka Popoff
a4f615d74f Dockerfile: do not chown linuxbrew folder
The linuxbrew user has been removed from the Dockerfile
2019-02-16 09:53:50 +01:00
Shaun Jackman
b39c5a4e84 Dockerfile: Remove environment variable USER 2019-02-15 11:18:55 -08:00
Mike McQuaid
019d97b4c8
Dockerfile: remove USER linuxbrew.
This defaults to `root` but we still want to keep a Linuxbrew user on
the system.
2019-02-15 10:05:10 +00:00
Shaun Jackman
f4e61bcb14 Add Dockerfile 2018-10-24 15:45:13 -07:00