-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: create linux package during CRT build (#351)
This PR creates .deb and .rpm Linux packages of the nomad-driver-podman task driver. Given limitations of our packaging system the driver gets installed in /usr/bin/ but then gets linked to /opt/nomad/plugins/ during the install steps (and likewise removed during uninstall). This way the plugin Just Works with the default configuration of Nomad. --------- Co-authored-by: Tim Gross <[email protected]>
- Loading branch information
1 parent
2ca63a3
commit 2e000db
Showing
4 changed files
with
70 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
mkdir -p /opt/nomad/plugins | ||
ln -s /usr/bin/nomad-driver-podman /opt/nomad/plugins/nomad-driver-podman |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
rm -f /opt/nomad/plugins/nomad-driver-podman |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters