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

Remove go mod init from dockerize build in base-server.Dockerfile #2393

Conversation

marcin-maciej-seweryn
Copy link
Contributor

Dockerize moved from using Glock to Go modules and introduced go.mod and go.sum files into the repository.
Therefore, the Go module initialization command has to be removed from the base-server Dockerfile as it breaks the build.

See: jwilder/dockerize@6f92b85

What changed?
The go mod init command was removed from the build of the dockerize tool in the base-server image.

Why?
A clean build of the base-server image fails.

How did you test it?
I've run the build and checked the server locally.

Potential risks
The build of Docker images based on the base-server image will fail: temporal-server and temporal-tctl.

Is hotfix candidate?
No

Dockerize moved from using Glock to Go modules and introduced
 go.mod and go.sum files into the repository.
Therefore, the Go module initialization command has to be removed
 from the `base-server` Dockerfile as it breaks the build.

See: jwilder/dockerize@6f92b85
@marcin-maciej-seweryn marcin-maciej-seweryn requested a review from a team January 20, 2022 09:50
@CLAassistant
Copy link

CLAassistant commented Jan 20, 2022

CLA assistant check
All committers have signed the CLA.

@alexshtin
Copy link
Member

Wow, dockerize is under development again! base-server needs to be rebuild and published under next version, and main Dockerfile needs to be updated to use it. I will do it in separate PR.

@yiminc yiminc merged commit 7e9a789 into temporalio:master Jan 21, 2022
@@ -8,7 +8,6 @@ RUN apk add --update --no-cache \
RUN mkdir -p /xsrc && \
git clone https://github.com/jwilder/dockerize.git && \
cd dockerize && \
go mod init github.com/jwilder/dockerize && \
go mod tidy && \
Copy link
Member

Choose a reason for hiding this comment

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

This is also not needed.

@marcin-maciej-seweryn marcin-maciej-seweryn deleted the fix-base-server-dockerize-build branch January 21, 2022 12:10
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