зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset fe7303de56be (bug 1302763) for failing webdriver tests on Linux x64 debug (geckodriver.manifest fetch failed). r=backout
--HG-- rename : taskcluster/docker/README.md => testing/docker/README.md rename : taskcluster/docker/REGISTRY => testing/docker/REGISTRY rename : taskcluster/docker/android-gradle-build/Dockerfile => testing/docker/android-gradle-build/Dockerfile rename : taskcluster/docker/android-gradle-build/README.md => testing/docker/android-gradle-build/README.md rename : taskcluster/docker/android-gradle-build/REGISTRY => testing/docker/android-gradle-build/REGISTRY rename : taskcluster/docker/android-gradle-build/VERSION => testing/docker/android-gradle-build/VERSION rename : taskcluster/docker/android-gradle-build/bin/after.sh => testing/docker/android-gradle-build/bin/after.sh rename : taskcluster/docker/android-gradle-build/bin/before.sh => testing/docker/android-gradle-build/bin/before.sh rename : taskcluster/docker/android-gradle-build/bin/build.sh => testing/docker/android-gradle-build/bin/build.sh rename : taskcluster/docker/android-gradle-build/bin/checkout-script.sh => testing/docker/android-gradle-build/bin/checkout-script.sh rename : taskcluster/docker/android-gradle-build/bin/checkout-sources.sh => testing/docker/android-gradle-build/bin/checkout-sources.sh rename : taskcluster/docker/android-gradle-build/buildprops.json => testing/docker/android-gradle-build/buildprops.json rename : taskcluster/docker/android-gradle-build/dot-config/pip/pip.conf => testing/docker/android-gradle-build/dot-config/pip/pip.conf rename : taskcluster/docker/android-gradle-build/oauth.txt => testing/docker/android-gradle-build/oauth.txt rename : taskcluster/docker/base-build/Dockerfile => testing/docker/base-build/Dockerfile rename : taskcluster/docker/base-build/VERSION => testing/docker/base-build/VERSION rename : taskcluster/docker/base-build/system-setup.sh => testing/docker/base-build/system-setup.sh rename : taskcluster/docker/base-test/Dockerfile => testing/docker/base-test/Dockerfile rename : taskcluster/docker/base-test/REGISTRY => testing/docker/base-test/REGISTRY rename : taskcluster/docker/base-test/VERSION => testing/docker/base-test/VERSION rename : taskcluster/docker/base-test/sources.list => testing/docker/base-test/sources.list rename : taskcluster/docker/centos6-build-upd/Dockerfile => testing/docker/centos6-build-upd/Dockerfile rename : taskcluster/docker/centos6-build-upd/REGISTRY => testing/docker/centos6-build-upd/REGISTRY rename : taskcluster/docker/centos6-build-upd/VERSION => testing/docker/centos6-build-upd/VERSION rename : taskcluster/docker/centos6-build/Dockerfile => testing/docker/centos6-build/Dockerfile rename : taskcluster/docker/centos6-build/REGISTRY => testing/docker/centos6-build/REGISTRY rename : taskcluster/docker/centos6-build/VERSION => testing/docker/centos6-build/VERSION rename : taskcluster/docker/centos6-build/hgrc => testing/docker/centos6-build/hgrc rename : taskcluster/docker/centos6-build/system-setup.sh => testing/docker/centos6-build/system-setup.sh rename : taskcluster/docker/decision/Dockerfile => testing/docker/decision/Dockerfile rename : taskcluster/docker/decision/README.md => testing/docker/decision/README.md rename : taskcluster/docker/decision/REGISTRY => testing/docker/decision/REGISTRY rename : taskcluster/docker/decision/VERSION => testing/docker/decision/VERSION rename : taskcluster/docker/decision/system-setup.sh => testing/docker/decision/system-setup.sh rename : taskcluster/docker/desktop-build/Dockerfile => testing/docker/desktop-build/Dockerfile rename : taskcluster/docker/desktop-build/bin/build.sh => testing/docker/desktop-build/bin/build.sh rename : taskcluster/docker/desktop-build/bin/checkout-script.sh => testing/docker/desktop-build/bin/checkout-script.sh rename : taskcluster/docker/desktop-build/bin/checkout-sources.sh => testing/docker/desktop-build/bin/checkout-sources.sh rename : taskcluster/docker/desktop-build/buildprops.json => testing/docker/desktop-build/buildprops.json rename : taskcluster/docker/desktop-build/dot-config/pip/pip.conf => testing/docker/desktop-build/dot-config/pip/pip.conf rename : taskcluster/docker/desktop-build/oauth.txt => testing/docker/desktop-build/oauth.txt rename : taskcluster/docker/desktop-test/Dockerfile => testing/docker/desktop-test/Dockerfile rename : taskcluster/docker/desktop-test/apport => testing/docker/desktop-test/apport rename : taskcluster/docker/desktop-test/buildprops.json => testing/docker/desktop-test/buildprops.json rename : taskcluster/docker/desktop-test/deja-dup-monitor.desktop => testing/docker/desktop-test/deja-dup-monitor.desktop rename : taskcluster/docker/desktop-test/dot-files/config/pip/pip.conf => testing/docker/desktop-test/dot-files/config/pip/pip.conf rename : taskcluster/docker/desktop-test/dot-files/config/user-dirs.dirs => testing/docker/desktop-test/dot-files/config/user-dirs.dirs rename : taskcluster/docker/desktop-test/dot-files/config/user-dirs.locale => testing/docker/desktop-test/dot-files/config/user-dirs.locale rename : taskcluster/docker/desktop-test/dot-files/pulse/default.pa => testing/docker/desktop-test/dot-files/pulse/default.pa rename : taskcluster/docker/desktop-test/fonts.conf => testing/docker/desktop-test/fonts.conf rename : taskcluster/docker/desktop-test/jockey-gtk.desktop => testing/docker/desktop-test/jockey-gtk.desktop rename : taskcluster/docker/desktop-test/motd => testing/docker/desktop-test/motd rename : taskcluster/docker/desktop-test/release-upgrades => testing/docker/desktop-test/release-upgrades rename : taskcluster/docker/desktop-test/taskcluster-interactive-shell => testing/docker/desktop-test/taskcluster-interactive-shell rename : taskcluster/docker/desktop-test/tc-vcs-config.yml => testing/docker/desktop-test/tc-vcs-config.yml rename : taskcluster/docker/desktop-test/tester.env => testing/docker/desktop-test/tester.env rename : taskcluster/docker/desktop1604-test/Dockerfile => testing/docker/desktop1604-test/Dockerfile rename : taskcluster/docker/desktop1604-test/apport => testing/docker/desktop1604-test/apport rename : taskcluster/docker/desktop1604-test/buildprops.json => testing/docker/desktop1604-test/buildprops.json rename : taskcluster/docker/desktop1604-test/deja-dup-monitor.desktop => testing/docker/desktop1604-test/deja-dup-monitor.desktop rename : taskcluster/docker/desktop1604-test/dot-files/config/pip/pip.conf => testing/docker/desktop1604-test/dot-files/config/pip/pip.conf rename : taskcluster/docker/desktop1604-test/dot-files/config/user-dirs.dirs => testing/docker/desktop1604-test/dot-files/config/user-dirs.dirs rename : taskcluster/docker/desktop1604-test/dot-files/config/user-dirs.locale => testing/docker/desktop1604-test/dot-files/config/user-dirs.locale rename : taskcluster/docker/desktop1604-test/dot-files/pulse/default.pa => testing/docker/desktop1604-test/dot-files/pulse/default.pa rename : taskcluster/docker/desktop1604-test/fonts.conf => testing/docker/desktop1604-test/fonts.conf rename : taskcluster/docker/desktop1604-test/jockey-gtk.desktop => testing/docker/desktop1604-test/jockey-gtk.desktop rename : taskcluster/docker/desktop1604-test/motd => testing/docker/desktop1604-test/motd rename : taskcluster/docker/desktop1604-test/release-upgrades => testing/docker/desktop1604-test/release-upgrades rename : taskcluster/docker/desktop1604-test/taskcluster-interactive-shell => testing/docker/desktop1604-test/taskcluster-interactive-shell rename : taskcluster/docker/desktop1604-test/tc-vcs-config.yml => testing/docker/desktop1604-test/tc-vcs-config.yml rename : taskcluster/docker/desktop1604-test/tester.env => testing/docker/desktop1604-test/tester.env rename : taskcluster/docker/image_builder/Dockerfile => testing/docker/image_builder/Dockerfile rename : taskcluster/docker/image_builder/REGISTRY => testing/docker/image_builder/REGISTRY rename : taskcluster/docker/image_builder/VERSION => testing/docker/image_builder/VERSION rename : taskcluster/docker/image_builder/build-image.sh => testing/docker/image_builder/build-image.sh rename : taskcluster/docker/image_builder/setup.sh => testing/docker/image_builder/setup.sh rename : taskcluster/docker/lint/Dockerfile => testing/docker/lint/Dockerfile rename : taskcluster/docker/lint/system-setup.sh => testing/docker/lint/system-setup.sh rename : taskcluster/docker/recipes/centos6-build-system-setup.sh => testing/docker/recipes/centos6-build-system-setup.sh rename : taskcluster/docker/recipes/common.sh => testing/docker/recipes/common.sh rename : taskcluster/docker/recipes/install-mercurial.sh => testing/docker/recipes/install-mercurial.sh rename : taskcluster/docker/recipes/run-task => testing/docker/recipes/run-task rename : taskcluster/docker/recipes/tooltool.py => testing/docker/recipes/tooltool.py rename : taskcluster/docker/recipes/ubuntu1204-test-system-setup.sh => testing/docker/recipes/ubuntu1204-test-system-setup.sh rename : taskcluster/docker/recipes/ubuntu1604-test-system-setup.sh => testing/docker/recipes/ubuntu1604-test-system-setup.sh rename : taskcluster/docker/recipes/xvfb.sh => testing/docker/recipes/xvfb.sh rename : taskcluster/docker/rust-build/Dockerfile => testing/docker/rust-build/Dockerfile rename : taskcluster/docker/rust-build/README.md => testing/docker/rust-build/README.md rename : taskcluster/docker/rust-build/REGISTRY => testing/docker/rust-build/REGISTRY rename : taskcluster/docker/rust-build/VERSION => testing/docker/rust-build/VERSION rename : taskcluster/docker/rust-build/build_cargo.sh => testing/docker/rust-build/build_cargo.sh rename : taskcluster/docker/rust-build/build_rust.sh => testing/docker/rust-build/build_rust.sh rename : taskcluster/docker/rust-build/build_rust_mac.sh => testing/docker/rust-build/build_rust_mac.sh rename : taskcluster/docker/rust-build/fetch_cargo.sh => testing/docker/rust-build/fetch_cargo.sh rename : taskcluster/docker/rust-build/fetch_rust.sh => testing/docker/rust-build/fetch_rust.sh rename : taskcluster/docker/rust-build/package_rust.sh => testing/docker/rust-build/package_rust.sh rename : taskcluster/docker/rust-build/repack_rust.py => testing/docker/rust-build/repack_rust.py rename : taskcluster/docker/rust-build/splat_rust.py => testing/docker/rust-build/splat_rust.py rename : taskcluster/docker/rust-build/task.json => testing/docker/rust-build/task.json rename : taskcluster/docker/rust-build/tcbuild.py => testing/docker/rust-build/tcbuild.py rename : taskcluster/docker/rust-build/upload_rust.sh => testing/docker/rust-build/upload_rust.sh rename : taskcluster/docker/tester/Dockerfile => testing/docker/tester/Dockerfile rename : taskcluster/docker/tester/REGISTRY => testing/docker/tester/REGISTRY rename : taskcluster/docker/tester/VERSION => testing/docker/tester/VERSION rename : taskcluster/docker/tester/bin/test.sh => testing/docker/tester/bin/test.sh rename : taskcluster/docker/tester/dot-config/pip/pip.conf => testing/docker/tester/dot-config/pip/pip.conf rename : taskcluster/docker/tester/dot-config/user-dirs.dirs => testing/docker/tester/dot-config/user-dirs.dirs rename : taskcluster/docker/tester/dot-config/user-dirs.locale => testing/docker/tester/dot-config/user-dirs.locale rename : taskcluster/docker/tester/dot-pulse/default.pa => testing/docker/tester/dot-pulse/default.pa rename : taskcluster/docker/tester/tc-vcs-config.yml => testing/docker/tester/tc-vcs-config.yml rename : taskcluster/docker/tester/tester.env => testing/docker/tester/tester.env rename : taskcluster/docker/upload-symbols/Dockerfile => testing/docker/upload-symbols/Dockerfile rename : taskcluster/docker/upload-symbols/README.md => testing/docker/upload-symbols/README.md rename : taskcluster/docker/upload-symbols/bin/checkout-script.sh => testing/docker/upload-symbols/bin/checkout-script.sh rename : taskcluster/docker/upload-symbols/bin/upload.sh => testing/docker/upload-symbols/bin/upload.sh rename : taskcluster/docker/upload-symbols/test_exports.sh => testing/docker/upload-symbols/test_exports.sh
This commit is contained in:
Родитель
4174483eb1
Коммит
f3e89595f1
1
AUTHORS
1
AUTHORS
|
@ -879,7 +879,6 @@ Ryan Flint <rflint@dslr.net>
|
||||||
Ryan Jones <sciguyryan@gmail.com>
|
Ryan Jones <sciguyryan@gmail.com>
|
||||||
Ryan VanderMeulen <ryanvm@gmail.com>
|
Ryan VanderMeulen <ryanvm@gmail.com>
|
||||||
Ryoichi Furukawa <oliver@1000cp.com>
|
Ryoichi Furukawa <oliver@1000cp.com>
|
||||||
Sanyam Khurana <Sanyam.Khurana01@gmail.com>
|
|
||||||
sagdjb@softwareag.com
|
sagdjb@softwareag.com
|
||||||
Samir Gehani <sgehani@netscape.com>
|
Samir Gehani <sgehani@netscape.com>
|
||||||
Sammy Ford
|
Sammy Ford
|
||||||
|
|
|
@ -63,7 +63,7 @@ jobs:
|
||||||
when:
|
when:
|
||||||
files-changed:
|
files-changed:
|
||||||
- "mobile/android/config/**"
|
- "mobile/android/config/**"
|
||||||
- "taskcluster/docker/android-gradle-build/**"
|
- "testing/docker/android-gradle-build/**"
|
||||||
- "testing/mozharness/configs/builds/releng_sub_android_configs/*gradle_dependencies.py"
|
- "testing/mozharness/configs/builds/releng_sub_android_configs/*gradle_dependencies.py"
|
||||||
- "**/*.gradle"
|
- "**/*.gradle"
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
implementation: 'taskgraph.task.docker_image:DockerImageTask'
|
implementation: 'taskgraph.task.docker_image:DockerImageTask'
|
||||||
images_path: '../../../taskcluster/docker'
|
images_path: '../../../testing/docker'
|
||||||
|
|
||||||
# make a task for each docker-image we might want. For the moment, since we
|
# make a task for each docker-image we might want. For the moment, since we
|
||||||
# write artifacts for each, these are whitelisted, but ideally that will change
|
# write artifacts for each, these are whitelisted, but ideally that will change
|
||||||
|
|
|
@ -40,7 +40,7 @@ mozlint-eslint/opt:
|
||||||
# Other misc lint related files.
|
# Other misc lint related files.
|
||||||
- 'python/mozlint/**'
|
- 'python/mozlint/**'
|
||||||
- 'tools/lint/**'
|
- 'tools/lint/**'
|
||||||
- 'taskcluster/docker/lint/**'
|
- 'testing/docker/lint/**'
|
||||||
|
|
||||||
mozlint-flake8/opt:
|
mozlint-flake8/opt:
|
||||||
description: flake8 run over the gecko codebase
|
description: flake8 run over the gecko codebase
|
||||||
|
@ -66,7 +66,7 @@ mozlint-flake8/opt:
|
||||||
- '**/.flake8'
|
- '**/.flake8'
|
||||||
- 'python/mozlint/**'
|
- 'python/mozlint/**'
|
||||||
- 'tools/lint/**'
|
- 'tools/lint/**'
|
||||||
- 'taskcluster/docker/lint/**'
|
- 'testing/docker/lint/**'
|
||||||
|
|
||||||
wptlint-gecko/opt:
|
wptlint-gecko/opt:
|
||||||
description: web-platform-tests linter
|
description: web-platform-tests linter
|
||||||
|
@ -94,4 +94,4 @@ wptlint-gecko/opt:
|
||||||
- 'testing/web-platform/mozilla/meta/MANIFEST.json'
|
- 'testing/web-platform/mozilla/meta/MANIFEST.json'
|
||||||
- 'python/mozlint/**'
|
- 'python/mozlint/**'
|
||||||
- 'tools/lint/**'
|
- 'tools/lint/**'
|
||||||
- 'taskcluster/docker/lint/**'
|
- 'testing/docker/lint/**'
|
||||||
|
|
|
@ -1,187 +0,0 @@
|
||||||
#!/bin/env python
|
|
||||||
'''
|
|
||||||
This script downloads and repacks official rust language builds
|
|
||||||
with the necessary tool and target support for the Firefox
|
|
||||||
build environment.
|
|
||||||
'''
|
|
||||||
|
|
||||||
import os.path
|
|
||||||
import requests
|
|
||||||
import subprocess
|
|
||||||
import toml
|
|
||||||
|
|
||||||
|
|
||||||
def fetch_file(url):
|
|
||||||
'''Download a file from the given url if it's not already present.'''
|
|
||||||
filename = os.path.basename(url)
|
|
||||||
if os.path.exists(filename):
|
|
||||||
return
|
|
||||||
r = requests.get(url, stream=True)
|
|
||||||
r.raise_for_status()
|
|
||||||
with open(filename, 'wb') as fd:
|
|
||||||
for chunk in r.iter_content(4096):
|
|
||||||
fd.write(chunk)
|
|
||||||
|
|
||||||
|
|
||||||
def fetch(url):
|
|
||||||
'''Download and verify a package url.'''
|
|
||||||
base = os.path.basename(url)
|
|
||||||
print('Fetching %s...' % base)
|
|
||||||
fetch_file(url + '.asc')
|
|
||||||
fetch_file(url)
|
|
||||||
fetch_file(url + '.sha256')
|
|
||||||
fetch_file(url + '.asc.sha256')
|
|
||||||
print('Verifying %s...' % base)
|
|
||||||
subprocess.check_call(['shasum', '-c', base + '.sha256'])
|
|
||||||
subprocess.check_call(['shasum', '-c', base + '.asc.sha256'])
|
|
||||||
subprocess.check_call(['gpg', '--verify', base + '.asc', base])
|
|
||||||
if False:
|
|
||||||
subprocess.check_call([
|
|
||||||
'keybase', 'pgp', 'verify', '-d', base + '.asc', ' -i', base,
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
def install(filename, target):
|
|
||||||
'''Run a package's installer script against the given target directory.'''
|
|
||||||
print(' Unpacking %s...' % filename)
|
|
||||||
subprocess.check_call(['tar', 'xf', filename])
|
|
||||||
basename = filename.split('.tar')[0]
|
|
||||||
print(' Installing %s...' % basename)
|
|
||||||
install_cmd = [os.path.join(basename, 'install.sh')]
|
|
||||||
install_cmd += ['--prefix=' + os.path.abspath(target)]
|
|
||||||
install_cmd += ['--disable-ldconfig']
|
|
||||||
subprocess.check_call(install_cmd)
|
|
||||||
print(' Cleaning %s...' % basename)
|
|
||||||
subprocess.check_call(['rm', '-rf', basename])
|
|
||||||
|
|
||||||
|
|
||||||
def package(manifest, pkg, target):
|
|
||||||
'''Pull out the package dict for a particular package and target
|
|
||||||
from the given manifest.'''
|
|
||||||
version = manifest['pkg'][pkg]['version']
|
|
||||||
info = manifest['pkg'][pkg]['target'][target]
|
|
||||||
return (version, info)
|
|
||||||
|
|
||||||
|
|
||||||
def fetch_package(manifest, pkg, host):
|
|
||||||
version, info = package(manifest, pkg, host)
|
|
||||||
print('%s %s\n %s\n %s' % (pkg, version, info['url'], info['hash']))
|
|
||||||
if not info['available']:
|
|
||||||
print('%s marked unavailable for %s' % (pkg, host))
|
|
||||||
raise AssertionError
|
|
||||||
fetch(info['url'])
|
|
||||||
return info
|
|
||||||
|
|
||||||
|
|
||||||
def fetch_std(manifest, targets):
|
|
||||||
stds = []
|
|
||||||
for target in targets:
|
|
||||||
info = fetch_package(manifest, 'rust-std', target)
|
|
||||||
stds.append(info)
|
|
||||||
return stds
|
|
||||||
|
|
||||||
|
|
||||||
def tar_for_host(host):
|
|
||||||
if 'linux' in host:
|
|
||||||
tar_options = 'cJf'
|
|
||||||
tar_ext = '.tar.xz'
|
|
||||||
else:
|
|
||||||
tar_options = 'cjf'
|
|
||||||
tar_ext = '.tar.bz2'
|
|
||||||
return tar_options, tar_ext
|
|
||||||
|
|
||||||
|
|
||||||
def repack(host, targets, channel='stable', suffix=''):
|
|
||||||
print("Repacking rust for %s..." % host)
|
|
||||||
url = 'https://static.rust-lang.org/dist/channel-rust-' + channel + '.toml'
|
|
||||||
req = requests.get(url)
|
|
||||||
req.raise_for_status()
|
|
||||||
manifest = toml.loads(req.content)
|
|
||||||
if manifest['manifest-version'] != '2':
|
|
||||||
print('ERROR: unrecognized manifest version %s.' % manifest[
|
|
||||||
'manifest-version'])
|
|
||||||
return
|
|
||||||
print('Using manifest for rust %s as of %s.' % (channel, manifest['date']))
|
|
||||||
print('Fetching packages...')
|
|
||||||
rustc = fetch_package(manifest, 'rustc', host)
|
|
||||||
cargo = fetch_package(manifest, 'cargo', host)
|
|
||||||
stds = fetch_std(manifest, targets)
|
|
||||||
print('Installing packages...')
|
|
||||||
tar_basename = 'rustc-' + host
|
|
||||||
if suffix:
|
|
||||||
tar_basename += '-' + suffix
|
|
||||||
tar_basename += '-repack'
|
|
||||||
install_dir = 'rustc'
|
|
||||||
subprocess.check_call(['rm', '-rf', install_dir])
|
|
||||||
install(os.path.basename(rustc['url']), install_dir)
|
|
||||||
install(os.path.basename(cargo['url']), install_dir)
|
|
||||||
for std in stds:
|
|
||||||
install(os.path.basename(std['url']), install_dir)
|
|
||||||
pass
|
|
||||||
print('Tarring %s...' % tar_basename)
|
|
||||||
tar_options, tar_ext = tar_for_host(host)
|
|
||||||
subprocess.check_call(
|
|
||||||
['tar', tar_options, tar_basename + tar_ext, install_dir])
|
|
||||||
subprocess.check_call(['rm', '-rf', install_dir])
|
|
||||||
|
|
||||||
|
|
||||||
def repack_cargo(host, channel='nightly'):
|
|
||||||
print("Repacking cargo for %s..." % host)
|
|
||||||
# Cargo doesn't seem to have a .toml manifest.
|
|
||||||
base_url = 'https://static.rust-lang.org/cargo-dist/'
|
|
||||||
req = requests.get(os.path.join(base_url, 'channel-cargo-' + channel))
|
|
||||||
req.raise_for_status()
|
|
||||||
file = ''
|
|
||||||
for line in req.iter_lines():
|
|
||||||
if line.find(host) != -1:
|
|
||||||
file = line.strip()
|
|
||||||
if not file:
|
|
||||||
print('No manifest entry for %s!' % host)
|
|
||||||
return
|
|
||||||
manifest = {
|
|
||||||
'date': req.headers['Last-Modified'],
|
|
||||||
'pkg': {
|
|
||||||
'cargo': {
|
|
||||||
'version': channel,
|
|
||||||
'target': {
|
|
||||||
host: {
|
|
||||||
'url': os.path.join(base_url, file),
|
|
||||||
'hash': None,
|
|
||||||
'available': True,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
print('Using manifest for cargo %s.' % channel)
|
|
||||||
print('Fetching packages...')
|
|
||||||
cargo = fetch_package(manifest, 'cargo', host)
|
|
||||||
print('Installing packages...')
|
|
||||||
install_dir = 'cargo'
|
|
||||||
subprocess.check_call(['rm', '-rf', install_dir])
|
|
||||||
install(os.path.basename(cargo['url']), install_dir)
|
|
||||||
tar_basename = 'cargo-%s-repack' % host
|
|
||||||
print('Tarring %s...' % tar_basename)
|
|
||||||
tar_options, tar_ext = tar_for_host(host)
|
|
||||||
subprocess.check_call(
|
|
||||||
['tar', tar_options, tar_basename + tar_ext, install_dir])
|
|
||||||
subprocess.check_call(['rm', '-rf', install_dir])
|
|
||||||
|
|
||||||
|
|
||||||
# rust platform triples
|
|
||||||
android = "armv7-linux-androideabi"
|
|
||||||
android_x86 = "i686-linux-android"
|
|
||||||
linux64 = "x86_64-unknown-linux-gnu"
|
|
||||||
linux32 = "i686-unknown-linux-gnu"
|
|
||||||
mac64 = "x86_64-apple-darwin"
|
|
||||||
mac32 = "i686-apple-darwin"
|
|
||||||
win64 = "x86_64-pc-windows-msvc"
|
|
||||||
win32 = "i686-pc-windows-msvc"
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
repack(mac64, [mac64, mac32])
|
|
||||||
repack(win32, [win32])
|
|
||||||
repack(win64, [win64])
|
|
||||||
repack(linux64, [linux64, linux32])
|
|
||||||
repack(linux64, [linux64, mac64, mac32], suffix='mac-cross')
|
|
||||||
repack(linux64, [linux64, android, android_x86], suffix='android-cross')
|
|
|
@ -5,7 +5,7 @@ Docker Images
|
||||||
=============
|
=============
|
||||||
|
|
||||||
TaskCluster Docker images are defined in the source directory under
|
TaskCluster Docker images are defined in the source directory under
|
||||||
``taskcluster/docker``. Each directory therein contains the name of an
|
``testing/docker``. Each directory therein contains the name of an
|
||||||
image used as part of the task graph.
|
image used as part of the task graph.
|
||||||
|
|
||||||
Adding Extra Files to Images
|
Adding Extra Files to Images
|
||||||
|
|
|
@ -138,7 +138,7 @@ Docker tasks run.
|
||||||
The tasks to generate each docker image have predictable labels:
|
The tasks to generate each docker image have predictable labels:
|
||||||
``build-docker-image-<name>``.
|
``build-docker-image-<name>``.
|
||||||
|
|
||||||
Docker images are built from subdirectories of ``taskcluster/docker``, using
|
Docker images are built from subdirectories of ``testing/docker``, using
|
||||||
``docker build``. There is currently no capability for one Docker image to
|
``docker build``. There is currently no capability for one Docker image to
|
||||||
depend on another in-tree docker image, without uploading the latter to a
|
depend on another in-tree docker image, without uploading the latter to a
|
||||||
Docker repository
|
Docker repository
|
||||||
|
|
|
@ -54,7 +54,7 @@ export MOZ_OBJDIR="$WORKSPACE/obj-analyzed"
|
||||||
mkdir -p "$MOZ_OBJDIR"
|
mkdir -p "$MOZ_OBJDIR"
|
||||||
|
|
||||||
if [ -n "$DO_TOOLTOOL" ]; then
|
if [ -n "$DO_TOOLTOOL" ]; then
|
||||||
( cd $TOOLTOOL_DIR; python $GECKO_DIR/taskcluster/docker/recipes/tooltool.py --url https://api.pub.build.mozilla.org/tooltool/ -m $GECKO_DIR/$TOOLTOOL_MANIFEST fetch -c $TOOLTOOL_CACHE )
|
( cd $TOOLTOOL_DIR; python $GECKO_DIR/testing/docker/recipes/tooltool.py --url https://api.pub.build.mozilla.org/tooltool/ -m $GECKO_DIR/$TOOLTOOL_MANIFEST fetch -c $TOOLTOOL_CACHE )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export NO_MERCURIAL_SETUP_CHECK=1
|
export NO_MERCURIAL_SETUP_CHECK=1
|
||||||
|
|
|
@ -47,4 +47,4 @@ BROWSER_PLATFORM=$PLATFORM_OS$BITS
|
||||||
: ${TOOLTOOL_CHECKOUT:=$WORK}
|
: ${TOOLTOOL_CHECKOUT:=$WORK}
|
||||||
export TOOLTOOL_CHECKOUT
|
export TOOLTOOL_CHECKOUT
|
||||||
|
|
||||||
(cd $TOOLTOOL_CHECKOUT && python ${SRCDIR}/taskcluster/docker/recipes/tooltool.py --url $TOOLTOOL_SERVER -m $SRCDIR/$TOOLTOOL_MANIFEST fetch ${TOOLTOOL_CACHE:+ -c $TOOLTOOL_CACHE})
|
(cd $TOOLTOOL_CHECKOUT && python ${SRCDIR}/testing/docker/recipes/tooltool.py --url $TOOLTOOL_SERVER -m $SRCDIR/$TOOLTOOL_MANIFEST fetch ${TOOLTOOL_CACHE:+ -c $TOOLTOOL_CACHE})
|
||||||
|
|
|
@ -20,13 +20,13 @@ from io import BytesIO
|
||||||
from taskgraph.util import docker
|
from taskgraph.util import docker
|
||||||
|
|
||||||
GECKO = os.path.realpath(os.path.join(__file__, '..', '..', '..'))
|
GECKO = os.path.realpath(os.path.join(__file__, '..', '..', '..'))
|
||||||
IMAGE_DIR = os.path.join(GECKO, 'taskcluster', 'docker')
|
IMAGE_DIR = os.path.join(GECKO, 'testing', 'docker')
|
||||||
INDEX_URL = 'https://index.taskcluster.net/v1/task/' + docker.INDEX_PREFIX + '.{}.{}.hash.{}'
|
INDEX_URL = 'https://index.taskcluster.net/v1/task/' + docker.INDEX_PREFIX + '.{}.{}.hash.{}'
|
||||||
ARTIFACT_URL = 'https://queue.taskcluster.net/v1/task/{}/artifacts/{}'
|
ARTIFACT_URL = 'https://queue.taskcluster.net/v1/task/{}/artifacts/{}'
|
||||||
|
|
||||||
|
|
||||||
def load_image_by_name(image_name, tag=None):
|
def load_image_by_name(image_name, tag=None):
|
||||||
context_path = os.path.join(GECKO, 'taskcluster', 'docker', image_name)
|
context_path = os.path.join(GECKO, 'testing', 'docker', image_name)
|
||||||
context_hash = docker.generate_context_hash(GECKO, context_path, image_name)
|
context_hash = docker.generate_context_hash(GECKO, context_path, image_name)
|
||||||
|
|
||||||
image_index_url = INDEX_URL.format('level-3', image_name, context_hash)
|
image_index_url = INDEX_URL.format('level-3', image_name, context_hash)
|
||||||
|
|
|
@ -59,7 +59,7 @@ class DockerImageTask(base.Task):
|
||||||
tasks = []
|
tasks = []
|
||||||
templates = Templates(path)
|
templates = Templates(path)
|
||||||
for image_name, image_symbol in config['images'].iteritems():
|
for image_name, image_symbol in config['images'].iteritems():
|
||||||
context_path = os.path.join('taskcluster', 'docker', image_name)
|
context_path = os.path.join('testing', 'docker', image_name)
|
||||||
context_hash = generate_context_hash(GECKO, context_path, image_name)
|
context_hash = generate_context_hash(GECKO, context_path, image_name)
|
||||||
|
|
||||||
image_parameters = dict(parameters)
|
image_parameters = dict(parameters)
|
||||||
|
|
|
@ -141,7 +141,7 @@ task_description_schema = Schema({
|
||||||
Required('docker-image'): Any(
|
Required('docker-image'): Any(
|
||||||
# a raw Docker image path (repo/image:tag)
|
# a raw Docker image path (repo/image:tag)
|
||||||
basestring,
|
basestring,
|
||||||
# an in-tree generated docker image (from `taskcluster/docker/<name>`)
|
# an in-tree generated docker image (from `testing/docker/<name>`)
|
||||||
{'in-tree': basestring}
|
{'in-tree': basestring}
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
|
@ -126,7 +126,7 @@ test_description_schema = Schema({
|
||||||
Required('docker-image', default={'in-tree': 'desktop-test'}): Any(
|
Required('docker-image', default={'in-tree': 'desktop-test'}): Any(
|
||||||
# a raw Docker image path (repo/image:tag)
|
# a raw Docker image path (repo/image:tag)
|
||||||
basestring,
|
basestring,
|
||||||
# an in-tree generated docker image (from `taskcluster/docker/<name>`)
|
# an in-tree generated docker image (from `testing/docker/<name>`)
|
||||||
{'in-tree': basestring}
|
{'in-tree': basestring}
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ from mozpack.archive import (
|
||||||
|
|
||||||
|
|
||||||
GECKO = os.path.realpath(os.path.join(__file__, '..', '..', '..', '..'))
|
GECKO = os.path.realpath(os.path.join(__file__, '..', '..', '..', '..'))
|
||||||
DOCKER_ROOT = os.path.join(GECKO, 'taskcluster', 'docker')
|
DOCKER_ROOT = os.path.join(GECKO, 'testing', 'docker')
|
||||||
INDEX_PREFIX = 'docker.images.v2'
|
INDEX_PREFIX = 'docker.images.v2'
|
||||||
ARTIFACT_URL = 'https://queue.taskcluster.net/v1/task/{}/artifacts/{}'
|
ARTIFACT_URL = 'https://queue.taskcluster.net/v1/task/{}/artifacts/{}'
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,8 @@ ADD bin /home/worker/bin
|
||||||
RUN chmod +x /home/worker/bin/*
|
RUN chmod +x /home/worker/bin/*
|
||||||
|
|
||||||
# Add wrapper scripts for xvfb allowing tasks to easily retry starting up xvfb
|
# Add wrapper scripts for xvfb allowing tasks to easily retry starting up xvfb
|
||||||
# %include taskcluster/docker/recipes/xvfb.sh
|
# %include testing/docker/recipes/xvfb.sh
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/xvfb.sh /home/worker/scripts/xvfb.sh
|
ADD topsrcdir/testing/docker/recipes/xvfb.sh /home/worker/scripts/xvfb.sh
|
||||||
|
|
||||||
# Add configuration
|
# Add configuration
|
||||||
COPY dot-config /home/worker/.config
|
COPY dot-config /home/worker/.config
|
|
@ -5,20 +5,20 @@ MAINTAINER Greg Arndt <garndt@mozilla.com>
|
||||||
RUN useradd -d /home/worker -s /bin/bash -m worker
|
RUN useradd -d /home/worker -s /bin/bash -m worker
|
||||||
RUN mkdir /home/worker/artifacts && chown worker:worker /home/worker/artifacts
|
RUN mkdir /home/worker/artifacts && chown worker:worker /home/worker/artifacts
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/tooltool.py
|
# %include testing/docker/recipes/tooltool.py
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/tooltool.py /tmp/tooltool.py
|
ADD topsrcdir/testing/docker/recipes/tooltool.py /tmp/tooltool.py
|
||||||
|
|
||||||
# %include testing/mozharness/external_tools/robustcheckout.py
|
# %include testing/mozharness/external_tools/robustcheckout.py
|
||||||
ADD topsrcdir/testing/mozharness/external_tools/robustcheckout.py /usr/local/mercurial/robustcheckout.py
|
ADD topsrcdir/testing/mozharness/external_tools/robustcheckout.py /usr/local/mercurial/robustcheckout.py
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/install-mercurial.sh
|
# %include testing/docker/recipes/install-mercurial.sh
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/install-mercurial.sh /tmp/install-mercurial.sh
|
ADD topsrcdir/testing/docker/recipes/install-mercurial.sh /tmp/install-mercurial.sh
|
||||||
|
|
||||||
ADD system-setup.sh /tmp/system-setup.sh
|
ADD system-setup.sh /tmp/system-setup.sh
|
||||||
RUN bash /tmp/system-setup.sh
|
RUN bash /tmp/system-setup.sh
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/run-task
|
# %include testing/docker/recipes/run-task
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/run-task /home/worker/bin/run-task
|
ADD topsrcdir/testing/docker/recipes/run-task /home/worker/bin/run-task
|
||||||
|
|
||||||
ENV PATH /home/worker/bin:$PATH
|
ENV PATH /home/worker/bin:$PATH
|
||||||
ENV SHELL /bin/bash
|
ENV SHELL /bin/bash
|
|
@ -11,21 +11,21 @@ VOLUME /home/worker/tooltool-cache
|
||||||
ADD bin /home/worker/bin
|
ADD bin /home/worker/bin
|
||||||
RUN chmod +x /home/worker/bin/*
|
RUN chmod +x /home/worker/bin/*
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/tooltool.py
|
# %include testing/docker/recipes/tooltool.py
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/tooltool.py /builds/tooltool.py
|
ADD topsrcdir/testing/docker/recipes/tooltool.py /builds/tooltool.py
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/tooltool.py /setup/tooltool.py
|
ADD topsrcdir/testing/docker/recipes/tooltool.py /setup/tooltool.py
|
||||||
|
|
||||||
# %include testing/mozharness/external_tools/robustcheckout.py
|
# %include testing/mozharness/external_tools/robustcheckout.py
|
||||||
ADD topsrcdir/testing/mozharness/external_tools/robustcheckout.py /usr/local/mercurial/robustcheckout.py
|
ADD topsrcdir/testing/mozharness/external_tools/robustcheckout.py /usr/local/mercurial/robustcheckout.py
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/common.sh
|
# %include testing/docker/recipes/common.sh
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/common.sh /setup/common.sh
|
ADD topsrcdir/testing/docker/recipes/common.sh /setup/common.sh
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/install-mercurial.sh
|
# %include testing/docker/recipes/install-mercurial.sh
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/install-mercurial.sh /setup/install-mercurial.sh
|
ADD topsrcdir/testing/docker/recipes/install-mercurial.sh /setup/install-mercurial.sh
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/centos6-build-system-setup.sh
|
# %include testing/docker/recipes/centos6-build-system-setup.sh
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/centos6-build-system-setup.sh /setup/system-setup.sh
|
ADD topsrcdir/testing/docker/recipes/centos6-build-system-setup.sh /setup/system-setup.sh
|
||||||
|
|
||||||
# TODO remove once base image doesn't install Mercurial
|
# TODO remove once base image doesn't install Mercurial
|
||||||
RUN pip uninstall -y Mercurial
|
RUN pip uninstall -y Mercurial
|
||||||
|
@ -33,11 +33,11 @@ RUN pip uninstall -y Mercurial
|
||||||
RUN bash /setup/system-setup.sh
|
RUN bash /setup/system-setup.sh
|
||||||
|
|
||||||
# Add wrapper scripts for xvfb allowing tasks to easily retry starting up xvfb
|
# Add wrapper scripts for xvfb allowing tasks to easily retry starting up xvfb
|
||||||
# %include taskcluster/docker/recipes/xvfb.sh
|
# %include testing/docker/recipes/xvfb.sh
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/xvfb.sh /home/worker/scripts/xvfb.sh
|
ADD topsrcdir/testing/docker/recipes/xvfb.sh /home/worker/scripts/xvfb.sh
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/run-task
|
# %include testing/docker/recipes/run-task
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/run-task /home/worker/bin/run-task
|
ADD topsrcdir/testing/docker/recipes/run-task /home/worker/bin/run-task
|
||||||
|
|
||||||
# Add configuration
|
# Add configuration
|
||||||
COPY dot-config /home/worker/.config
|
COPY dot-config /home/worker/.config
|
|
@ -4,29 +4,29 @@ MAINTAINER Jonas Finnemann Jensen <jopsen@gmail.com>
|
||||||
RUN useradd -d /home/worker -s /bin/bash -m worker
|
RUN useradd -d /home/worker -s /bin/bash -m worker
|
||||||
WORKDIR /home/worker
|
WORKDIR /home/worker
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/tooltool.py
|
# %include testing/docker/recipes/tooltool.py
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/tooltool.py /setup/tooltool.py
|
ADD topsrcdir/testing/docker/recipes/tooltool.py /setup/tooltool.py
|
||||||
|
|
||||||
# %include testing/mozharness/external_tools/robustcheckout.py
|
# %include testing/mozharness/external_tools/robustcheckout.py
|
||||||
ADD topsrcdir/testing/mozharness/external_tools/robustcheckout.py /usr/local/mercurial/robustcheckout.py
|
ADD topsrcdir/testing/mozharness/external_tools/robustcheckout.py /usr/local/mercurial/robustcheckout.py
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/install-mercurial.sh
|
# %include testing/docker/recipes/install-mercurial.sh
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/install-mercurial.sh /tmp/install-mercurial.sh
|
ADD topsrcdir/testing/docker/recipes/install-mercurial.sh /tmp/install-mercurial.sh
|
||||||
|
|
||||||
# Add wrapper scripts for xvfb allowing tasks to easily retry starting up xvfb
|
# Add wrapper scripts for xvfb allowing tasks to easily retry starting up xvfb
|
||||||
# %include taskcluster/docker/recipes/xvfb.sh
|
# %include testing/docker/recipes/xvfb.sh
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/xvfb.sh /home/worker/scripts/xvfb.sh
|
ADD topsrcdir/testing/docker/recipes/xvfb.sh /home/worker/scripts/xvfb.sh
|
||||||
|
|
||||||
# Add the tooltool manifest containing the minidump_stackwalk binary.
|
# Add the tooltool manifest containing the minidump_stackwalk binary.
|
||||||
# %include testing/config/tooltool-manifests/linux64/releng.manifest
|
# %include testing/config/tooltool-manifests/linux64/releng.manifest
|
||||||
ADD topsrcdir/testing/config/tooltool-manifests/linux64/releng.manifest /tmp/minidump_stackwalk.manifest
|
ADD topsrcdir/testing/config/tooltool-manifests/linux64/releng.manifest /tmp/minidump_stackwalk.manifest
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/ubuntu1204-test-system-setup.sh
|
# %include testing/docker/recipes/ubuntu1204-test-system-setup.sh
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/ubuntu1204-test-system-setup.sh /setup/system-setup.sh
|
ADD topsrcdir/testing/docker/recipes/ubuntu1204-test-system-setup.sh /setup/system-setup.sh
|
||||||
RUN bash /setup/system-setup.sh
|
RUN bash /setup/system-setup.sh
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/run-task
|
# %include testing/docker/recipes/run-task
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/run-task /home/worker/bin/run-task
|
ADD topsrcdir/testing/docker/recipes/run-task /home/worker/bin/run-task
|
||||||
|
|
||||||
# %include taskcluster/scripts/tester/test-ubuntu.sh
|
# %include taskcluster/scripts/tester/test-ubuntu.sh
|
||||||
ADD topsrcdir/taskcluster/scripts/tester/test-ubuntu.sh /home/worker/bin/test-linux.sh
|
ADD topsrcdir/taskcluster/scripts/tester/test-ubuntu.sh /home/worker/bin/test-linux.sh
|
|
@ -4,32 +4,32 @@ MAINTAINER Joel Maher <joel.maher@gmail.com>
|
||||||
RUN useradd -d /home/worker -s /bin/bash -m worker
|
RUN useradd -d /home/worker -s /bin/bash -m worker
|
||||||
WORKDIR /home/worker
|
WORKDIR /home/worker
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/tooltool.py
|
# %include testing/docker/recipes/tooltool.py
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/tooltool.py /setup/tooltool.py
|
ADD topsrcdir/testing/docker/recipes/tooltool.py /setup/tooltool.py
|
||||||
|
|
||||||
# %include testing/mozharness/external_tools/robustcheckout.py
|
# %include testing/mozharness/external_tools/robustcheckout.py
|
||||||
ADD topsrcdir/testing/mozharness/external_tools/robustcheckout.py /usr/local/mercurial/robustcheckout.py
|
ADD topsrcdir/testing/mozharness/external_tools/robustcheckout.py /usr/local/mercurial/robustcheckout.py
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/common.sh
|
# %include testing/docker/recipes/common.sh
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/common.sh /setup/common.sh
|
ADD topsrcdir/testing/docker/recipes/common.sh /setup/common.sh
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/install-mercurial.sh
|
# %include testing/docker/recipes/install-mercurial.sh
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/install-mercurial.sh /setup/install-mercurial.sh
|
ADD topsrcdir/testing/docker/recipes/install-mercurial.sh /setup/install-mercurial.sh
|
||||||
|
|
||||||
# Add the tooltool manifest containing the minidump_stackwalk binary.
|
# Add the tooltool manifest containing the minidump_stackwalk binary.
|
||||||
# %include testing/config/tooltool-manifests/linux64/releng.manifest
|
# %include testing/config/tooltool-manifests/linux64/releng.manifest
|
||||||
ADD topsrcdir/testing/config/tooltool-manifests/linux64/releng.manifest /tmp/minidump_stackwalk.manifest
|
ADD topsrcdir/testing/config/tooltool-manifests/linux64/releng.manifest /tmp/minidump_stackwalk.manifest
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/ubuntu1604-test-system-setup.sh
|
# %include testing/docker/recipes/ubuntu1604-test-system-setup.sh
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/ubuntu1604-test-system-setup.sh /setup/system-setup.sh
|
ADD topsrcdir/testing/docker/recipes/ubuntu1604-test-system-setup.sh /setup/system-setup.sh
|
||||||
RUN bash /setup/system-setup.sh
|
RUN bash /setup/system-setup.sh
|
||||||
|
|
||||||
# Add wrapper scripts for xvfb allowing tasks to easily retry starting up xvfb
|
# Add wrapper scripts for xvfb allowing tasks to easily retry starting up xvfb
|
||||||
# %include taskcluster/docker/recipes/xvfb.sh
|
# %include testing/docker/recipes/xvfb.sh
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/xvfb.sh /home/worker/scripts/xvfb.sh
|
ADD topsrcdir/testing/docker/recipes/xvfb.sh /home/worker/scripts/xvfb.sh
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/run-task
|
# %include testing/docker/recipes/run-task
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/run-task /home/worker/bin/run-task
|
ADD topsrcdir/testing/docker/recipes/run-task /home/worker/bin/run-task
|
||||||
|
|
||||||
# %include taskcluster/scripts/tester/test-ubuntu.sh
|
# %include taskcluster/scripts/tester/test-ubuntu.sh
|
||||||
ADD topsrcdir/taskcluster/scripts/tester/test-ubuntu.sh /home/worker/bin/test-linux.sh
|
ADD topsrcdir/taskcluster/scripts/tester/test-ubuntu.sh /home/worker/bin/test-linux.sh
|
|
@ -1,19 +1,19 @@
|
||||||
FROM ubuntu:16.04
|
FROM ubuntu:16.04
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/tooltool.py
|
# %include testing/docker/recipes/tooltool.py
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/tooltool.py /setup/tooltool.py
|
ADD topsrcdir/testing/docker/recipes/tooltool.py /setup/tooltool.py
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/common.sh
|
# %include testing/docker/recipes/common.sh
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/common.sh /setup/common.sh
|
ADD topsrcdir/testing/docker/recipes/common.sh /setup/common.sh
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/install-mercurial.sh
|
# %include testing/docker/recipes/install-mercurial.sh
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/install-mercurial.sh /setup/install-mercurial.sh
|
ADD topsrcdir/testing/docker/recipes/install-mercurial.sh /setup/install-mercurial.sh
|
||||||
|
|
||||||
# %include taskcluster/mozharness/external_tools/robustcheckout.py
|
# %include testing/mozharness/external_tools/robustcheckout.py
|
||||||
ADD topsrcdir/taskcluster/mozharness/external_tools/robustcheckout.py /usr/local/mercurial/robustcheckout.py
|
ADD topsrcdir/testing/mozharness/external_tools/robustcheckout.py /usr/local/mercurial/robustcheckout.py
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/run-task
|
# %include testing/docker/recipes/run-task
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/run-task /usr/local/bin/run-task
|
ADD topsrcdir/testing/docker/recipes/run-task /usr/local/bin/run-task
|
||||||
|
|
||||||
# Add and run setup script
|
# Add and run setup script
|
||||||
ADD build-image.sh /usr/local/bin/build-image.sh
|
ADD build-image.sh /usr/local/bin/build-image.sh
|
|
@ -5,21 +5,21 @@ RUN useradd -d /home/worker -s /bin/bash -m worker
|
||||||
WORKDIR /home/worker
|
WORKDIR /home/worker
|
||||||
|
|
||||||
RUN mkdir /build
|
RUN mkdir /build
|
||||||
# %include taskcluster/docker/recipes/tooltool.py
|
# %include testing/docker/recipes/tooltool.py
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/tooltool.py /build/tooltool.py
|
ADD topsrcdir/testing/docker/recipes/tooltool.py /build/tooltool.py
|
||||||
|
|
||||||
# %include testing/mozharness/external_tools/robustcheckout.py
|
# %include testing/mozharness/external_tools/robustcheckout.py
|
||||||
ADD topsrcdir/testing/mozharness/external_tools/robustcheckout.py /usr/local/mercurial/robustcheckout.py
|
ADD topsrcdir/testing/mozharness/external_tools/robustcheckout.py /usr/local/mercurial/robustcheckout.py
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/install-mercurial.sh
|
# %include testing/docker/recipes/install-mercurial.sh
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/install-mercurial.sh /build/install-mercurial.sh
|
ADD topsrcdir/testing/docker/recipes/install-mercurial.sh /build/install-mercurial.sh
|
||||||
ADD system-setup.sh /tmp/system-setup.sh
|
ADD system-setup.sh /tmp/system-setup.sh
|
||||||
# %include tools/lint/flake8/flake8_requirements.txt
|
# %include tools/lint/flake8/flake8_requirements.txt
|
||||||
ADD topsrcdir/tools/lint/flake8/flake8_requirements.txt /tmp/flake8_requirements.txt
|
ADD topsrcdir/tools/lint/flake8/flake8_requirements.txt /tmp/flake8_requirements.txt
|
||||||
RUN bash /tmp/system-setup.sh
|
RUN bash /tmp/system-setup.sh
|
||||||
|
|
||||||
# %include taskcluster/docker/recipes/run-task
|
# %include testing/docker/recipes/run-task
|
||||||
ADD topsrcdir/taskcluster/docker/recipes/run-task /home/worker/bin/run-task
|
ADD topsrcdir/testing/docker/recipes/run-task /home/worker/bin/run-task
|
||||||
RUN chown -R worker:worker /home/worker/bin && chmod 755 /home/worker/bin/*
|
RUN chown -R worker:worker /home/worker/bin && chmod 755 /home/worker/bin/*
|
||||||
|
|
||||||
# Set variable normally configured at login, by the shells parent process, these
|
# Set variable normally configured at login, by the shells parent process, these
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче