Bug 1597928 - Snap repackage: Stop fetching scripts from the hg.mozilla.org archive endpoint r=jlund

Differential Revision: https://phabricator.services.mozilla.com/D53933

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Johan Lorenzo 2019-11-21 09:50:47 +00:00
parent 391dbe5d1b
commit a966f72bb8
2 changed files with 11 additions and 6 deletions

View File

@ -35,12 +35,7 @@ job-defaults:
command:
- /bin/bash
- -cx
- >
curl -o scripts.tar.bz2 {config_params[head_repository]}/archive/{config_params[head_rev]}.tar.bz2/taskcluster/docker/firefox-snap/ &&
mkdir scripts &&
tar xvfj scripts.tar.bz2 -C scripts --strip-components 4 &&
cd scripts &&
./runme.sh
- ./runme.sh
env:
VERSION: "{release_config[version]}"
BUILD_NUMBER: "{release_config[build_number]}"

View File

@ -2,5 +2,15 @@ FROM snapcore/snapcraft:stable
RUN apt-get update && apt-get install -qy python3 bzip2 curl git && apt-get clean
RUN mkdir /scripts/
WORKDIR /scripts/
# Copy everything in the docker/firefox-snap folder but the Dockerfile
#
# XXX The following pattern is neither a regex nor a glob one. It's
# documented at https://golang.org/pkg/path/filepath/#Match. There's no
# way of explicitly filtering out "Dockerfile". If one day, someone needs
# to add a file starting with "D", then we must revisit the pattern below.
COPY [^D]* /scripts/
# Set a default command useful for debugging
CMD ["/bin/bash", "--login"]