Skip to content

Commit d68fcc9

Browse files
Eugene FedorenkoEugene Fedorenko
authored andcommitted
playing with docker
1 parent fe4ed48 commit d68fcc9

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

environment_setup/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ LABEL org.label-schema.vendor = "Microsoft" \
77

88

99
COPY environment_setup/requirements.txt /setup/
10+
11+
COPY environment_setup/python.sh /usr/local/sbin/python.sh
12+
RUN rm /usr/local/bin/python && ln -s /usr/local/sbin/python.sh /usr/local/bin/python
13+
1014

1115
RUN apt-get update && apt-get install gcc -y && pip install --upgrade -r /setup/requirements.txt
1216

environment_setup/python.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
if [ $1 == 'run_train_pipeline.py' ]
4+
then
5+
az login --service-principal -u $(SP_APP_ID) -p $(SP_APP_SECRET) --tenant $(TENANT_ID)
6+
python3 $1
7+
else
8+
python3 $1
9+
fi

0 commit comments

Comments
 (0)