Skip to content
This repository was archived by the owner on Jul 22, 2020. It is now read-only.

Fix failing docker builds#166

Merged
prymitive merged 2 commits intomasterfrom
fix-docker
Aug 9, 2017
Merged

Fix failing docker builds#166
prymitive merged 2 commits intomasterfrom
fix-docker

Conversation

@prymitive
Copy link
Contributor

No description provided.

@prymitive prymitive added the bug label Aug 8, 2017
@prymitive prymitive requested a review from terinjokes August 8, 2017 23:31
README.md Outdated

make

Note that building locally from sources requires Go and nodejs & npm.

Choose a reason for hiding this comment

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

Go, nodejs, and npm.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I always considered nodejs & npm inseparable

-ldflags "-X main.version=${VERSION:-dev}" \
github.com/cloudflare/unsee && \
rm -fr /go/src
RUN apk add --update make git nodejs

Choose a reason for hiding this comment

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

Either run this as one line (to avoid extra layers), or use Docker's multi-stage builds

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

best tip ever

unsee                                                              v0.7.2-108-g1342f04-dev               4c658f9c12da        4 seconds ago       276MB
unsee                                                              v0.7.2-106-ga181807-dev               93f70b5d62a5        22 minutes ago      947MB

Dockerfile Outdated
@@ -1,14 +1,10 @@
FROM golang:1.8.3-alpine

Choose a reason for hiding this comment

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

FROM golang:1.8.3-alpine as unsee-builder

Then use --from=unsee-builder down below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

By dropping vendor & bindata.go from git unsee is no longer go installable, and realistically it won't be, because the build pipeline is big and involves multiple tools.
Let's just use make targets we use for development when building docker image.
@prymitive prymitive merged commit f3f13ba into master Aug 9, 2017
@prymitive prymitive deleted the fix-docker branch August 9, 2017 18:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants