You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting this error when trying to view it in the browser:
RequestId: 3f848f5e-4cb4-4820-aa55-fef28313dfd5 Error: exec: "Elixir.NgspiceProxy:hello_world": executable file not found in $PATH
Runtime.InvalidEntrypoint
defmodule NgspiceProxy do
@moduledoc """
Entrypoint for my hello world Lambda function.
"""
require Logger
@doc """
The lambda entrypoint is just a public function in a module which accepts
two maps.
The returned term will be passed to Poison for Json Encoding.
"""
@spec hello_world(Map.t(), Map.t()) :: Term
def hello_world(request, context) when is_map(request) and is_map(context) do
"""
Hello World!
Got reqeust #{Kernel.inspect(request)}
Got Context #{Kernel.inspect(context)}
"""
|> Logger.info()
:ok
end
end
FROM elixir:1.6.6-otp-21 as build
RUN apt-get update
RUN apt-get install -y inotify-tools
WORKDIR /app
COPY . /app
RUN mix local.hex --force
RUN mix local.rebar --force
RUN mix deps.get
RUN mix compile.phoenix
FROM elixir:1.6.6-otp-21-alpine as final
RUN apk update && apk add inotify-tools
WORKDIR /app
COPY --from=build /app .
COPY --from=build /usr/bin/ngspice /usr/bin/ngspice
ENV PATH="${PATH}:/app"
EXPOSE 8080
CMD ["mix", "phx.server"]
Any idea ?
The text was updated successfully, but these errors were encountered:
I am getting this error when trying to view it in the browser:
At Lambda setup:
ENTRYPOINT override
Elixir.NgspiceProxy:hello_world
here is my entrypoint:
lib/ngspice_proxy.ex
mix.exs
Dockerfile
Any idea ?
The text was updated successfully, but these errors were encountered: