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

Fix dockerfile version and deps #27

Merged
merged 1 commit into from
May 10, 2018
Merged

Conversation

Its-Alex
Copy link
Contributor

@Its-Alex Its-Alex commented May 9, 2018

Currently version and dependencies doesn't work on docker image I didn't notice it so this is the fix

Dockerfile Outdated
@@ -12,7 +15,7 @@ COPY source ./source
RUN go get -v ./... && \
go get -u github.com/fsouza/fake-gcs-server/fakestorage && \
go get -u github.com/kshvakov/clickhouse && \
GOOS=linux GOARCH=386 go build -a -o build/migrate.linux-386 -ldflags='-X main.Version=$(VERSION)' -tags '$(DATABASE) $(SOURCE)' ./cli
GOOS=linux GOARCH=386 go build -a -o build/migrate.linux-386 -ldflags="-X main.Version=${VERSION}" -tags "$DEPS" ./cli
Copy link
Member

Choose a reason for hiding this comment

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

Drop GOARCH and GOOS since we're running inside docker and the binary doesn't need to be portable.

Also, specify the sources.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sources are inside DEPS variable

Copy link
Member

Choose a reason for hiding this comment

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

Let's keep the db and source dependencies separate for easier management

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

@Its-Alex Its-Alex force-pushed the master branch 2 times, most recently from 2c02e3c to 6fcfbd0 Compare May 10, 2018 07:11
Signed-off-by: Alexandre MARRE <me@itsalex.fr>
@dhui dhui merged commit 07c20c5 into golang-migrate:master May 10, 2018
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.

2 participants