Skip to content

Conversation

@edeckers
Copy link

@edeckers edeckers commented Jan 19, 2025

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.

@edeckers edeckers changed the title fix: pydantic issue in API Fix Pydantic error in API Jan 19, 2025
Copy link
Contributor

@FlorentPoinsaut FlorentPoinsaut left a 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
USER root
RUN apk del build-base openssl-dev
USER bareos


# Support connection encryption via TLS-PSK
RUN pip install --no-cache-dir "sslpsk"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
USER root
RUN apk del build-base openssl-dev
USER bareos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants