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
6e217494
Commit
6e217494
authored
1 year ago
by
L. Ellenbeck
Browse files
Options
Downloads
Patches
Plain Diff
Fixed launch settings
parent
98c87ddc
Branches
Issue/2906-containerCron
No related tags found
1 merge request
!21
New: Containerization (coscine/issues#2906)
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.vscode/launch.json
+13
-4
13 additions, 4 deletions
.vscode/launch.json
.vscode/tasks.json
+15
-0
15 additions, 0 deletions
.vscode/tasks.json
src/GraphDeployer/Dockerfile
+1
-1
1 addition, 1 deletion
src/GraphDeployer/Dockerfile
src/GraphDeployer/Program.cs
+1
-1
1 addition, 1 deletion
src/GraphDeployer/Program.cs
with
30 additions
and
6 deletions
.vscode/launch.json
+
13
−
4
View file @
6e217494
...
...
@@ -3,12 +3,21 @@
//
Hover
to
view
descriptions
of
existing
attributes.
//
For
more
information
,
visit:
https://go.microsoft.com/fwlink/?linkid=
830387
"version"
:
"0.2.0"
,
"configurations"
:
[
"configurations"
:
[
{
"name"
:
"C#: GraphDeployer Debug"
,
"type"
:
"
dotnet
"
,
"type"
:
"
coreclr
"
,
"request"
:
"launch"
,
"projectPath"
:
"${workspaceFolder}/src/GraphDeployer/GraphDeployer.csproj"
,
"preLaunchTask"
:
"dotnet: build"
,
"program"
:
"${workspaceFolder}/src/GraphDeployer/bin/Debug/net8.0/Coscine.GraphDeployer.dll"
,
"args"
:
[],
"cwd"
:
"${workspaceFolder}/src/GraphDeployer"
,
"stopAtEntry"
:
false
,
"console"
:
"internalConsole"
,
"env"
:
{
"DOTNET_ENVIRONMENT"
:
"Development"
}
],
}
]
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.vscode/tasks.json
0 → 100644
+
15
−
0
View file @
6e217494
{
"version"
:
"2.0.0"
,
"tasks"
:
[
{
"type"
:
"dotnet"
,
"task"
:
"build"
,
"group"
:
{
"kind"
:
"build"
,
"isDefault"
:
true
},
"problemMatcher"
:
[],
"label"
:
"dotnet: build"
}
]
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/GraphDeployer/Dockerfile
+
1
−
1
View file @
6e217494
...
...
@@ -31,7 +31,7 @@ RUN chmod 0644 /etc/cron.d/graph-deployer-cron
RUN
crontab /etc/cron.d/graph-deployer-cron
# Set the build-time argument and default environment variable
ENV
ASPNETCORE
_ENVIRONMENT=Development
ENV
DOTNET
_ENVIRONMENT=Development
# Create the log file
RUN
touch
/var/log/cron.log
...
...
This diff is collapsed.
Click to expand it.
src/GraphDeployer/Program.cs
+
1
−
1
View file @
6e217494
...
...
@@ -19,7 +19,7 @@ public class Program
public
static
int
Main
(
string
[]
args
)
{
_environmentName
=
Environment
.
GetEnvironmentVariable
(
"
ASPNETCORE
_ENVIRONMENT"
);
_environmentName
=
Environment
.
GetEnvironmentVariable
(
"
DOTNET
_ENVIRONMENT"
);
Console
.
WriteLine
(
$"Running in environment:
{
_environmentName
??
"environment is null"
}
"
);
...
...
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