buzzfeed / sso

sso, aka S.S.Octopus, aka octoboi, is a single sign-on solution for securing internal services
MIT License
3.09k stars 186 forks source link

Updated dockerfile to golang 1.14 #296

Closed sootysec closed 4 years ago

sootysec commented 4 years ago

Problem

Golang 1.12 is now EOL. Can't locate Term/ReadLine.pm in @INC in docker build.

Solution

Update dockerfile to use golang:1.14 as build image. Added "ENV DEBIAN_FRONTEND noninteractive" to dockerfile

Notes

Other pertinent information. Examples: a walkthrough of how the solution might work, why this solution is optimal compared to other possible solutions, or further TODOs beyond this PR.

Jusshersmith commented 4 years ago

Hi @ducksecops! Thank you for opening this pull request!

A couple things:

Is the lack of noninteractive being set causing issues? If needed, I think we could probably just set it like so in the Dockerfile instead:

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install.........

As far as I'm aware it only throws up a few warning messages if not set (without failing) - but I could be wrong!

I suspect there may also be some other small syntax/logic changes needed as part of the move to go 1.14 (we'll see once the build succeeds). If you don't have the time to look into those - I'd be happy to.

Jusshersmith commented 4 years ago

Hi @ducksecops,

To keep this moving forward I've finished off and merged this change here: https://github.com/buzzfeed/sso/pull/298.

Thanks again!