2021-05-07 12:07:29 +00:00
|
|
|
# Copyright The Lightning AI team.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2021-11-04 17:26:24 +00:00
|
|
|
ARG PYTHON_VERSION=3.9
|
2023-02-01 19:09:12 +00:00
|
|
|
ARG PYTORCH_VERSION=1.13
|
2021-05-07 12:07:29 +00:00
|
|
|
|
|
|
|
FROM pytorchlightning/pytorch_lightning:base-ipu-py${PYTHON_VERSION}-torch${PYTORCH_VERSION}
|
|
|
|
|
2021-05-24 18:31:31 +00:00
|
|
|
LABEL maintainer="PyTorchLightning <https://github.com/PyTorchLightning>"
|
2021-05-07 12:07:29 +00:00
|
|
|
|
|
|
|
RUN echo "ALL ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
|
|
|
|
|
|
|
WORKDIR /azp
|
|
|
|
|
2022-10-05 10:43:54 +00:00
|
|
|
COPY ./.azure/start.sh /usr/local/bin/
|
2021-05-07 12:07:29 +00:00
|
|
|
|
|
|
|
RUN curl -o /usr/local/bin/installdependencies.sh \
|
|
|
|
"https://raw.githubusercontent.com/microsoft/azure-pipelines-agent/d2acd5f77c6b3914cdb6ed0e5fbea672929c7da9/src/Misc/layoutbin/installdependencies.sh" && \
|
|
|
|
chmod +x /usr/local/bin/installdependencies.sh && \
|
|
|
|
chmod +x /usr/local/bin/start.sh && \
|
|
|
|
/usr/local/bin/installdependencies.sh
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/start.sh"]
|
|
|
|
CMD ["bash"]
|