Skip to content

SAS on Demand Connection Difficulties When Flask App Deployed to Azure Web App #548

Answered by sadovsd
sadovsd asked this question in Q&A
Discussion options

You must be logged in to vote

I made a docker container to house both python and java and it all worked out when I deployed to azure web apps. The other change I made was not using the .authinfo file for authentication, and just entering credentials into the sascfg_personal.py file, as Tom suggested in an answer above. This is the docker file that worked for me.

# Get Linux
FROM alpine:3.14

# Get Java via the package manager
RUN apk update \
&& apk upgrade \
&& apk add --no-cache bash \
&& apk add --no-cache --virtual=build-dependencies unzip \
&& apk add --no-cache curl \
&& apk add --no-cache openjdk8-jre

# Get Python, PIP
RUN apk add --no-cache python3 \
&& python3 -m ensurepip \
&& pip3 install --upgrade pip set…

Replies: 8 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@sadovsd
Comment options

Comment options

You must be logged in to vote
1 reply
@sadovsd
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sadovsd
Comment options

Comment options

You must be logged in to vote
1 reply
@sadovsd
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by sadovsd
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants