Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
Jumppad Docker Files
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
LOFAR2.0
Jumppad Docker Files
Commits
3343ee20
Commit
3343ee20
authored
7 months ago
by
Hannes Feldt
Browse files
Options
Downloads
Patches
Plain Diff
Add consul to nomad container
parent
8cb3fded
No related branches found
No related tags found
2 merge requests
!2
Diverge and convert to gitlab
,
!1
Add consul to nomad container
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
nomad/Dockerfile
+7
-0
7 additions, 0 deletions
nomad/Dockerfile
nomad/files/nomad.sh
+3
-0
3 additions, 0 deletions
nomad/files/nomad.sh
with
10 additions
and
0 deletions
nomad/Dockerfile
+
7
−
0
View file @
3343ee20
FROM
ghcr.io/jumppad-labs/dind:v1.1.2
ARG
NOMAD_VERSION
ARG
CONSUL_VERSION
ARG
TARGETARCH
ENV
CNI_PLUGINS=1.5.1
...
...
@@ -16,6 +17,12 @@ RUN curl -L https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_
chmod
+x /usr/bin/nomad
&&
\
rm
/tmp/nomad.zip
RUN
curl
-L
https://releases.hashicorp.com/consul/
${
CONSUL_VERSION
}
/consul_
${
CONSUL_VERSION
}
_linux_
${
TARGETARCH
}
.zip
-o
/tmp/consul.zip
&&
\
cd
/tmp
&&
\
unzip consul.zip consul
-d
/usr/bin
&&
\
chmod
+x /usr/bin/consul
&&
\
rm
/tmp/consul.zip
# Install the CNI Plugins
RUN
curl
-L
https://github.com/containernetworking/plugins/releases/download/v
${
CNI_PLUGINS
}
/cni-plugins-linux-
${
TARGETARCH
}
-v
${
CNI_PLUGINS
}
.tgz
-o
/tmp/cni.tgz
&&
\
mkdir
-p
/opt/cni/bin
&&
\
...
...
This diff is collapsed.
Click to expand it.
nomad/files/nomad.sh
+
3
−
0
View file @
3343ee20
...
...
@@ -13,6 +13,9 @@ fi
# Start the docker daemon
/usr/local/bin/dockerd.sh &
# Start the consul agent
/usr/bin/consul agent
-config
/etc/consul.d
-log-level
=
DEBUG &
# Start the nomad agent
/usr/bin/nomad agent
-config
/etc/nomad.d
-log-level
=
DEBUG &
...
...
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