-
Notifications
You must be signed in to change notification settings - Fork 560
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 Docker release files for mc #2182
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2182 +/- ##
======================================
Coverage 9.15% 9.15%
======================================
Files 93 93
Lines 6906 6906
======================================
Hits 632 632
Misses 6140 6140
Partials 134 134 Continue to review full report at Codecov.
|
Built locally using https://blog.hypriot.com/post/setup-simple-ci-pipeline-for-arm-images/ works fine. |
Dockerfile.release
Outdated
@@ -0,0 +1,12 @@ | |||
FROM alpine:3.5 | |||
|
|||
WORKDIR /go/src/app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need this.. @nitisht also you can follow Dockerfile.release
apk add --no-cache ca-certificates && \
apk add --no-cache --virtual .build-deps curl && \
We need ca-certificates as well.
echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf && \
Dockerfile.release
Outdated
curl https://dl.minio.io/client/mc/release/linux-amd64/mc > /usr/bin/mc && \ | ||
chmod +x /usr/bin/mc | ||
|
||
ENTRYPOINT ["mc"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Odd newline here.
Dockerfile.release.aarch64
Outdated
|
||
WORKDIR /go/src/app | ||
|
||
COPY . /go/src/app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
Dockerfile.release.armhf
Outdated
FROM resin/armhf-alpine:3.5 | ||
|
||
WORKDIR /go/src/app | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
2ac29e2
to
3faddf3
Compare
Updated as per your comments @harshavardhana Also as discussed, did not use
|
- New Dockerfile will be used for mc release images. - Statically built binary is downloaded from dl.minio.io website and used in the docker image.
3faddf3
to
1ad9516
Compare
These Dockerfile(s) will be used for
mc
release images for various platforms.Statically built binary is downloaded from dl.minio.io website and used in the docker image