Skip to content

Commit 409d286

Browse files
committed
use dnsmasq for translations generic worker
Hopefully a fix for mozilla/translations#549
1 parent 8f0647d commit 409d286

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

builders/gw_translations_gcp.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ script_directories:
1313
- ubuntu-jammy
1414
- ubuntu-worker-requirements
1515
- ubuntu-cuda
16+
- ubuntu-dnsmasq
1617
- generic-worker-linux
1718
- worker-runner-linux
1819
- worker-runner-gw-systemd # TODO: merge with 'generic-worker-linux'?
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
set -exv
4+
5+
# init helpers
6+
helpers_dir=${MONOPACKER_HELPERS_DIR:-"/etc/monopacker/scripts"}
7+
for h in ${helpers_dir}/*.sh; do
8+
. $h;
9+
done
10+
11+
apt-get install -y dnsmasq
12+
systemctl stop systemd-resolved
13+
systemctl disable systemd-resolved
14+
echo "server=8.8.8.8" >> /etc/dnsmasq.conf
15+
systemctl start dnsmasq

0 commit comments

Comments
 (0)