Skip to content

Feat: build Docker images & document docker-compose #1177

Closed

Description

@bpmct

What is your suggestion?

Build & push cross-platform Docker images for every Coder release.

  • Add dockerfile
  • Build & push cross-platform images on releases
  • Document docker run command
  • Document docker-compose and paramaters

Why do you want this feature?

Users can deploy Coder on app platforms (AWS ECS, Heroku, Railway, Google App Engine) or onto a K8s cluster

Are there any workarounds to get this functionality today?

You can Dockerize the binaries yourself!

Are you interested in submitting a PR for this?

Yep!

Activity

  1. self-assigned this
    on Apr 25, 2022
  2. Zate commented on May 10, 2022

    @Zate

    I'm looking to build a docker-compose file, and Dockerfile(s) to stand up a basic coder-server and coder-pgsql set of containers.

    • coder-server supporting all the env vars
      • Sane defaults for novice user / quick launch
      • More advanced users can modify any/all env vars if they need to
    • Support for coder-server in non DEV mode (with pgsql container)
      • Ability to support pgsql with self signed ssl (auto-setup)
      • pgsql on local network, coder-server on external network
    • Support for coder-server in DEV mode (no pgsql container)
      • Optional persistant support for pgsql volume
    • Optional: support docker pass through via unix socket or tcp
    • Optional support for a front end reverse proxy (traefik?)

    See how far we get through those.

  3. bpmct commented on May 11, 2022

    @bpmct
    MemberAuthor

    @Zate - Love the advanced docker-compose support 🙌🏼

    You might want to wait until #1178 is merged

    Support for coder-server in non DEV mode (with pgsql container)

    We do something similar with Coder v1 which is a postgres container and the Coder binary under the hood. This would be awesome https://coder.com/docs/coder/latest/setup/coder-for-docker/local#installing-coder-for-docker

  4. added this to the Community MVP milestone on May 12, 2022
  5. misskniss commented on May 12, 2022

    @misskniss
  6. changed the title [-]Feat: build Docker images for releases[/-] [+]Feat: build Docker images & document docker-compose[/+] on May 13, 2022
  7. bpmct commented on May 13, 2022

    @bpmct
    MemberAuthor

    reopening this because there's a bit more work to do. I edited the issue to convey the tasks

    @Zate: a few points here based on what you left:

    1. Support for coder-server in DEV mode (no pgsql container)
    2. Optional persistant support for pgsql volume

    you currently run dev mode with a persistant volume, see #1176. However, you also can't run Coder with localhost since the agent will use that access URL to dial itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

apiArea: HTTP API

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions