Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GraphDeployer
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
backend
scripts
GraphDeployer
Commits
d00de188
Commit
d00de188
authored
10 months ago
by
L. Ellenbeck
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Fixed dev container
parent
886518d0
No related branches found
No related tags found
1 merge request
!32
Fix: Fixed dev container
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.devcontainer/Dockerfile
+21
-2
21 additions, 2 deletions
.devcontainer/Dockerfile
.devcontainer/devcontainer.json
+1
-0
1 addition, 0 deletions
.devcontainer/devcontainer.json
with
22 additions
and
2 deletions
.devcontainer/Dockerfile
+
21
−
2
View file @
d00de188
# Development container for dotnet
# Development container for dotnet
FROM
mcr.microsoft.com/devcontainers/dotnet:8.0
as
develop
FROM
mcr.microsoft.com/devcontainers/dotnet:8.0
as
develop
USER
vscode
ARG
USERNAME=vscode
ARG
USER_UID=1000
ARG
USER_GID=$USER_UID
# Remove any existing user with the same UID (if it's not the specified user)
RUN if
id
-u
$USER_UID
>
/dev/null 2>&1
;
then
\
existing_user
=
$(
getent passwd
$USER_UID
|
cut
-d
:
-f1
)
;
\
if
[
"
$existing_user
"
!=
"
$USERNAME
"
]
;
then
\
userdel
-f
$existing_user
;
\
fi
;
\
fi
# Change the user's GID and UID
RUN
groupmod
-g
$USER_GID
$USERNAME
\
&&
usermod
-u
$USER_UID
-g
$USER_GID
$USERNAME
# Change user folder owner and group
RUN
chown
-R
$USER_GID
:
$USER_GID
/home/
$USERNAME
# [Optional] Set the default user. Omit if you want to keep the default as root.
USER
$USERNAME
# Add nuget sources for private packages (here: api-client)
# Add nuget sources for private packages (here: api-client)
RUN
dotnet nuget add
source
"https://git.rwth-aachen.de/api/v4/projects/88930/packages/nuget/index.json"
-n
"api-client"
RUN
dotnet nuget add
source
"https://git.rwth-aachen.de/api/v4/projects/88930/packages/nuget/index.json"
-n
"api-client"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.devcontainer/devcontainer.json
+
1
−
0
View file @
d00de188
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
"updateRemoteUserUID"
:
false
,
"updateRemoteUserUID"
:
false
,
"remoteUser"
:
"vscode"
,
"remoteUser"
:
"vscode"
,
"containerUser"
:
"vscode"
,
"containerUser"
:
"vscode"
,
"postAttachCommand"
:
"bash"
,
"customizations"
:
{
"customizations"
:
{
"vscode"
:
{
"vscode"
:
{
"settings"
:
{
"settings"
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment