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

Apply latest che-machine-exec changes. #15

Merged
merged 8 commits into from
Jan 18, 2019
Merged

Apply latest che-machine-exec changes. #15

merged 8 commits into from
Jan 18, 2019

Conversation

AndrienkoAleksandr
Copy link
Contributor

References issue:

#13

Add kubernetes implementation.
Use alpine image like base for Dockerfile.

Gopkg.toml Outdated Show resolved Hide resolved
api/events/event_bus.go Show resolved Hide resolved
AndrienkoAleksandr and others added 5 commits January 17, 2019 16:38
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Dockerfile Outdated
@@ -15,6 +15,7 @@ WORKDIR /go/src/github.com/eclipse/che-machine-exec/
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-w -s' -a -installsuffix cgo -o che-machine-exec .

FROM registry.centos.org/centos:7
FROM alpine:3.8
Copy link
Contributor

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.

Yes, thanks, We can. Size will be really less: from 30.3 Mb to 29.9 Mb.

Copy link
Contributor

Choose a reason for hiding this comment

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

what is so big ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

che-machine-exec binary -> 24Mb

Copy link
Contributor

Choose a reason for hiding this comment

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

do we know what inside is taking so much data ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We use client libraries to work with kubernetes and docker. That's why I think it has such size.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Dockerfile Outdated
WORKDIR /go/src/github.com/eclipse/che-machine-exec/
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-w -s' -a -installsuffix cgo -o che-machine-exec .
RUN apk add --no-cache ca-certificates

FROM alpine:3.8
Copy link
Contributor

Choose a reason for hiding this comment

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

we're still using from alpine instead of scratch ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Used scratch image - 25.5 Mb. che-machine-exec binary -> 24Mb. Tested on the openshift.io - works.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
@AndrienkoAleksandr
Copy link
Contributor Author

@benoitf I want to merge this pull request. You Don't mind?

@benoitf
Copy link
Contributor

benoitf commented Jan 18, 2019

@AndrienkoAleksandr sure, was only question from my side

@AndrienkoAleksandr AndrienkoAleksandr merged commit fb57f81 into eclipse-che:master Jan 18, 2019
@AndrienkoAleksandr AndrienkoAleksandr deleted the moveToEclipseRepo branch January 18, 2019 09:24
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