Skip to content
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

refactor(build): use FHS for deployments and artifacts #4786

Merged
merged 2 commits into from
Aug 3, 2022

Conversation

gustavovalverde
Copy link
Member

Motivation

Linux has its own filesystem convention, which is standard and considered by most sysadmins when creating products, OS-level restrictions, and even when taking security measures.

We should use this convention in our deployments and artifacts, so we don't get constrained in platforms which had restrictions based on this convention.

Fixes #3432

Specifications

Filesystem Hierarchy Standard - v3.0: https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html
Linux man for hier: https://man7.org/linux/man-pages/man7/hier.7.html

Solution

Do not use the /app directory to keep build binaries, as this does not comply with FHS. The correct place is /opt/<app-name>

Review

Anyone from @ZcashFoundation/devops-reviewers

Reviewer Checklist

  • Code implements Specs and Designs
  • Tests for Expected Behaviour
  • Tests for Errors

@gustavovalverde gustavovalverde added A-infrastructure Area: Infrastructure changes A-devops Area: Pipelines, CI/CD and Dockerfiles C-enhancement Category: This is an improvement P-Low ❄️ I-usability Zebra is hard to understand or use labels Jul 18, 2022
@gustavovalverde gustavovalverde self-assigned this Jul 18, 2022
@gustavovalverde gustavovalverde marked this pull request as ready for review July 18, 2022 20:36
@gustavovalverde gustavovalverde requested a review from a team as a code owner July 18, 2022 20:36
@gustavovalverde gustavovalverde requested review from teor2345 and removed request for a team July 18, 2022 20:36
@teor2345
Copy link
Contributor

teor2345 commented Aug 1, 2022

@Mergifyio update

@mergify
Copy link
Contributor

mergify bot commented Aug 1, 2022

update

✅ Branch has been successfully updated

Copy link
Contributor

@teor2345 teor2345 left a comment

Choose a reason for hiding this comment

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

Looks good!

The zcash-params job doesn't actually run until we merge to main, so can you please check main and the next PR that builds off the new zcash-params image?

(We did it this way because we didn't want to overload the parameter download server and get rate-limited.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-devops Area: Pipelines, CI/CD and Dockerfiles A-infrastructure Area: Infrastructure changes C-enhancement Category: This is an improvement I-usability Zebra is hard to understand or use
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use the Filesystem Hierarchy Standard (FHS) for deployments and artifacts
2 participants