Docker: Usable snapshot import args
Context
In a docker environment, it's possible to pass arguments after the command octez-snapshot-import to the container but it fails due to arguments being misplaced in the executing command.
octez-node: required COMMAND name is missing, must be one of 'export', 'import' or 'info'
This update aims to fix the order in the command.
Some use cases are:
- --no-check option to improve snapshot import speed;
- --block <block_hash> option to specify the expected head block in the snapshot to ensure snapshot integrity.
Manually testing the MR
To test: run a snapshot import in a docker container using the command octez-snapshot-import --no-check --block <block_hash>
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Yves Coriton