-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for more Ubuntu verisons
Adds 18.04, 20.04, and 24.04 (in addition to 22.04 which was already there). For tests, given that Ubuntu <= 20.04 have a "golang" package that is too old to run the tests, I added a way to override the package name used in the test. Another minor modification due to Bionic not supporting `execute_after_dh_fixperms`. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
- Loading branch information
Showing
10 changed files
with
176 additions
and
12 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
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,25 @@ | ||
package ubuntu | ||
|
||
import ( | ||
"github.com/Azure/dalec/frontend/deb/distro" | ||
) | ||
|
||
const ( | ||
BionicDefaultTargetKey = "bionic" | ||
BionicAptCachePrefix = "bionic" | ||
BionicWorkerContextName = "dalec-bionic-worker" | ||
|
||
bionicRef = "mcr.microsoft.com/mirror/docker/library/ubuntu:bionic" | ||
bionicVersionID = "ubuntu18.04" | ||
) | ||
|
||
var ( | ||
BionicConfig = &distro.Config{ | ||
ImageRef: bionicRef, | ||
AptCachePrefix: BionicAptCachePrefix, | ||
VersionID: bionicVersionID, | ||
ContextRef: BionicWorkerContextName, | ||
DefaultOutputImage: bionicRef, | ||
BuilderPackages: basePackages, | ||
} | ||
) |
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,25 @@ | ||
package ubuntu | ||
|
||
import ( | ||
"github.com/Azure/dalec/frontend/deb/distro" | ||
) | ||
|
||
const ( | ||
FocalDefaultTargetKey = "focal" | ||
FocalAptCachePrefix = "focal" | ||
FocalWorkerContextName = "dalec-focal-worker" | ||
|
||
focalRef = "mcr.microsoft.com/mirror/docker/library/ubuntu:focal" | ||
focalVersionID = "ubuntu20.04" | ||
) | ||
|
||
var ( | ||
FocalConfig = &distro.Config{ | ||
ImageRef: focalRef, | ||
AptCachePrefix: FocalAptCachePrefix, | ||
VersionID: focalVersionID, | ||
ContextRef: FocalWorkerContextName, | ||
DefaultOutputImage: focalRef, | ||
BuilderPackages: basePackages, | ||
} | ||
) |
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,25 @@ | ||
package ubuntu | ||
|
||
import ( | ||
"github.com/Azure/dalec/frontend/deb/distro" | ||
) | ||
|
||
const ( | ||
NobleDefaultTargetKey = "noble" | ||
NobleAptCachePrefix = "noble" | ||
NobleWorkerContextName = "dalec-noble-worker" | ||
|
||
nobleRef = "mcr.microsoft.com/mirror/docker/library/ubuntu:noble" | ||
nobleVersionID = "ubuntu24.04" | ||
) | ||
|
||
var ( | ||
NobleConfig = &distro.Config{ | ||
ImageRef: nobleRef, | ||
AptCachePrefix: NobleAptCachePrefix, | ||
VersionID: nobleVersionID, | ||
ContextRef: NobleWorkerContextName, | ||
DefaultOutputImage: nobleRef, | ||
BuilderPackages: basePackages, | ||
} | ||
) |
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
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