FeatherCMS / feather

Feather is a modern Swift-based content management system powered by Vapor 4.
https://feathercms.com
MIT License
597 stars 55 forks source link

New docker image #63

Open DesdeChaves opened 2 years ago

DesdeChaves commented 2 years ago

Hi Tim

Many thanks for your efforts. Is It possible to provide a docker file to create a container? The old file allows create the image without errors, but it is not possible to run it.

I tried with "swift:5.5.2-focal as builder"

The log

`

docker run 7a1616d0ce5a

FeatherCore/Environment+Fetch.swift:24: Fatal error: The following key FEATHER_WORK_DIR is not defined in the environment file. Check the README or the documentation for how to set environment variables. Received signal 4. Backtrace: 0x55a06f3b5a92, Backtrace.(printBacktrace in _B82A8C0ED7C904841114FDF244F9E58E)(signal: Swift.Int32) -> () at /opt/feather/.build/checkouts/swift-backtrace/Sources/Backtrace/Backtrace.swift:66 0x7fa4e85c53bf 0x7fa4e88910ab 0x55a06f6ee07f, static (extension in FeatherCore):Vapor.Environment.featherRequired(Swift.String) -> Swift.String at /opt/feather/.build/checkouts/feather-core/Sources/FeatherCore/Extensions/Environment+Fetch.swift:24 0x55a06f6f7ce9, one-time initialization function for (workDir in _4CA58FEA3E295A70C8D04B97347E9C51) at /opt/feather/.build/checkouts/feather-core/Sources/FeatherCore/Feather/Feather.swift:22 0x7fa4e85c247e 0x7fa4e8b400d5 0x55a06f6f81e6, FeatherCore.Feather.(workDir in _4CA58FEA3E295A70C8D04B97347E9C51).unsafeMutableAddressor : Swift.String at /opt/feather/.build/checkouts/feather-core/Sources/FeatherCore/Feather/Feather.swift:22 0x55a06f6f81e6, one-time initialization function for base at /opt/feather/.build/checkouts/feather-core/Sources/FeatherCore/Feather/Feather.swift:35 0x7fa4e85c247e 0x7fa4e8b400d5 0x55a06f6f8353, FeatherCore.Feather.Paths.base.unsafeMutableAddressor : Foundation.URL at /opt/feather/.build/checkouts/feather-core/Sources/FeatherCore/Feather/Feather.swift:35 0x55a06f6f8353, one-time initialization function for public at /opt/feather/.build/checkouts/feather-core/Sources/FeatherCore/Feather/Feather.swift:38 0x7fa4e85c247e 0x7fa4e8b400d5 0x55a06f6f83a3, FeatherCore.Feather.Paths.public.unsafeMutableAddressor : Foundation.URL at /opt/feather/.build/checkouts/feather-core/Sources/FeatherCore/Feather/Feather.swift:38 0x55a06f6d300a, Feather.configure(Vapor.Application) throws -> () at /opt/feather/Sources/Feather/main.swift:23 0x55a06f6d2e96, Feather_main at /opt/feather/Sources/Feather/main.swift:42 0x7fa4e7e430b2 0x55a06f1dd9ad 0xffffffffffffffff /opt/feather/start: line 5: 7 Illegal instruction Feather serve --hostname 0.0.0.0 --port ${BASE_PORT}

`

Nice year 2022.

tib commented 2 years ago

Hi,

will take a look on this later on for sure, but I've got a bunch of other issues needs to be addressed before I can start with Docker.

Best, Tib

DesdeChaves commented 2 years ago

Hello Tib,

There is some progress on this matter (making a docker file).

Do you know of an alternative process to run CMS Feather in Google Cloud Console or AWS.

Best regards, Jorge