Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Dockerfile that allows configuration through environment variables #13

Closed
wants to merge 1 commit into from

Conversation

kpankonen
Copy link

based on #8, but allows configuration through environment variables

@kpankonen kpankonen force-pushed the dockerfile branch 2 times, most recently from a1d00a2 to 17ab687 Compare February 18, 2017 01:21
@kpankonen
Copy link
Author

Updated CircleCI config to push docker image to hub for master and tags. Requires the following environment variables to be set in CircleCI (or it won't attempt the deployment): DOCKER_USERNAME, DOCKER_PASSWORD, DOCKER_REPO

@kpankonen kpankonen force-pushed the dockerfile branch 3 times, most recently from af774ac to be03f22 Compare February 18, 2017 02:08
@mbarany
Copy link

mbarany commented Jun 15, 2017

@kpankonen any update on this? I would love if ld-relay was in a container.

@kpankonen kpankonen force-pushed the dockerfile branch 4 times, most recently from cbbd64b to 6535b8a Compare June 16, 2017 03:57
Dockerfile Outdated
@@ -0,0 +1,14 @@
FROM alpine:3.4
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI Latest Alpine is currently 3.6 - https://hub.docker.com/_/alpine/

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! updated

streamUri = \"${STREAM_URI:-https://stream.launchdarkly.com}\"
baseUri = \"${BASE_URI:-https://app.launchdarkly.com}\"
exitOnError = ${EXIT_ON_ERROR:-false}
port = ${PORT:-8030}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Dockerfile exposes 8030, yet here the port is configurable. consider simply leaving this non-configurable as you can map the port with docker anyways. Also, PORT is a generic Env name and can clash with existing Vars - consider a more unique name like LD_RELAY_PORT.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, removed the option to change the port

@kpankonen kpankonen force-pushed the dockerfile branch 3 times, most recently from e3d2cbe to 0419628 Compare June 16, 2017 04:34
@kpankonen
Copy link
Author

@jkodumal is there anything i can do to help get this merged?

@kpankonen
Copy link
Author

@mbarany my fork is pushing to the docker registry if you want to try out the image - https://hub.docker.com/r/kpankonen/ld-relay/

@mbarany
Copy link

mbarany commented Jun 16, 2017

@kpankonen thanks! I was trying it out yesterday, but ran into the issue of not having the bulk endpoint due to your fork being outdated. I will give it another try now. 🥇

@mbarany
Copy link

mbarany commented Jun 16, 2017

LGTM now

@jkodumal
Copy link
Contributor

@kpankonen We'll give it a spin-- I'd guess we'll be able to get it merged in the next few days.

@pkaeding
Copy link
Contributor

This is great; thanks for the contribution!

@jkodumal
Copy link
Contributor

Thanks for the review @pkaeding-- I'll resolve the conflicts and merge this.

@kpankonen thanks for the contribution!

@jkodumal
Copy link
Contributor

@kpankonen Merging this in via #20

@jkodumal jkodumal closed this Jun 16, 2017
eli-darkly added a commit that referenced this pull request Feb 20, 2018
LaunchDarklyCI pushed a commit that referenced this pull request Oct 7, 2020
(v6 - #13) simplify context management, don't use a separate type for client-side context info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants