mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2026-03-01 04:28:51 +00:00
please provide real-net docker images #1141
Labels
No labels
I1
I2
I3
I4
S1
S2
S3
S4
U0
U1
U2
U3
U3
U4
blocked
bug
bug
cli
compiler
config
config
consensus
dependencies
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
neotest
network
oracle
performance
question
rpc
security
smartcontract
task
task
task
test
vm
wallet
windows
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neo-go#1141
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @532910 on GitHub (Jun 13, 2023).
and fix https://github.com/nspcc-dev/neo-go/issues/3038 for this images
@roman-khimov commented on GitHub (Jun 13, 2023):
What do you mean by
real-net? mainnet/testnet?@532910 commented on GitHub (Jun 13, 2023):
yep, not privnet
@roman-khimov commented on GitHub (Jun 13, 2023):
Configurations are there in the image, it's just a matter of running the container with appropriate flags.
@532910 commented on GitHub (Jun 13, 2023):
appropriate flags will not remove bash and alpine from image that I don't need
@roman-khimov commented on GitHub (Jun 13, 2023):
They can't be removed, see #3038, there is a shell script inside.
@532910 commented on GitHub (Jun 13, 2023):
the shell script is called
privnet-entrypoint.shthis way it's for privnet only, this way I don't nedd it for testnet and mainnet@532910 commented on GitHub (Jun 13, 2023):
moreover, we don't use any shell scripts for our deployments, so it doesn't required for neogo
@roman-khimov commented on GitHub (Jun 13, 2023):
It doesn't matter much how it's called, the function it provides (handling block dumps) is generic and can be used for any network. And it is required, AIO will break without it for example.
@532910 commented on GitHub (Jun 13, 2023):
this way:
privnetmust be removed from it's name as it's not for privnet only)@roman-khimov commented on GitHub (Jun 13, 2023):
I prefer providing one image that works everywhere, the price is not that high here. Renaming is OK, but it's cosmetic.
@roman-khimov commented on GitHub (Jun 13, 2023):
OK, in fact there is a
-pused in this script, so it is privnet-only. Which makes we wonder how can it be improved. Maybe #2978 makes it all irrelevant, @AnnaShaleva?@roman-khimov commented on GitHub (Jun 13, 2023):
Or maybe we want to make it C#-style and handle all of this in the node itself?
@532910 commented on GitHub (Jun 13, 2023):
as #3038 says, docker is intended to run the only application, without unnecessary deps
AIO, privnet or anything else should create it's own docker image based on neogo-only docker image
@AnnaShaleva commented on GitHub (Jun 14, 2023):
Not completely. I see two options here:
-mor-t) to the start command depending on the image target.--config-fileoption to the start CMD.But since we have CMD instruction inside our single Dockerfile, then we have to make some additional movements to generate proper images for privnet/testnet/mainnet. For privnet it is already made, our docker compose file has
command: "node --config-path /config --privnet"instruction that overrides the defaultCMDone from Dockerfile. But I'm not sure what can be done to override testnet/mainnet CMD instructions.Thus, these two ways seems equal to me.
@AnnaShaleva commented on GitHub (Jun 14, 2023):
AFAIK, C# node doesn't handle it by herself. By default it uses a single
config.jsonfile, and the node operator should provide the proper config depending on the network. So it's the node operator that is responsible for the network configuration.@AnnaShaleva commented on GitHub (Jun 14, 2023):
When it comes to the node restore (
privnet-entrypoint.sh) then yes, we can add an argumet to thenodecommand and accept the*.accfile to restore the node before the start automatically. I vote for this option, this will allow to get rid of the entrypoint script.@roman-khimov commented on GitHub (Dec 21, 2023):
BTW, dev-env no longer needs/uses a block dump now, so we can reconsider scripts here.