Skip to content

Commit b43580f

Browse files
authored
docker: fix folder names (#19200)
1 parent 59d2600 commit b43580f

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

dockers/nvidia/Dockerfile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,30 @@ ARG LIGHTNING_VERSION=""
2323

2424
RUN python -c "import torch ; print(torch.__version__)" >> torch_version.info
2525

26-
COPY ./ /workspace/lightning/
26+
COPY ./ /workspace/pytorch-lightning/
2727

2828
RUN \
2929
cd /workspace && \
3030
# replace by specific version if asked
3131
if [ ! -z "$LIGHTNING_VERSION" ] ; then \
32-
rm -rf lightning ; \
33-
git clone https://github.com/Lightning-AI/lightning.git ; \
34-
cd lightning ; \
32+
rm -rf pytorch-lightning ; \
33+
git clone https://github.com/Lightning-AI/pytorch-lightning.git ; \
34+
cd pytorch-lightning ; \
3535
git checkout ${LIGHTNING_VERSION} ; \
3636
git submodule update --init --recursive ; \
3737
cd .. ; \
3838
fi && \
3939
# save the examples \
40-
ls -lh lightning/ && \
41-
rm -rf lightning/.git && \
42-
rm -rf lightning/_notebooks/.git && \
43-
mv lightning/_notebooks/.notebooks/ notebooks && \
44-
cp -r lightning/*examples . && \
40+
ls -lh pytorch-lightning/ && \
41+
rm -rf pytorch-lightning/.git && \
42+
rm -rf pytorch-lightning/_notebooks/.git && \
43+
mv pytorch-lightning/_notebooks/.notebooks/ notebooks && \
44+
cp -r pytorch-lightning/*examples . && \
4545

4646
# Installations \
4747
pip install "Pillow>=8.2, !=8.3.0" "cryptography>=3.4" "py>=1.10" --no-cache-dir && \
4848
PACKAGE_NAME=pytorch pip install './lightning[extra,loggers,strategies]' --no-cache-dir && \
49-
rm -rf lightning && \
49+
rm -rf pytorch-lightning && \
5050
pip list
5151

5252
RUN pip install jupyterlab[all] -U --no-cache-dir

dockers/release/Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,28 @@ LABEL maintainer="Lightning-AI <https://github.com/Lightning-AI>"
2222

2323
ARG LIGHTNING_VERSION=""
2424

25-
COPY ./ /home/lightning/
25+
COPY ./ /home/pytorch-lightning/
2626

2727
# install dependencies
2828
RUN \
2929
cd /home && \
30-
mv lightning/_notebooks notebooks && \
31-
mv lightning/examples . && \
30+
mv pytorch-lightning/_notebooks notebooks && \
31+
mv pytorch-lightning/examples . && \
3232
# replace by specific version if asked
3333
if [ ! -z "$LIGHTNING_VERSION" ] ; then \
34-
rm -rf lightning ; \
35-
wget https://github.com/Lightning-AI/lightning/archive/${LIGHTNING_VERSION}.zip --progress=bar:force:noscroll ; \
34+
rm -rf pytorch-lightning ; \
35+
wget https://github.com/Lightning-AI/pytorch-lightning/archive/${LIGHTNING_VERSION}.zip --progress=bar:force:noscroll ; \
3636
unzip ${LIGHTNING_VERSION}.zip ; \
37-
mv lightning-*/ lightning ; \
37+
mv pytorch-lightning-*/ pytorch-lightning ; \
3838
rm *.zip ; \
3939
fi && \
4040
# otherwise there is collision with folder name and pkg name on Pypi
41-
cd lightning && \
41+
cd pytorch-lightning && \
4242
pip install setuptools==59.5.0 && \
4343
PACKAGE_NAME=lightning pip install '.[extra,loggers,strategies]' --no-cache-dir && \
4444
PACKAGE_NAME=pytorch pip install '.[extra,loggers,strategies]' --no-cache-dir && \
4545
cd .. && \
46-
rm -rf lightning
46+
rm -rf pytorch-lightning
4747

4848
RUN python --version && \
4949
pip --version && \

0 commit comments

Comments
 (0)