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

Issue 188 local docker dev for make #189

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

chrishalbert
Copy link

This pull request includes a Dockerfile, which is intended to be used only for development purposes. This also contains a make target that allows a user to run any of the make commands inside of a consistent operating system. This will allow other developers to contribute and build against a similar environment.

# The purpose of this file is to simply run make commands in deterministic
# environment for those interested in contributing. This is not to be used
# for production purposes.
FROM ubuntu:22.04
Copy link
Contributor

@jbilskiAkam jbilskiAkam Jul 4, 2024

Choose a reason for hiding this comment

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

Is there any reason why you used ubuntu? If not, could alpine golang be used?
Our proposed solution with alpine golang:

# The purpose of this file is to simply run make commands in deterministic
# environment for those interested in contributing. This is not to be used
# for production purposes.
FROM golang:alpine3.17

RUN apk add make git curl

COPY . /workdir

WORKDIR /workdir

# This is a workaround so that running `make lint` does not result in a
# "error obtaining VCS status: exit status 128" error
RUN go env -w GOFLAGS="-buildvcs=false"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants