Skip to content

Commit

Permalink
Install VS code on distrobox enter (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngarside authored Nov 12, 2023
1 parent 740aea5 commit caea10e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions distrobox/containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@ COPY git.conf /etc/gitconfig
# Set default environment variables
ENV DOTNET_CLI_TELEMETRY_OPTOUT true
ENV NUGET_PLUGIN_PATHS /opt/nuget/plugins/netcore/CredentialProvider.Microsoft/CredentialProvider.Microsoft.dll

# Run script on startup
COPY init.service /etc/systemd/system/init.service
COPY init.sh /opt/init.sh
RUN chmod +x /opt/init.sh && systemctl enable init
7 changes: 7 additions & 0 deletions distrobox/init.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This is free and unencumbered software released into the public domain.

[Install]
WantedBy=multi-user.target

[Service]
ExecStart=/opt/init.sh
5 changes: 5 additions & 0 deletions distrobox/init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
# This is free and unencumbered software released into the public domain.

# Install non-free packages
zypper --non-interactive install code

0 comments on commit caea10e

Please sign in to comment.