Skip to content

Commit

Permalink
use dnsmasq for translations generic worker
Browse files Browse the repository at this point in the history
Hopefully a fix for mozilla/translations#549
  • Loading branch information
bhearsum committed Oct 10, 2024
1 parent 8f0647d commit 409d286
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions builders/gw_translations_gcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ script_directories:
- ubuntu-jammy
- ubuntu-worker-requirements
- ubuntu-cuda
- ubuntu-dnsmasq
- generic-worker-linux
- worker-runner-linux
- worker-runner-gw-systemd # TODO: merge with 'generic-worker-linux'?
Expand Down
15 changes: 15 additions & 0 deletions scripts/ubuntu-dnsmasq/01-switch-to-dnsmasq.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

set -exv

# init helpers
helpers_dir=${MONOPACKER_HELPERS_DIR:-"/etc/monopacker/scripts"}
for h in ${helpers_dir}/*.sh; do
. $h;
done

apt-get install -y dnsmasq
systemctl stop systemd-resolved
systemctl disable systemd-resolved
echo "server=8.8.8.8" >> /etc/dnsmasq.conf
systemctl start dnsmasq

0 comments on commit 409d286

Please sign in to comment.