2016-07-21 23:59:09 +03:00
|
|
|
FROM debian:jessie
|
|
|
|
|
|
|
|
RUN apt-get -qqy update && \
|
|
|
|
apt-get -qqy install jq openssl ca-certificates && \
|
|
|
|
apt-get -qqy clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2016-07-27 00:28:04 +03:00
|
|
|
# Create the directories and files that need to be present
|
2016-07-21 23:59:09 +03:00
|
|
|
RUN mkdir -p /var/lib/waagent && \
|
2016-07-27 00:28:04 +03:00
|
|
|
mkdir -p /var/lib/waagent/Extension/config && \
|
|
|
|
touch /var/lib/waagent/Extension/config/0.settings && \
|
|
|
|
mkdir -p /var/lib/waagent/Extension/status && \
|
|
|
|
mkdir -p /var/log/azure/Extension/VE.RS.ION
|
2016-07-21 23:59:09 +03:00
|
|
|
|
|
|
|
# Copy the test environment
|
|
|
|
WORKDIR /var/lib/waagent
|
|
|
|
COPY integration-test/env/ .
|
2016-07-27 23:48:32 +03:00
|
|
|
RUN ln -s /var/lib/waagent/fake-waagent /sbin/fake-waagent && \
|
|
|
|
ln -s /var/lib/waagent/wait-for-enable /sbin/wait-for-enable
|
2016-07-21 23:59:09 +03:00
|
|
|
|
|
|
|
# Copy the handler files
|
2016-08-01 23:51:52 +03:00
|
|
|
COPY misc/HandlerManifest.json ./Extension/
|
2016-07-27 00:28:04 +03:00
|
|
|
COPY misc/custom-script-shim ./Extension/bin/
|
2016-07-21 23:59:09 +03:00
|
|
|
COPY bin/custom-script-extension ./Extension/bin/
|