Skip to content

Conversation

@AlvinMooreSr
Copy link
Contributor

Updated the build docker file to be Centos-based

build/Dockerfile Outdated
RUN adduser --disabled-password --gecos '' fdb && chown -R fdb /opt && chmod -R 0777 /opt
RUN adduser --comment '' fdb && chown -R fdb /opt && chmod -R 0777 /opt

USER fdb
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the user fdb won't have write permissions in the /opt directory? Wouldn't it be better to move this command more towards the end?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am planning on removing this from the dockerfile completely in the next version.

USER fdb

# wget of bintray without forcing UTF-8 encoding results in 403 Forbidden
RUN cd /opt/ &&\
Copy link
Contributor

Choose a reason for hiding this comment

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

I would generally prefer to put dependencies into /usr/local. Otherwise we'll need to modify the PATH variable to make this work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have a need to be able to install multiple versions such that the boost root directory: ie boost_1_67 would need to be included. For that reason, we use /opt rather than /usr/local (though that could also be done)

Copy link
Contributor

Choose a reason for hiding this comment

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

That makes sense to me - and I guess having to pass -DBOOST_ROOT in the docker file is not a big deal

@AlvinMooreSr
Copy link
Contributor Author

test this please

@hgray1 hgray1 assigned AlvinMooreSr and unassigned mpilman Apr 22, 2019
@AlvinMooreSr
Copy link
Contributor Author

test this please

@AlvinMooreSr AlvinMooreSr merged commit 0f4fd9c into apple:master Apr 26, 2019
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