Skip to content

Commit 0ac23f5

Browse files
authored
[devcontainer] Add GPG to dockerfile template (#1111)
## Summary This change installs GPG (via the `gnupg2` package) in the dev container for the purposes of GPG commit-signing. Fixes #1110 ## How was it tested? - [Install GPG locally](https://code.visualstudio.com/remote/advancedcontainers/sharing-git-credentials#_sharing-gpg-keys) - [Set up GPG commit-signing](https://docs.github.com/en/authentication/managing-commit-signature-verification) (i.e. generate a key and tell Git about it) - devbox init - devbox generate devcontainer - cmd + shift + p and select "Rebuild and Reopen in Container" - [Make a signed commit](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits) - Enter the password for your GPG key - Assert that the commit is created successfully
1 parent dcce2b1 commit 0ac23f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/impl/tmpl/devcontainerDockerfile.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM debian:stable-slim
22

33
# Step 1: Installing dependencies
44
RUN apt-get update
5-
RUN apt-get -y install bash binutils git xz-utils wget sudo
5+
RUN apt-get -y install bash binutils git{{if .IsDevcontainer}} gnupg2{{- end}} xz-utils wget sudo
66

77
# Step 2: Setting up devbox user
88
ENV DEVBOX_USER=devbox

0 commit comments

Comments
 (0)