-
Notifications
You must be signed in to change notification settings - Fork 61
Fix Pydantic error in API #188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix Pydantic error in API #188
Conversation
FlorentPoinsaut
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution!
It works well for me!
I suggest some optimization.
Regards,
| RUN pip install --no-cache-dir --upgrade pip==22.0.4 | ||
|
|
||
| # Required for installation of Python sslpsk package | ||
| RUN apk add build-base openssl-dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| RUN apk add build-base openssl-dev | |
| RUN apk add --no-cache build-base openssl-dev |
| RUN pip install --no-cache-dir --upgrade pip==22.0.4 | ||
|
|
||
| # Required for installation of Python sslpsk package | ||
| RUN apk add build-base openssl-dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| RUN apk add build-base openssl-dev | |
| RUN apk add --no-cache build-base openssl-dev |
|
|
||
| # Support connection encryption via TLS-PSK | ||
| RUN pip install --no-cache-dir "sslpsk" | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| USER root | |
| RUN apk del build-base openssl-dev | |
| USER bareos |
|
|
||
| # Support connection encryption via TLS-PSK | ||
| RUN pip install --no-cache-dir "sslpsk" | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| USER root | |
| RUN apk del build-base openssl-dev | |
| USER bareos |
Hi @barcus! Thank you for your work on this repository: it helped me a lot exploring the functionality bareos offers :)
Before I got things up and running though, like @k3nd0x I ran into #187. I included a workaround for this problem in this PR, which pins Pydantic to the newest 1.x version.
So not really a proper fix, but it might come in handy for the time being.