Closed cschuchardt88 closed 5 months ago
I am seeing the dockerfile you send now. Let me understand, it is both building and running.
Its two options you can try, Full version of Ubuntu
under the horizontal line is an other option to try.
Its two options you can try, Full version of Ubuntu
under the horizontal line is an other option to try.
That is a drastic change for a PR that simple was intended to remove AspNet. All this should had been discussed and stated before the change. Too much instability.
Its not the removal of asp.net core
, its just my code in this pr. Try to disable swagger.
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps
# Installer image
FROM amd64/buildpack-deps:jammy-curl AS installer
# Retrieve ASP.NET Core
RUN aspnetcore_version=7.0.14 \
&& curl -fSL --output aspnetcore.tar.gz https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/$aspnetcore_version/aspnetcore-runtime-$aspnetcore_version-linux-x64.tar.gz \
&& aspnetcore_sha512='00f55556cb580d81bf0059a61a642ed8b405452d55e94460c03a0edec9a4f608fd78561560e5fc5bf6e42fb1f45420eba75f8d102d8bd46686379dab7ffde6f6' \
&& echo "$aspnetcore_sha512 aspnetcore.tar.gz" | sha512sum -c - \
&& tar -oxzf aspnetcore.tar.gz ./shared/Microsoft.AspNetCore.App \
&& rm aspnetcore.tar.gz
# ASP.NET Core image
FROM $REPO:7.0.14-jammy-amd64
# ASP.NET Core version
ENV ASPNET_VERSION=7.0.14
COPY --from=installer ["/shared/Microsoft.AspNetCore.App", "/usr/share/dotnet/shared/Microsoft.AspNetCore.App"]
mcr.microsoft.com/dotnet/runtime-deps
That looks like to be too much specific configurations, @cschuchardt88.
From this code I could see that maybe dotnet/runtime-deps: .NET Runtime Dependencies is better than dotnet/aspnet: ASP.NET Core Runtime for this PR. But it is not clear to me.
Above was a modified version of the asp.net core
dockerfile
.
Above was a modified version of the
asp.net core
dockerfile
.
I do not understand this still, @cschuchardt88. A modified version of asp.net core...aehauheauea
I think we should do something very very simpler for now. Keeping compatibility at max. Later (when we merge devpack and module), and when we have a complete integrate environment (more workflows as you are proposing in other PRs), when we optimize and improve packages and these things. At least for me, it is becoming a little bit more complex for what was quite simple.
What you can do is use asp.net core image add Argument REPO
and set it two mcr.microsoft.com/dotnet/runtime-deps
I have ran into this problem before with docker, and my restserver
Works fine
@shargon, the error was Sqlitewallet
auto dependency injection.
So, I think we are fine now. Everything I tested here is ok.
Are we ready to go?
very nice
@shargon @Jim8y This already been tested and reviewed by @superboyiii. However @vncoelho caused a seen, that ended up being false.
I will review it likely the next week (working of bug fixes now).
RestServer
In this section you will learn about
RestServer
plugin and how it works.Dependencies
Required
Required
Required
Required
Required
Required
Required
linux maybe
Required
Required
Required
Swagger
(optional)Swagger
(optional)Swagger
(optional)Swagger
(optional)Swagger
(optional)Swagger UI
(optional)In Docker
These files go in the same directory as the
RestServer.dll
. In neo-cliplugins/RestServer/
folder.Response Headers
neo-cli
andRestServer
version.JSON Serializer
RestServer
uses custom Newtonsoft Json Converters to serialize controller action responses androute
parameters.One Way Binding -
Write
only.Neo.SmartContract.ContractState
Neo.SmartContract.NefFile
Neo.SmartContract.MethodToken
Neo.SmartContract.Native.TrimmedBlock
Neo.SmartContract.Manifest.ContractAbi
Neo.SmartContract.Manifest.ContractGroup
Neo.SmartContract.Manifest.ContractManifest
Neo.SmartContract.Manifest.ContractPermission
Neo.SmartContract.Manifest.ContractPermissionDescriptor
Neo.Network.P2P.Payloads.Block
Neo.Network.P2P.Payloads.Header
Neo.Network.P2P.Payloads.Signer
Neo.Network.P2P.Payloads.TransactionAttribute
Neo.Network.P2P.Payloads.Transaction
Neo.Network.P2P.Payloads.Witness
Two Way Binding -
Read
&Write
System.Guid
System.ReadOnlyMemory<T>
Neo.BigDecimal
Neo.UInt160
Neo.UInt256
Neo.Cryptography.ECC.ECPoint
Neo.VM.Types.Array
Neo.VM.Types.Boolean
Neo.VM.Types.Buffer
Neo.VM.Types.ByteString
Neo.VM.Types.Integer
Neo.VM.Types.InteropInterface
Neo.VM.Types.Null
Neo.VM.Types.Map
Neo.VM.Types.Pointer
Neo.VM.Types.StackItem
Neo.VM.Types.Struct
Remote Endpoints
Parametes
{hash}
can be any Neo N3 address or scripthash;{address}
can be any Neo N3 address only;{number}
and{index}
can be any uint32.Parameter Examples
{hash}
- 0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5 or NiHURyS83nX2mpxtA7xq84cGxVbHojj5Wc{address}
- NiHURyS83nX2mpxtA7xq84cGxVbHojj5Wc{number}
- 1{index}
- 2500000Paths
[GET]
/api/v1/utils/{hash}/address
[GET]
/api/v1/utils/{address}/scripthash
[GET]
/api/v1/utils/{hash}/{address}/validate
[GET]
/api/v1/node
[GET]
/api/v1/node/peers
[GET]
/api/v1/node/plugins
[GET]
/api/v1/node/settings
[GET]
/api/v1/ledger/neo/accounts
[GET]
/api/v1/ledger/gas/accounts
[GET]
/api/v1/ledger/blocks?page={number}&size={number}
[GET]
/api/v1/ledger/blocks/height
[GET]
/api/v1/ledger/blocks/{index}
[GET]
/api/v1/ledger/blocks/{index}/header
[GET]
/api/v1/ledger/blocks/{index}/witness
[GET]
/api/v1/ledger/blocks/{index}/transactions?page={number}&size={number}
[GET]
/api/v1/ledger/transactions/{hash}
[GET]
/api/v1/ledger/transactions/{hash}/witnesses
[GET]
/api/v1/ledger/transactions/{hash}/signers
[GET]
/api/v1/ledger/transactions/{hash}/attributes
[GET]
/api/v1/ledger/memorypool?page={number}&size={number}
[GET]
/api/v1/ledger/memorypool/verified?page={number}&size={number}
[GET]
/api/v1/ledger/memorypool/unverified?page={number}&size={number}
[GET]
/api/v1/ledger/memorypool/count
[GET]
/api/v1/tokens/balanceof/{address}
[GET]
/api/v1/tokens/nep-11?page={number}&size={number}
[GET]
/api/v1/tokens/nep-11/count
[GET]
/api/v1/tokens/nep-11/{hash}/balanceof/{address}
[GET]
/api/v1/tokens/nep-17?page={number}&size={number}
[GET]
/api/v1/tokens/nep-17/count
[GET]
/api/v1/tokens/nep-17/{hash}/balanceof/{address}
[GET]
/api/v1/contracts?page={number}&size={number}
[GET]
/api/v1/contracts/count
[GET]
/api/v1/contracts/{hash}
[GET]
/api/v1/contracts/{hash}/abi
[GET]
/api/v1/contracts/{hash}/manifest
[GET]
/api/v1/contracts/{hash}/nef
[GET]
/api/v1/contracts/{hash}/storage
[POST]
/api/v1/wallet/open
[POST]
/api/v1/wallet/create
[POST]
/api/v1/wallet/{session}/address/create
[GET]
/api/v1/wallet/{session}/address/list
[GET]
/api/v1/wallet/{session}/asset/list
[GET]
/api/v1/wallet/{session}/balance/list
[POST]
/api/v1/wallet/{session}/changepassword
[GET]
/api/v1/wallet/{session}/close
[GET]
/api/v1/wallet/{session}/delete/{address}
[GET]
/api/v1/wallet/{session}/export/{address}
[GET]
/api/v1/wallet/{session}/export
[GET]
/api/v1/wallet/{session}/gas/unclaimed
[GET]
/api/v1/wallet/{session}/key/list
[POST]
/api/v1/wallet/{session}/import
[POST]
/api/v1/wallet/{session}/import/multisigaddress
[POST]
/api/v1/wallet/{session}/transfer