Skip to content

Conversation

@thaJeztah
Copy link
Member

depends on moby/moby#40393

Upstream moby/moby#40180 removed the auto-generated code, replacing
it with build-time variables (-X).

This patch updates the Dockerfiles to account for this change.

Upstream moby/moby#40180 removed the auto-generated code, replacing
it with build-time variables (-X).

This patch updates the Dockerfiles to account for this change.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

ping @arkodg @zelahi @StefanScherer PTAL 🤗

RUN go build -o /dockerd \
-tags 'autogen apparmor seccomp selinux journald' \
RUN source ./hack/make/.go-autogen; \
go build -o /sbin/dockerd \
Copy link
Member

Choose a reason for hiding this comment

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

This /sbin/dockerd will cause a problem in the last stage. There's a COPY --from in line 80 that uses /dockerd as source.

This lead to a next question, why are there two relatively similar Dockerfile.engine* files that we have to maintain?

At least we should use the same pathes in both Dockerfiles, so the COPY instruction must be updated.

Copy link
Member Author

Choose a reason for hiding this comment

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

🤦‍♂ I worked on one file, then copied to the other file, but forgot they had different paths.

ARG PLATFORM
ARG PRODUCT
ARG DEFAULT_PRODUCT_LICENSE
ARG TINI_COMMIT
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to pass in that argument somewhere with --build-arg TINI_COMMIT ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hm.. good one; let me check if it's passed somewhere

Copy link
Member Author

Choose a reason for hiding this comment

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

even wondering how this worked at all, because the binaries-commits file was removed in moby/moby@b529d1b

Copy link
Contributor

@seemethere seemethere left a comment

Choose a reason for hiding this comment

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

These files don’t matter anymore since docker engine activate was deprecated and should be removed.

@thaJeztah
Copy link
Member Author

Yeah, perhaps we should just go for #411, which removes this stuff. I started with this because I thought the problem was in build in general, but it was only in the image-based build.

@thaJeztah
Copy link
Member Author

superseded by #411

@thaJeztah thaJeztah deleted the remove_autogen_code branch January 21, 2020 14:57
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.

3 participants