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

Provisioning script updates #1774

Merged
merged 1 commit into from
May 31, 2024
Merged

Provisioning script updates #1774

merged 1 commit into from
May 31, 2024

Conversation

rdlrt
Copy link
Contributor

@rdlrt rdlrt commented May 31, 2024

Description

Guild Deploy changes:

  • Only run build dependencies as part of os dependencies when included as flag
  • Adapt libsodium flag to only use os_dependencies (and include minimal set of dependency there) to make it faster/lighter to deploy libsodium fork on block producing nodes
  • Include os_dependencies prior to running cardano-hw-cli download (to ensure libusb dependencies are available)
  • Allow CARDANO_NODE_VERSION to be set as environment variable for those who'd like to test guild-deploy against different node release
  • Bump CARDANO_NODE_VERSION to 8.9.3

files/docker:

  • Remove docker stage files
  • Remove cardano-wallet, as it is no longer relevant in the ecosystem now
  • for dockerfile_bin, remove tcpping (was unused due to comment), and remove cleanup references for build packages, as they're no longer deployed with -s p flag. Also, remove gnupg git from initial run, as they're already included as part of guild-deploy.sh -s -p call

setup-grest.sh:

  • Dont use command -v haproxy (as the shell isnt always refreshed and /usr/sbin may not be part of $PATH), instead look for /usr/sbin/haproxy to verify if haproxy was already installed
  • Add haproxy installer dependencies (if guild-deploy is only run with os_dependencies flag, haproxy wouldnt compile in it's current state)

Copy link
Collaborator

@TrevorBenson TrevorBenson left a comment

Choose a reason for hiding this comment

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

LGTM.

I suspect Systemd may be able to be removed from the container. I'll review that separately and if there is no real usage or dependency inside the container open a new PR for testing to further slim down the container, I'll include others in review to make sure I'm not overlooking some special use cases.

files/docker/node/dockerfile_bin Show resolved Hide resolved
@TrevorBenson
Copy link
Collaborator

TrevorBenson commented May 31, 2024

LGTM.

I suspect Systemd may be able to be removed from the container. I'll review that separately and if there is no real usage or dependency inside the container open a new PR for testing to further slim down the container, I'll include others in review to make sure I'm not overlooking some special use cases.

As discussed, haproxy or grest might be related to Systemd in container. I'll play with those in looking into possible additional slimming options.

- Only run build dependencies as part of os dependencies when included as flag
- Adapt libsodium flag to only use os_dependencies (and include minimal set of dependency there) to make it faster/lighter to deploy libsodium fork on block producing nodes
- Include os_dependencies prior to running cardano-hw-cli download (to ensure libusb dependencies are available)
- Allow CARDANO_NODE_VERSION to be set as environment variable for those who'd like to test guild-deploy against different node release
- Bump CARDANO_NODE_VERSION to 8.9.3

files/docker:
- Remove docker stage files
- Remove cardano-wallet, as it is no longer relevant in the ecosystem now
- for dockerfile_bin, remove tcpping (was unused due to comment), and remove cleanup references for build packages, as they're no longer deployed with `-s p` flag. Also, remove gnupg git from initial run, as they're already included as part of `guild-deploy.sh -s -p` call

setup-grest.sh:
- Dont use `command -v haproxy` (as the shell isnt always refreshed and /usr/sbin may not be part of $PATH), instead look for /usr/sbin/haproxy to verify if haproxy was already installed
- Add haproxy installer dependencies (if guild-deploy is only run with os_dependencies flag, haproxy wouldnt compile in it's current state)
@rdlrt rdlrt force-pushed the guild-deploy-patches branch from ff2a0ae to ef5ed9b Compare May 31, 2024 07:13
@rdlrt rdlrt merged commit 8540e7e into alpha May 31, 2024
1 check passed
@rdlrt rdlrt deleted the guild-deploy-patches branch May 31, 2024 07:14
rdlrt added a commit that referenced this pull request May 31, 2024
## Description
<!--- Describe your changes -->

### Guild Deploy changes:
- Only run build dependencies as part of os dependencies when included
as flag
- Adapt libsodium flag to only use os_dependencies (and include minimal
set of dependency there) to make it faster/lighter to deploy libsodium
fork on block producing nodes
- Include os_dependencies prior to running cardano-hw-cli download (to
ensure libusb dependencies are available)
- Allow CARDANO_NODE_VERSION to be set as environment variable for those
who'd like to test guild-deploy against different node release
- Bump CARDANO_NODE_VERSION to 8.9.3

### files/docker:
- Remove docker stage files
- Remove cardano-wallet, as it is no longer relevant in the ecosystem
now
- for dockerfile_bin, remove tcpping (was unused due to comment), and
remove cleanup references for build packages, as they're no longer
deployed with `-s p` flag. Also, remove gnupg git from initial run, as
they're already included as part of `guild-deploy.sh -s -p` call

### setup-grest.sh:
- Dont use `command -v haproxy` (as the shell isnt always refreshed and
/usr/sbin may not be part of $PATH), instead look for /usr/sbin/haproxy
to verify if haproxy was already installed
- Add haproxy installer dependencies (if guild-deploy is only run with
os_dependencies flag, haproxy wouldnt compile in it's current state)
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.

3 participants