-
Notifications
You must be signed in to change notification settings - Fork 29
Add devcontainer configuration #72
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
Conversation
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| build-essential \ | ||
| git \ | ||
| curl \ | ||
| wget \ | ||
| libxml2-dev \ | ||
| libxslt1-dev \ | ||
| zlib1g-dev \ | ||
| sqlite3 \ | ||
| libsqlite3-dev \ | ||
| libssl-dev \ | ||
| pkg-config \ | ||
| make \ | ||
| zsh \ | ||
| && apt-get clean \ | ||
| && rm -rf /var/lib/apt/lists/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| RUN groupadd --gid $USER_GID $USERNAME \ | ||
| && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \ | ||
| # Add the new user to the sudo group to allow them to run commands with sudo | ||
| && apt-get update \ | ||
| && apt-get install -y sudo \ | ||
| && echo $USERNAME ALL=\(ALL\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ | ||
| && chmod 0440 /etc/sudoers.d/$USERNAME \ | ||
| && rm -rf /var/lib/apt/lists/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Let's update the readme with some basic steps to use the devcontainer. I did something similar for serilog |
jhgilbert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with minor comments, thank you!
Co-authored-by: Jen Gilbert <j.h.gilbert@gmail.com>
Co-authored-by: Jen Gilbert <j.h.gilbert@gmail.com>
Datadog Summary❌ Code Quality ✅ Code Security ✅ Dependencies Next StepsFix these code quality issues introduced by this PR: ⚪ Notice: docker-best-practices/apt-pin-version
⚪ Notice: docker-best-practices/apt-pin-version
Was this helpful? Give us feedback! |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| build-essential \ | ||
| git \ | ||
| curl \ | ||
| wget \ | ||
| libxml2-dev \ | ||
| libxslt1-dev \ | ||
| zlib1g-dev \ | ||
| sqlite3 \ | ||
| libsqlite3-dev \ | ||
| libssl-dev \ | ||
| pkg-config \ | ||
| make \ | ||
| zsh \ | ||
| && apt-get clean \ | ||
| && rm -rf /var/lib/apt/lists/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| RUN groupadd --gid $USER_GID $USERNAME \ | ||
| && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \ | ||
| # Add the new user to the sudo group to allow them to run commands with sudo | ||
| && apt-get update \ | ||
| && apt-get install -y sudo \ | ||
| && echo $USERNAME ALL=\(ALL\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ | ||
| && chmod 0440 /etc/sudoers.d/$USERNAME \ | ||
| && rm -rf /var/lib/apt/lists/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Container starts! When I click Running |
|
This PR is extended by #76 |

What does this PR do?
Adds a devcontainer configuration to create a reproducible dev environment.
Motivation
reproducible dev environment
Additional Notes
Try launching in vscode and running it to verify.