Ganache #6

Open
opened 2022-10-28 04:46:27 +00:00 by reel · 7 comments
reel commented 2022-10-28 04:46:27 +00:00 (Migrated from gitlab.com)

Nice to have:

Questions:

  • Should this actually be bound to 0.0.0.0 like the documentation suggests? I'd rather be safe due to time constraints.

x-post: https://gitlab.com/reel/ziion-tools/-/issues/1

Nice to have: - logging dir - add log rotation with https://github.com/stationgroup/ansible-logrotate-plusplus - discuss if healthchecks are useful in the ansible task Questions: - Should this actually be bound to 0.0.0.0 like the documentation suggests? I'd rather be safe due to time constraints. --- x-post: https://gitlab.com/reel/ziion-tools/-/issues/1
reel commented 2022-10-28 04:50:11 +00:00 (Migrated from gitlab.com)

marked this issue as related to reel/ziion-tools#1

marked this issue as related to reel/ziion-tools#1
reel commented 2022-10-28 05:04:40 +00:00 (Migrated from gitlab.com)

mentioned in issue reel/ziion-tools#1

mentioned in issue reel/ziion-tools#1
reel commented 2022-10-28 11:05:16 +00:00 (Migrated from gitlab.com)

mentioned in issue shopglue/ziion-tools#1

mentioned in issue shopglue/ziion-tools#1
reel commented 2022-10-28 11:07:56 +00:00 (Migrated from gitlab.com)

moved from reel/ziion-tools#4

moved from reel/ziion-tools#4
reel commented 2022-10-28 11:09:57 +00:00 (Migrated from gitlab.com)

mentioned in issue #1

mentioned in issue #1
reel commented 2022-10-29 11:15:45 +00:00 (Migrated from gitlab.com)

Need to find a better testing env for ARM with desktop support.

Fail on install.

  (Click to expand code)
TASK [ganache : Create ganache] ******************************************************************************
task path: /Users/excessmud/git/private-fork/shopglue/ziion-tools/ansible/roles/ganache/tasks/install-via-docker.yml:1
changed: [34.220.96.155] => {"changed": true, "container": {"AppArmorProfile": "docker-default", "Args": ["/app/dist/node/cli.js"], "Config": {"AttachStderr": true, "AttachStdin": false, "AttachStdout": true, "Cmd": null, "Domainname": "", "Entrypoint": ["node", "/app/dist/node/cli.js"], "Env": ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "NODE_VERSION=14.17.4", "YARN_VERSION=1.22.5", "DOCKER=true", "NODE_ENV=production"], "ExposedPorts": {"8545/tcp": {}}, "Hostname": "8b408c2d2f91", "Image": "trufflesuite/ganache:v7.1.0", "Labels": {"org.opencontainers.image.created": "2022-04-28T15:16:26.278Z", "org.opencontainers.image.description": "A tool for creating a local blockchain for fast Ethereum development.", "org.opencontainers.image.licenses": "MIT", "org.opencontainers.image.revision": "067265d91757d2f8c63396e0b51f52714b2322bd", "org.opencontainers.image.source": "https://github.com/trufflesuite/ganache", "org.opencontainers.image.title": "ganache", "org.opencontainers.image.url": "https://github.com/trufflesuite/ganache", "org.opencontainers.image.version": "master"}, "OnBuild": null, "OpenStdin": false, "StdinOnce": false, "Tty": false, "User": "", "Volumes": null, "WorkingDir": "/app"}, "Created": "2022-10-29T11:10:16.342027119Z", "Driver": "overlay2", "ExecIDs": null, "GraphDriver": {"Data": {"LowerDir": "/var/lib/docker/overlay2/f477090a2b92bfcf8a4151c56b3c4b1501b8db4f3077c529416682d773a73ed4-init/diff:/var/lib/docker/overlay2/e8fdcdafd041957077e3468034101ba7ba57f0ae84c3076f9474d3091f7bc1ec/diff:/var/lib/docker/overlay2/e7b89eb9ed23c5721bbe2736bf8d1df25637a38ca93a00dc6c1c0ddb3407e8ec/diff:/var/lib/docker/overlay2/60210f9d0050214b675788c9f5bb0f1fdfe7f126468ecbf4345834a255fb8832/diff:/var/lib/docker/overlay2/54bbfc5fb148bee9f7e958942e05f612996e836c616bfff6c22c9b7ce05f22f9/diff:/var/lib/docker/overlay2/2867b0d9ba7b48db791c3b0de57089f5a33fd0805e50259259987e8a646adcae/diff:/var/lib/docker/overlay2/7a5c890736f2694a820125e5bc0056fc06a4727f6eea7aa1eef45efce054b17f/diff:/var/lib/docker/overlay2/da65db4761d3f115e889b5ffc93c401c03c245fe133bdf78946d9ad82cc6a558/diff:/var/lib/docker/overlay2/4a01d4413c0e9e6f1863b1f7771e521799bd087e1ee8b08b590869f0992fefba/diff", "MergedDir": "/var/lib/docker/overlay2/f477090a2b92bfcf8a4151c56b3c4b1501b8db4f3077c529416682d773a73ed4/merged", "UpperDir": "/var/lib/docker/overlay2/f477090a2b92bfcf8a4151c56b3c4b1501b8db4f3077c529416682d773a73ed4/diff", "WorkDir": "/var/lib/docker/overlay2/f477090a2b92bfcf8a4151c56b3c4b1501b8db4f3077c529416682d773a73ed4/work"}, "Name": "overlay2"}, "HostConfig": {"AutoRemove": false, "Binds": null, "BlkioDeviceReadBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceWriteIOps": null, "BlkioWeight": 0, "BlkioWeightDevice": null, "CapAdd": null, "CapDrop": null, "Cgroup": "", "CgroupParent": "", "CgroupnsMode": "host", "ConsoleSize": [0, 0], "ContainerIDFile": "", "CpuCount": 0, "CpuPercent": 0, "CpuPeriod": 0, "CpuQuota": 0, "CpuRealtimePeriod": 0, "CpuRealtimeRuntime": 0, "CpuShares": 0, "CpusetCpus": "", "CpusetMems": "", "DeviceCgroupRules": null, "DeviceRequests": null, "Devices": null, "Dns": null, "DnsOptions": null, "DnsSearch": null, "ExtraHosts": null, "GroupAdd": null, "IOMaximumBandwidth": 0, "IOMaximumIOps": 0, "IpcMode": "private", "Isolation": "", "KernelMemory": 0, "KernelMemoryTCP": 0, "Links": null, "LogConfig": {"Config": {}, "Type": "json-file"}, "MaskedPaths": ["/proc/asound", "/proc/acpi", "/proc/kcore", "/proc/keys", "/proc/latency_stats", "/proc/timer_list", "/proc/timer_stats", "/proc/sched_debug", "/proc/scsi", "/sys/firmware"], "Memory": 0, "MemoryReservation": 0, "MemorySwap": 0, "MemorySwappiness": null, "NanoCpus": 0, "NetworkMode": "default", "OomKillDisable": false, "OomScoreAdj": 0, "PidMode": "", "PidsLimit": null, "PortBindings": {"8545/tcp": [{"HostIp": "127.0.0.1", "HostPort": "8545"}]}, "Privileged": false, "PublishAllPorts": false, "ReadonlyPaths": ["/proc/bus", "/proc/fs", "/proc/irq", "/proc/sys", "/proc/sysrq-trigger"], "ReadonlyRootfs": false, "RestartPolicy": {"MaximumRetryCount": 0, "Name": ""}, "Runtime": "runc", "SecurityOpt": null, "ShmSize": 67108864, "UTSMode": "", "Ulimits": null, "UsernsMode": "", "VolumeDriver": "", "VolumesFrom": null}, "HostnamePath": "/var/lib/docker/containers/8b408c2d2f9168ee9d7f36fa56f9119399ede4d0dbfe9094809119fb5c48c261/hostname", "HostsPath": "/var/lib/docker/containers/8b408c2d2f9168ee9d7f36fa56f9119399ede4d0dbfe9094809119fb5c48c261/hosts", "Id": "8b408c2d2f9168ee9d7f36fa56f9119399ede4d0dbfe9094809119fb5c48c261", "Image": "sha256:7a976990ddfc87e4311c043dbedcd938152175c9c02cbbc5197dd9145160d826", "LogPath": "/var/lib/docker/containers/8b408c2d2f9168ee9d7f36fa56f9119399ede4d0dbfe9094809119fb5c48c261/8b408c2d2f9168ee9d7f36fa56f9119399ede4d0dbfe9094809119fb5c48c261-json.log", "MountLabel": "", "Mounts": [], "Name": "/ganache", "NetworkSettings": {"Bridge": "", "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "HairpinMode": false, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "MacAddress": "", "Networks": {"bridge": {"Aliases": null, "DriverOpts": null, "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "IPAMConfig": null, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "Links": null, "MacAddress": "", "NetworkID": "889a5079f0978ecd6ff9963029777da6acb50a31d0f7f9ed3b27fe4d2324c8a5"}}, "Ports": {}, "SandboxID": "45cf916fe25e04943dc708adaeb74338d0e4611b4d378c0f0ff3ec75ad6c9103", "SandboxKey": "/var/run/docker/netns/45cf916fe25e", "SecondaryIPAddresses": null, "SecondaryIPv6Addresses": null}, "Path": "node", "Platform": "linux", "ProcessLabel": "", "ResolvConfPath": "/var/lib/docker/containers/8b408c2d2f9168ee9d7f36fa56f9119399ede4d0dbfe9094809119fb5c48c261/resolv.conf", "RestartCount": 0, "State": {"Dead": false, "Error": "", "ExitCode": 1, "FinishedAt": "2022-10-29T11:10:18.062157913Z", "OOMKilled": false, "Paused": false, "Pid": 0, "Restarting": false, "Running": false, "StartedAt": "2022-10-29T11:10:18.063033257Z", "Status": "exited"}}}

Need to find a better testing env for ARM with desktop support. Fail on install. <details>   <summary>(Click to expand code)</summary> ``` TASK [ganache : Create ganache] ****************************************************************************** task path: /Users/excessmud/git/private-fork/shopglue/ziion-tools/ansible/roles/ganache/tasks/install-via-docker.yml:1 changed: [34.220.96.155] => {"changed": true, "container": {"AppArmorProfile": "docker-default", "Args": ["/app/dist/node/cli.js"], "Config": {"AttachStderr": true, "AttachStdin": false, "AttachStdout": true, "Cmd": null, "Domainname": "", "Entrypoint": ["node", "/app/dist/node/cli.js"], "Env": ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "NODE_VERSION=14.17.4", "YARN_VERSION=1.22.5", "DOCKER=true", "NODE_ENV=production"], "ExposedPorts": {"8545/tcp": {}}, "Hostname": "8b408c2d2f91", "Image": "trufflesuite/ganache:v7.1.0", "Labels": {"org.opencontainers.image.created": "2022-04-28T15:16:26.278Z", "org.opencontainers.image.description": "A tool for creating a local blockchain for fast Ethereum development.", "org.opencontainers.image.licenses": "MIT", "org.opencontainers.image.revision": "067265d91757d2f8c63396e0b51f52714b2322bd", "org.opencontainers.image.source": "https://github.com/trufflesuite/ganache", "org.opencontainers.image.title": "ganache", "org.opencontainers.image.url": "https://github.com/trufflesuite/ganache", "org.opencontainers.image.version": "master"}, "OnBuild": null, "OpenStdin": false, "StdinOnce": false, "Tty": false, "User": "", "Volumes": null, "WorkingDir": "/app"}, "Created": "2022-10-29T11:10:16.342027119Z", "Driver": "overlay2", "ExecIDs": null, "GraphDriver": {"Data": {"LowerDir": "/var/lib/docker/overlay2/f477090a2b92bfcf8a4151c56b3c4b1501b8db4f3077c529416682d773a73ed4-init/diff:/var/lib/docker/overlay2/e8fdcdafd041957077e3468034101ba7ba57f0ae84c3076f9474d3091f7bc1ec/diff:/var/lib/docker/overlay2/e7b89eb9ed23c5721bbe2736bf8d1df25637a38ca93a00dc6c1c0ddb3407e8ec/diff:/var/lib/docker/overlay2/60210f9d0050214b675788c9f5bb0f1fdfe7f126468ecbf4345834a255fb8832/diff:/var/lib/docker/overlay2/54bbfc5fb148bee9f7e958942e05f612996e836c616bfff6c22c9b7ce05f22f9/diff:/var/lib/docker/overlay2/2867b0d9ba7b48db791c3b0de57089f5a33fd0805e50259259987e8a646adcae/diff:/var/lib/docker/overlay2/7a5c890736f2694a820125e5bc0056fc06a4727f6eea7aa1eef45efce054b17f/diff:/var/lib/docker/overlay2/da65db4761d3f115e889b5ffc93c401c03c245fe133bdf78946d9ad82cc6a558/diff:/var/lib/docker/overlay2/4a01d4413c0e9e6f1863b1f7771e521799bd087e1ee8b08b590869f0992fefba/diff", "MergedDir": "/var/lib/docker/overlay2/f477090a2b92bfcf8a4151c56b3c4b1501b8db4f3077c529416682d773a73ed4/merged", "UpperDir": "/var/lib/docker/overlay2/f477090a2b92bfcf8a4151c56b3c4b1501b8db4f3077c529416682d773a73ed4/diff", "WorkDir": "/var/lib/docker/overlay2/f477090a2b92bfcf8a4151c56b3c4b1501b8db4f3077c529416682d773a73ed4/work"}, "Name": "overlay2"}, "HostConfig": {"AutoRemove": false, "Binds": null, "BlkioDeviceReadBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceWriteIOps": null, "BlkioWeight": 0, "BlkioWeightDevice": null, "CapAdd": null, "CapDrop": null, "Cgroup": "", "CgroupParent": "", "CgroupnsMode": "host", "ConsoleSize": [0, 0], "ContainerIDFile": "", "CpuCount": 0, "CpuPercent": 0, "CpuPeriod": 0, "CpuQuota": 0, "CpuRealtimePeriod": 0, "CpuRealtimeRuntime": 0, "CpuShares": 0, "CpusetCpus": "", "CpusetMems": "", "DeviceCgroupRules": null, "DeviceRequests": null, "Devices": null, "Dns": null, "DnsOptions": null, "DnsSearch": null, "ExtraHosts": null, "GroupAdd": null, "IOMaximumBandwidth": 0, "IOMaximumIOps": 0, "IpcMode": "private", "Isolation": "", "KernelMemory": 0, "KernelMemoryTCP": 0, "Links": null, "LogConfig": {"Config": {}, "Type": "json-file"}, "MaskedPaths": ["/proc/asound", "/proc/acpi", "/proc/kcore", "/proc/keys", "/proc/latency_stats", "/proc/timer_list", "/proc/timer_stats", "/proc/sched_debug", "/proc/scsi", "/sys/firmware"], "Memory": 0, "MemoryReservation": 0, "MemorySwap": 0, "MemorySwappiness": null, "NanoCpus": 0, "NetworkMode": "default", "OomKillDisable": false, "OomScoreAdj": 0, "PidMode": "", "PidsLimit": null, "PortBindings": {"8545/tcp": [{"HostIp": "127.0.0.1", "HostPort": "8545"}]}, "Privileged": false, "PublishAllPorts": false, "ReadonlyPaths": ["/proc/bus", "/proc/fs", "/proc/irq", "/proc/sys", "/proc/sysrq-trigger"], "ReadonlyRootfs": false, "RestartPolicy": {"MaximumRetryCount": 0, "Name": ""}, "Runtime": "runc", "SecurityOpt": null, "ShmSize": 67108864, "UTSMode": "", "Ulimits": null, "UsernsMode": "", "VolumeDriver": "", "VolumesFrom": null}, "HostnamePath": "/var/lib/docker/containers/8b408c2d2f9168ee9d7f36fa56f9119399ede4d0dbfe9094809119fb5c48c261/hostname", "HostsPath": "/var/lib/docker/containers/8b408c2d2f9168ee9d7f36fa56f9119399ede4d0dbfe9094809119fb5c48c261/hosts", "Id": "8b408c2d2f9168ee9d7f36fa56f9119399ede4d0dbfe9094809119fb5c48c261", "Image": "sha256:7a976990ddfc87e4311c043dbedcd938152175c9c02cbbc5197dd9145160d826", "LogPath": "/var/lib/docker/containers/8b408c2d2f9168ee9d7f36fa56f9119399ede4d0dbfe9094809119fb5c48c261/8b408c2d2f9168ee9d7f36fa56f9119399ede4d0dbfe9094809119fb5c48c261-json.log", "MountLabel": "", "Mounts": [], "Name": "/ganache", "NetworkSettings": {"Bridge": "", "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "HairpinMode": false, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "MacAddress": "", "Networks": {"bridge": {"Aliases": null, "DriverOpts": null, "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "IPAMConfig": null, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "Links": null, "MacAddress": "", "NetworkID": "889a5079f0978ecd6ff9963029777da6acb50a31d0f7f9ed3b27fe4d2324c8a5"}}, "Ports": {}, "SandboxID": "45cf916fe25e04943dc708adaeb74338d0e4611b4d378c0f0ff3ec75ad6c9103", "SandboxKey": "/var/run/docker/netns/45cf916fe25e", "SecondaryIPAddresses": null, "SecondaryIPv6Addresses": null}, "Path": "node", "Platform": "linux", "ProcessLabel": "", "ResolvConfPath": "/var/lib/docker/containers/8b408c2d2f9168ee9d7f36fa56f9119399ede4d0dbfe9094809119fb5c48c261/resolv.conf", "RestartCount": 0, "State": {"Dead": false, "Error": "", "ExitCode": 1, "FinishedAt": "2022-10-29T11:10:18.062157913Z", "OOMKilled": false, "Paused": false, "Pid": 0, "Restarting": false, "Running": false, "StartedAt": "2022-10-29T11:10:18.063033257Z", "Status": "exited"}}} ``` </details>
reel commented 2022-10-30 12:13:55 +00:00 (Migrated from gitlab.com)

ARM doesn't get an officially supported build until 7.3.0.

https://hub.docker.com/r/trufflesuite/ganache/tags

https://hub.docker.com/layers/trufflesuite/ganache/v7.1.0/images/sha256-a14a07fd9f356e6bbd13eb19e3c3ebb3d5972ae4e9c1b3ff0ba5fe921fd9a381?context=explore

Discuss upgrade paths and compare against building and maintaining a custom backport

ARM doesn't get an officially supported build until `7.3.0`. https://hub.docker.com/r/trufflesuite/ganache/tags https://hub.docker.com/layers/trufflesuite/ganache/v7.1.0/images/sha256-a14a07fd9f356e6bbd13eb19e3c3ebb3d5972ae4e9c1b3ff0ba5fe921fd9a381?context=explore ## Discuss upgrade paths and compare against building and maintaining a custom backport
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: shopglue/ziion-tools#6
No description provided.