Alec
Alec
RRailway
Created by Alec on 5/24/2024 in #✋|help
Container Takes Hours To Start or Sometimes Just Doesn't
thanks!
21 replies
RRailway
Created by Alec on 5/24/2024 in #✋|help
Container Takes Hours To Start or Sometimes Just Doesn't
ok i think you might be right on the stdout log buffering
21 replies
RRailway
Created by Alec on 5/24/2024 in #✋|help
Container Takes Hours To Start or Sometimes Just Doesn't
I'm not super familiar with the internals of the haskell io monad but I was pretty sure this logs unbuffered to stdout, doing some more research now
21 replies
RRailway
Created by Alec on 5/24/2024 in #✋|help
Container Takes Hours To Start or Sometimes Just Doesn't
This is the entry point code:
main :: IO ()
main = do
withEnv $ \env -> do
appToRun <- Scotty.scottyAppT (runM env) (app env)
let warpSettings = setPort 3005 defaultSettings
runM env $ do
$logInfo "Selene start at port 3005"

runSettings warpSettings appToRun
main :: IO ()
main = do
withEnv $ \env -> do
appToRun <- Scotty.scottyAppT (runM env) (app env)
let warpSettings = setPort 3005 defaultSettings
runM env $ do
$logInfo "Selene start at port 3005"

runSettings warpSettings appToRun
21 replies
RRailway
Created by Alec on 5/24/2024 in #✋|help
Container Takes Hours To Start or Sometimes Just Doesn't
I believe so let me check
21 replies
RRailway
Created by Alec on 5/24/2024 in #✋|help
Container Takes Hours To Start or Sometimes Just Doesn't
yep
21 replies
RRailway
Created by Alec on 5/24/2024 in #✋|help
Container Takes Hours To Start or Sometimes Just Doesn't
Yep and in ECS and in my K8S cluster
21 replies
RRailway
Created by Alec on 5/24/2024 in #✋|help
Container Takes Hours To Start or Sometimes Just Doesn't
sure I didn't think it made a difference
FROM haskell:9.4.7-buster

WORKDIR /opt/selene

RUN apt install --no-install-recommends curl

RUN cabal update

# Add just the .cabal file to capture dependencies
COPY ./selene.cabal /opt/selene/selene.cabal

# Docker will cache this command as a layer, freeing us up to
# modify source code without re-installing dependencies
# (unless the .cabal file changes!)
RUN cabal new-build --only-dependencies -j4

# Add and Install Application Code
COPY . /opt/selene
RUN cabal new-install exe:selene -j4

CMD ["selene"]
FROM haskell:9.4.7-buster

WORKDIR /opt/selene

RUN apt install --no-install-recommends curl

RUN cabal update

# Add just the .cabal file to capture dependencies
COPY ./selene.cabal /opt/selene/selene.cabal

# Docker will cache this command as a layer, freeing us up to
# modify source code without re-installing dependencies
# (unless the .cabal file changes!)
RUN cabal new-build --only-dependencies -j4

# Add and Install Application Code
COPY . /opt/selene
RUN cabal new-install exe:selene -j4

CMD ["selene"]
21 replies
RRailway
Created by Alec on 5/24/2024 in #✋|help
Container Takes Hours To Start or Sometimes Just Doesn't
Like most of the "deploy" logs for this service are just fully empty. Only when a new deploy doesn't happen for many hours it'll have the start logs from my app show up with a timestamp that's hours after the "deploy" time
21 replies
RRailway
Created by Alec on 5/24/2024 in #✋|help
Container Takes Hours To Start or Sometimes Just Doesn't
60e7b407-448b-408b-84c2-c8ac25deef63
21 replies
RRailway
Created by Alec on 1/21/2024 in #✋|help
Railway Public Domain not working for Next.js app running via nx
i tried passing that and nx showed it was passing the param, I assumed that console log was just wrong, but i'm starting to thing there's a problem with using @nrwl/next:server, gonna try using nx for the build and using next start to actually run it
5 replies