-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ansible and Dockerfile for tbb #3592
Update ansible and Dockerfile for tbb #3592
Conversation
- apt | ||
|
||
- name: install geckodriver | ||
shell: | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should use the unarchive
module to un-tar
the download.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heyy @kushaldas i see some potential tweaks that need to be added first. It's minor and I'm happy to help but I didn't want to step over your PR. Let me know if you don't mind and I'll start throwing commits here.
securedrop/Dockerfile
Outdated
@@ -20,6 +20,26 @@ RUN curl -LO https://launchpad.net/~ubuntu-mozilla-security/+archive/ubuntu/ppa/ | |||
dpkg -i firefox*deb && apt-get install -f && \ | |||
paxctl -cm /usr/lib/firefox/firefox | |||
|
|||
RUN apt-get install -y wget libasound2 libdbus-glib-1-2 libgtk2.0-0 libfontconfig1 libxrender1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add these components to the other layer? (line 9). It's best practice to keep these things bundled. You could separate by a comment as a visual separator.
securedrop/Dockerfile
Outdated
@@ -20,6 +20,26 @@ RUN curl -LO https://launchpad.net/~ubuntu-mozilla-security/+archive/ubuntu/ppa/ | |||
dpkg -i firefox*deb && apt-get install -f && \ | |||
paxctl -cm /usr/lib/firefox/firefox | |||
|
|||
RUN apt-get install -y wget libasound2 libdbus-glib-1-2 libgtk2.0-0 libfontconfig1 libxrender1 | |||
|
|||
RUN gpg --keyserver=hkp://ipv4.pool.sks-keyservers.net --recv-keys EF6E286DDA85EA2A4BA7DE684E2C6E8793298290 && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would honestly prefer to drop this network outreach and add the key to version control and then docker COPY
it into the container. We constantly battle with flakiness of keyservers in various projects
paxctl -cm /root/.local/tbb/tor-browser_en-US/Browser/firefox && \ | ||
paxctl -cm /root/.local/tbb/tor-browser_en-US/Browser/plugin-container | ||
|
||
ENV GECKODRIVER_CHECKSUM=3154274c050d724eb2f4e8986a58ed37c0138b48304692bf7eeed827a5e82319 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make this a build ARG
instead? Allow over-riding outside of this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@msheiny Why do we need to override the checksum? Asking because we have to use a particular version of geckodriver
with Tor Browser?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oooooooh okay thats not gonna change? i dunno... i just always try to move any unique strings like this outside of the dockerfile.. but i see your point
kushal mentioned waiting for upstream changes for CI. Im happy with his changes so far to this PR
@@ -20,6 +21,27 @@ RUN curl -LO https://launchpad.net/~ubuntu-mozilla-security/+archive/ubuntu/ppa/ | |||
dpkg -i firefox*deb && apt-get install -f && \ | |||
paxctl -cm /usr/lib/firefox/firefox | |||
|
|||
|
|||
COPY ./tor_project_public.pub /opt/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this file? Pulling down the branch locally, I can't find it anywhere. Was it omitted from an add? Recall that we already have the tor signing key at install_files/ansible-base/roles/tor-hidden-services/files/tor-signing-key.pub
, although we'll have to consider the build context for the image and whether that's accessible here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh, yes, I added that in the tbb_in_dev
branch (after I figured that I am missing that) :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting clarification on the Tor apt pubkey location (appears to be missing). Once that's resolved, these changes can certainly be added to the target branch (which is not develop
) via merge.
@msheiny Can you elaborate a bit on this? Unclear to me why we'd wait to merge, particularly since this is landing in a feature branch, not
I concur! Modulo a single clarification on the tor apt pubkey (see requested changes above). |
In sprint planning today, there was a lot of confusion about what the base branch is here, which branch is the right/current one, and what the workflow here is, so I'm going to write out what I think the workflow should be (following the approach we took for the alembic and journalist GUI feature branch work).
Does that seem reasonable @kushaldas @msheiny @conorsch? Please let me know if there is a particular issue with this workflow and we can revise it. |
@conorsch I cherry-picked the commit which adds the missing tor public key. Rest of the branches I am working on are dependent on this branch. This is ready to be merged in the |
@conorsch can you take another pass here? I dismissed your review since @kushaldas addressed your issue but i wanted to wait to see if you had additional concerns. |
kushal addressed original pub key issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Dev container builds without error for me now.
Update ansible and Dockerfile for tbb
Status
Ready for review.
Description of Changes
Fixes #3485
Changes proposed in this pull request:
Tor Browser 7.5.6 and geckodriver v0.17.0
Testing
Tests will fail for now in the whole tbb side.