• Steve Azzopardi's avatar
    Split `make docker` for GitLab Runner Helper · 45cf9f57
    Steve Azzopardi authored
    GitLab Runner helper is built using `make docker` which builds the
    binary, creates a Docker container and extract the files system of that
    container for publishing at a later stage.
    
    Because of  #3755 we
    have to split this command up so we generate the binaries and the docker
    archive separately since Windows containers cannot be built on Linux systems
    or vice versa.
    
    We are keeping the binary generation in one command to have both Windows
    and Linux binaries consistent, and built them on a Linux platform where
    `make` is installed. The make command already sets up the $GOPATH,
    dependencies and environment for building the binaries so there is no
    point of duplicating that. Then diverge when building the docker
    containers, since they have to be done on different platforms.  Windows
    does have GNUMake http://gnuwin32.sourceforge.net/packages/make.htm but
    it's fairly outdated and doesn't seem to work when installing it on
    Windows server 2019.
    
    Drop support for `USE_PRECOMPILED_IMAGES` since it's just extra
    complexity that is not needed, and it doesn't seem to be used anywhere.
    If the user runs `make helper-docker` and the binaries are already
    present they are not rebuild.
    45cf9f57
Name
Last commit
Last update
.gitlab Loading commit data...
apps/gitlab-runner-helper Loading commit data...
cache Loading commit data...
ci Loading commit data...
commands Loading commit data...
common Loading commit data...
dockerfiles Loading commit data...
docs Loading commit data...
executors Loading commit data...
helpers Loading commit data...
log Loading commit data...
network Loading commit data...
packaging Loading commit data...
scripts Loading commit data...
session Loading commit data...
shells Loading commit data...
tests Loading commit data...
vendor Loading commit data...
.codeclimate.yml Loading commit data...
.dockerignore Loading commit data...
.env Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
CHANGELOG.md Loading commit data...
CONTRIBUTING.md Loading commit data...
Dockerfile Loading commit data...
Gopkg.lock Loading commit data...
Gopkg.toml Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
Makefile.runner_helper.mk Loading commit data...
NOTICE Loading commit data...
Procfile Loading commit data...
README.md Loading commit data...
VERSION Loading commit data...
Vagrantfile Loading commit data...
config.toml.example Loading commit data...
install.sh Loading commit data...
main.go Loading commit data...