mirror of
https://github.com/trailofbits/algo.git
synced 2025-04-18 07:07:08 +02:00
Multiple Azure fixes (#1908)
* Multiple Azure fixes * back to azure daily
This commit is contained in:
parent
bf6b969f0c
commit
ebec20ed36
5 changed files with 21 additions and 6 deletions
|
@ -1,8 +1,7 @@
|
|||
FROM python:3-alpine
|
||||
|
||||
ARG VERSION="git"
|
||||
ARG PACKAGES="bash libffi openssh-client openssl rsync tini"
|
||||
ARG BUILD_PACKAGES="gcc libffi-dev linux-headers make musl-dev openssl-dev"
|
||||
ARG PACKAGES="bash libffi openssh-client openssl rsync tini gcc libffi-dev linux-headers make musl-dev openssl-dev"
|
||||
|
||||
LABEL name="algo" \
|
||||
version="${VERSION}" \
|
||||
|
@ -15,13 +14,11 @@ RUN mkdir -p /algo && mkdir -p /algo/configs
|
|||
|
||||
WORKDIR /algo
|
||||
COPY requirements.txt .
|
||||
RUN apk --no-cache add ${BUILD_PACKAGES} && \
|
||||
python3 -m pip --no-cache-dir install -U pip && \
|
||||
RUN python3 -m pip --no-cache-dir install -U pip && \
|
||||
python3 -m pip --no-cache-dir install virtualenv && \
|
||||
python3 -m virtualenv .env && \
|
||||
source .env/bin/activate && \
|
||||
python3 -m pip --no-cache-dir install -r requirements.txt && \
|
||||
apk del ${BUILD_PACKAGES}
|
||||
python3 -m pip --no-cache-dir install -r requirements.txt
|
||||
COPY . .
|
||||
RUN chmod 0755 /algo/algo-docker.sh
|
||||
|
||||
|
|
|
@ -92,6 +92,7 @@ dnscrypt_servers:
|
|||
- cloudflare-ipv6
|
||||
|
||||
# DNS servers which will be used if 'dns_encryption' is 'false'.
|
||||
# Fallback resolvers for systemd-resolved
|
||||
# The default is to use Cloudflare.
|
||||
dns_servers:
|
||||
ipv4:
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
name:
|
||||
- packaging
|
||||
- requests[security]
|
||||
- xmltodict
|
||||
- azure-cli-core==2.0.35
|
||||
- azure-cli-nspkg==3.0.2
|
||||
- azure-common==1.1.11
|
||||
|
@ -38,5 +39,7 @@
|
|||
- azure-mgmt-hdinsight==0.1.0
|
||||
- azure-mgmt-devtestlabs==3.0.0
|
||||
- azure-mgmt-loganalytics==0.2.0
|
||||
- azure-mgmt-automation==0.1.1
|
||||
- azure-mgmt-iothub==0.7.0
|
||||
state: latest
|
||||
virtualenv_python: python3
|
||||
|
|
|
@ -13,6 +13,11 @@
|
|||
state: restarted
|
||||
daemon_reload: true
|
||||
|
||||
- name: restart systemd-resolved
|
||||
systemd:
|
||||
name: systemd-resolved
|
||||
state: restarted
|
||||
|
||||
- name: restart loopback bsd
|
||||
shell: >
|
||||
ifconfig lo100 destroy || true &&
|
||||
|
|
|
@ -45,6 +45,15 @@
|
|||
- { regexp: '^session.*optional.*pam_motd.so.*', line: '# MOTD DISABLED', file: '/etc/pam.d/login' }
|
||||
- { regexp: '^session.*optional.*pam_motd.so.*', line: '# MOTD DISABLED', file: '/etc/pam.d/sshd' }
|
||||
|
||||
- name: Ensure fallback resolvers are set
|
||||
ini_file:
|
||||
path: /etc/systemd/resolved.conf
|
||||
section: Resolve
|
||||
option: FallbackDNS
|
||||
value: "{{ dns_servers.ipv4 | join(' ') }}"
|
||||
notify:
|
||||
- restart systemd-resolved
|
||||
|
||||
- name: Loopback for services configured
|
||||
template:
|
||||
src: 10-algo-lo100.network.j2
|
||||
|
|
Loading…
Add table
Reference in a new issue