2023-08-24 01:21:23 +03:00
|
|
|
FROM ubuntu:20.04
|
2018-06-26 22:45:05 +03:00
|
|
|
|
|
|
|
RUN apt-get -qqy update && \
|
|
|
|
apt-get -qqy install jq openssl ca-certificates && \
|
2024-01-03 22:49:46 +03:00
|
|
|
apt-get -y install sysstat bc netcat && \
|
2018-06-26 22:45:05 +03:00
|
|
|
apt-get -qqy clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# Create the directories and files that need to be present
|
|
|
|
RUN mkdir -p /var/lib/waagent && \
|
|
|
|
mkdir -p /var/lib/waagent/Extension/config && \
|
|
|
|
touch /var/lib/waagent/Extension/config/0.settings && \
|
|
|
|
mkdir -p /var/lib/waagent/Extension/status && \
|
2023-12-01 05:38:07 +03:00
|
|
|
mkdir -p /var/log/azure/Extension/VE.RS.ION && \
|
|
|
|
mkdir -p /var/log/azure/Extension/events
|
2018-06-26 22:45:05 +03:00
|
|
|
|
|
|
|
# Copy the test environment
|
|
|
|
WORKDIR /var/lib/waagent
|
|
|
|
COPY integration-test/env/ .
|
|
|
|
COPY testbin/ .
|
|
|
|
RUN ln -s /var/lib/waagent/fake-waagent /sbin/fake-waagent && \
|
|
|
|
ln -s /var/lib/waagent/wait-for-enable /sbin/wait-for-enable && \
|
|
|
|
ln -s /var/lib/waagent/webserver /sbin/webserver && \
|
|
|
|
ln -s /var/lib/waagent/webserver_shim /sbin/webserver_shim
|
|
|
|
|
|
|
|
# Copy the handler files
|
|
|
|
COPY misc/HandlerManifest.json ./Extension/
|
2024-05-02 09:46:04 +03:00
|
|
|
COPY misc/manifest.xml ./Extension/
|
2018-06-26 22:45:05 +03:00
|
|
|
COPY misc/applicationhealth-shim ./Extension/bin/
|
2023-12-01 05:38:07 +03:00
|
|
|
COPY bin/applicationhealth-extension ./Extension/bin/
|
2024-03-19 22:06:04 +03:00
|
|
|
|
|
|
|
# Copy Helper functions and scripts
|
|
|
|
COPY integration-test/test/test_helper.bash /var/lib/waagent
|