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 "RUN go get" from DockerFile in Go-Postgres container #4

Closed
wants to merge 1 commit into from

Conversation

dnastrain
Copy link
Owner

@dnastrain dnastrain commented Jan 26, 2022

Changes in reference to bug AzDO 23066

Result of spike-task: using go mod commands was straightforward to create go.mod and go.sum files that enable go run commands to correctly download and use dependencies + references.

Impact: we de-coupled the go-module(s) "dependency declaration" from the image itself, which is consistent with other containers (i.e. see python containers using environment.yml in DockerFile)

Estimate for fix: a local PR is ready, so mainly review time & confirming approach w/ Chuck

Copy link

@juzuluag juzuluag left a comment

Choose a reason for hiding this comment

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

LGTM. Just a question.

containers/go-postgres/.devcontainer/Dockerfile Outdated Show resolved Hide resolved
Copy link
Collaborator

@bderusha bderusha left a comment

Choose a reason for hiding this comment

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

🚀 🎸

Copy link

@juzuluag juzuluag left a comment

Choose a reason for hiding this comment

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

Great.!!

Add go.mod and go.sum files
make dockerfile 'RUN go get' optional
@dnastrain
Copy link
Owner Author

Closed this PR as this branch was merged into microsoft-main repo

@dnastrain dnastrain deleted the bderusha/go-mod branch March 7, 2022 15:42
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