]>
Commit | Line | Data |
---|---|---|
72cef35a ER |
1 | Last-Update: 2016-08-24 |
2 | Forwarded: not-needed | |
3 | Bug-Upstream: https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/issues/1504 | |
4 | Author: Dmitry Smirnov <onlyjob@debian.org> | |
5 | Description: do not incorporate Docker image into executable. | |
6 | ||
7 | --- gitlab-ci-multi-runner/executors/docker/executor_docker.go~ 2016-09-22 20:36:49.000000000 +0300 | |
8 | +++ gitlab-ci-multi-runner/executors/docker/executor_docker.go 2016-09-22 22:46:50.385436324 +0300 | |
9 | @@ -181,17 +181,11 @@ | |
10 | return | |
11 | } | |
12 | ||
13 | - data, err := Asset("prebuilt-" + architecture + prebuiltImageExtension) | |
14 | - if err != nil { | |
15 | - return nil, fmt.Errorf("Unsupported architecture: %s: %q", architecture, err.Error()) | |
16 | - } | |
17 | - | |
18 | s.Debugln("Loading prebuilt image...") | |
19 | err = s.client.ImportImage(docker.ImportImageOptions{ | |
20 | Repository: prebuiltImageName + "-" + architecture, | |
21 | Tag: common.REVISION, | |
22 | - Source: "-", | |
23 | - InputStream: bytes.NewBuffer(data), | |
24 | + Source: "/var/lib/gitlab-runner/prebuilt-" + architecture + ".tar.xz", | |
25 | }) | |
26 | if err != nil { | |
27 | return |