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

build(docker): simplify docker build #170

Closed
wants to merge 1 commit into from

Conversation

johngeorgewright
Copy link

I was experiencing some difficulties building a docker image from scratch. After some fiddling, I put all your suggested commands directly in to the Dockerfile and all seems to work.

Build in to a docker image, rather than build locally
@dbemiller
Copy link
Contributor

dbemiller commented Oct 19, 2017

hey @johngeorgewright ... I'm actually updating the docs in #167. Would you mind t They work for me... but since I first installed this project a long time ago, I may have done some steps in the past and forgotten about them.

I'm not crazy about the production effect of this changeset. The docker container would be much larger, since it needs to contain Go, Glide, source code, etc. Today, we just copy a standalone binary, which is much lighter weight. You can read more about the strategy here: https://blog.codeship.com/building-minimal-docker-containers-for-go-applications/

Could you post any error messages you're getting? I'd definitely like to get to the bottom of it, and make sure that the new docs make it as easy as possible to get started.

@johngeorgewright
Copy link
Author

So, the difficulties I ran in to were during the build. The version of master that I had was erroring. After installing Go and Glide and not really knowing much about the language, I struggled for a couple of hours putting the build in to Docker. Come to think of it, the way I had got around the problem was by checking out your last tag.

I understand that you want to make the build as small as possible, so forget this pull request then. It just made things a lot easier here, as we didn't want to have to build on our development machines to get something live.

Have you thought about uploading your images to the docker hub?

@dbemiller
Copy link
Contributor

aha! If you were trying to run the latest version of master, there's a bug where the app crashes on startup. #166 will fix that, once it gets reviewed.

Docker hub is a great idea! I opened #171 for it for now. Will prioritize it & get to it (hopefully) soon.

@dbemiller dbemiller closed this Oct 20, 2017
pm-nilesh-chate pushed a commit to pm-nilesh-chate/prebid-server that referenced this pull request Feb 25, 2023
* Url decoding value of keywords

* Refactored code to rename dctr to key_val

* Added pmzoneid support in keywords

* Refactored code with removing single statement function

* Refactored code, renaming variables

* Refactored code: Removed size argument to make for impExtMap

* Added test case for URL encoded dctr value

* Added omitempty for fields in ExtImpPubmatic
StarWindMoonCloud pushed a commit to ParticleMedia/prebid-server that referenced this pull request Jun 5, 2024
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.

None yet

2 participants