We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe4ed48 commit d68fcc9Copy full SHA for d68fcc9
environment_setup/Dockerfile
@@ -7,6 +7,10 @@ LABEL org.label-schema.vendor = "Microsoft" \
7
8
9
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
14
15
RUN apt-get update && apt-get install gcc -y && pip install --upgrade -r /setup/requirements.txt
16
environment_setup/python.sh
@@ -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
+else
+fi
0 commit comments