Skip to content

Instantly share code, notes, and snippets.

@conorsch
Created January 21, 2021 01:56

Revisions

  1. conorsch created this gist Jan 21, 2021.
    48 changes: 48 additions & 0 deletions repo-channel-test.log
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,48 @@
    $ cat Dockerfile
    ARG DISTRO
    FROM ubuntu:$DISTRO
    ARG DISTRO
    RUN apt-get update && apt-get install -y curl apt-transport-https gnupg2
    RUN printf 'deb [arch=amd64] https://apt-test.freedom.press %s main\n' ${DISTRO} > /etc/apt/sources.list.d/apt-test.list
    RUN curl -sL -o /tmp/apt-test.asc https://raw.githubusercontent.com/freedomofpress/securedrop/develop/install_files/ansible-base/roles/install-fpf-repo/files/apt-test-signing-key.pub
    RUN apt-key add /tmp/apt-test.asc
    RUN apt-get update
    RUN apt-get download securedrop-config
    RUN sha256sum securedrop-config*.deb
    $ for d in xenial focal; do t=sd-test-$d; docker build --no-cache --build-arg DISTRO=$d -t $t . && docker run $t bash -c 'sha256sum *.deb' > $t-results.txt; done
    [+] Building 27.9s (12/12) FINISHED
    => [internal] load build definition from Dockerfile 0.0s
    => => transferring dockerfile: 38B 0.0s
    => [internal] load .dockerignore 0.0s
    => => transferring context: 2B 0.0s
    => [internal] load metadata for docker.io/library/ubuntu:xenial 0.0s
    => CACHED [1/8] FROM docker.io/library/ubuntu:xenial 0.0s
    => [2/8] RUN apt-get update && apt-get install -y curl apt-transport-https gnupg2 19.2s
    => [3/8] RUN printf 'deb [arch=amd64] https://apt-test.freedom.press %s main\n' xenial > /etc/apt/sources.list.d/apt-test.list 0.8s
    => [4/8] RUN curl -sL -o /tmp/apt-test.asc https://raw.githubusercontent.com/freedomofpress/securedrop/develop/install_files/ansible-base/ 0.9s
    => [5/8] RUN apt-key add /tmp/apt-test.asc 0.8s
    => [6/8] RUN apt-get update 2.5s
    => [7/8] RUN apt-get download securedrop-config 2.4s
    => [8/8] RUN sha256sum securedrop-config*.deb 0.6s
    => exporting to image 0.6s
    => => exporting layers 0.5s
    => => writing image sha256:84261e938a2825c791623e34d166e2afd5dfc0907d654d15b53450af757ce255 0.0s
    => => naming to docker.io/library/sd-test-xenial 0.0s
    [+] Building 24.6s (10/11)
    => [internal] load build definition from Dockerfile 0.0s
    => => transferring dockerfile: 38B 0.0s
    => [internal] load .dockerignore 0.0s
    => => transferring context: 2B 0.0s
    => [internal] load metadata for docker.io/library/ubuntu:focal 0.0s
    => CACHED [1/8] FROM docker.io/library/ubuntu:focal 0.0s
    => [2/8] RUN apt-get update && apt-get install -y curl apt-transport-https gnupg2 18.3s
    => [3/8] RUN printf 'deb [arch=amd64] https://apt-test.freedom.press %s main\n' focal > /etc/apt/sources.list.d/apt-test.list 0.6s
    => [4/8] RUN curl -sL -o /tmp/apt-test.asc https://raw.githubusercontent.com/freedomofpress/securedrop/develop/install_files/ansible-base/ 0.7s
    => [5/8] RUN apt-key add /tmp/apt-test.asc 0.8s
    => [6/8] RUN apt-get update 2.5s
    => ERROR [7/8] RUN apt-get download securedrop-config 1.7s
    ------
    > [7/8] RUN apt-get download securedrop-config:
    #10 1.602 E: Unable to locate package securedrop-config
    ------
    executor failed running [/bin/sh -c apt-get download securedrop-config]: exit code: 100