Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SD Day
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hannes Feldt
SD Day
Commits
4d266d21
Commit
4d266d21
authored
8 months ago
by
Hannes Feldt
Browse files
Options
Downloads
Patches
Plain Diff
add basics
parent
e2e8e07d
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
dev-env.hcl
+8
-0
8 additions, 0 deletions
dev-env.hcl
setup.sh
+30
-0
30 additions, 0 deletions
setup.sh
simple.nomad
+12
-0
12 additions, 0 deletions
simple.nomad
with
50 additions
and
0 deletions
dev-env.hcl
0 → 100644
+
8
−
0
View file @
4d266d21
resource
"network"
"cloud"
{
subnet
=
"10.10.0.0/16"
}
resource
"nomad_cluster"
"dev"
{
network
{
id
=
resource
.
network
.
cloud
.
meta
.
id
}
}
This diff is collapsed.
Click to expand it.
setup.sh
0 → 100755
+
30
−
0
View file @
4d266d21
#!/bin/bash
#
# Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy)
# SPDX-License-Identifier: Apache-2.0
#
# Url to the jumppad download location
jumppad_download
=
"https://github.com/jumppad-labs/jumppad/releases/download/0.15.0/jumppad_0.15.0_linux_x86_64.tar.gz"
levant_download
=
"https://releases.hashicorp.com/levant/0.3.3/levant_0.3.3_linux_amd64.zip"
mkdir
-p
./.bin
bin_dir
=
$(
realpath
./.bin
)
export
PATH
=
"
$PATH
:
$bin_dir
"
echo
'Check if jumppad is installed'
if
!
[
-x
"
$(
command
-v
jumppad
)
"
]
;
then
echo
'jumppad is not installed, installing'
mkdir
-p
./.bin
wget
-qO-
"
${
jumppad_download
}
"
|
tar
xvfz -
-C
"
$bin_dir
"
chmod
+x ./.bin/jumppad
fi
echo
'Check if levant is installed'
if
!
[
-x
"
$(
command
-v
levant
)
"
]
;
then
echo
'levant is not installed, installing'
mkdir
-p
./.bin
wget
-qO-
"
${
levant_download
}
"
| zcat
>>
./.bin/levant
chmod
+x ./.bin/levant
fi
This diff is collapsed.
Click to expand it.
simple.nomad
0 → 100644
+
12
−
0
View file @
4d266d21
job
"example"
{
group
"test"
{
task
"alpine"
{
driver
=
"docker"
config
{
image
=
"alpine:latest"
command
=
"sh"
args
=
[
"-c"
,
"while true; do sleep 300; done "
]
}
}
}
}
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