-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use modern ubuntu for standalone containers (#154)
Abandon attempts to build really static binaries both for amd64 and arm64, this was taking way too much time. Just use a more modern base container that has a correct libc version.
- Loading branch information
Showing
4 changed files
with
38 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ PREFIX?= | |
TAG=$(shell git rev-list --tags --max-count=1) | ||
VERSION=$(shell git describe --always --tags $(TAG)) | ||
DEB_VERSION=$(shell echo $(VERSION) | sed 's/^v//' | sed 's/-/./g') | ||
FULLVERSION=$(shell git describe --always --tags) | ||
RELEASE=./release | ||
|
||
all: build | ||
|
@@ -16,13 +17,14 @@ all: build | |
ifdef V | ||
$(info VERSION is $(VERSION)) | ||
$(info DEB_VERSION is $(DEB_VERSION)) | ||
$(info FULLVERSION is $(FULLVERSION)) | ||
endif | ||
|
||
######################################### | ||
# Build | ||
######################################### | ||
|
||
LDFLAGS := -ldflags='-w -X "main.standaloneVersion=$(VERSION)" -extldflags "-static"' \ | ||
LDFLAGS := -ldflags='-w -X "main.standaloneVersion=$(FULLVERSION)" -extldflags "-static"' \ | ||
-tags standalone | ||
|
||
download: | ||
|
@@ -65,14 +67,17 @@ changelog: | |
$Q echo " * See https://github.com/hakwerk/labca/releases" >> debian/changelog | ||
$Q echo >> debian/changelog | ||
$Q echo " -- hakwerk <[email protected]> $(shell date -uR)" >> debian/changelog | ||
$Q sed -i -e "s/Version: .*/Version: $(DEB_VERSION)/" debian/control | ||
|
||
debian: changelog | ||
$Q sed -i -e "s/Architecture: .*/Architecture: amd64/" debian/control; \ | ||
$Q mkdir -p $(RELEASE); \ | ||
OUTPUT=../labca-gui*.deb; \ | ||
rm -f $$OUTPUT; \ | ||
dpkg-buildpackage -b -rfakeroot -us -uc && cp $$OUTPUT $(RELEASE)/ | ||
|
||
debian-arm64: changelog | ||
$Q sed -i -e "s/Architecture: .*/Architecture: arm64/" debian/control; \ | ||
$Q mkdir -p $(RELEASE); \ | ||
OUTPUT=../labca-gui*.deb; \ | ||
rm -f $$OUTPUT; \ | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ubuntu:focal | ||
FROM ubuntu:24.04 | ||
|
||
ARG TARGETARCH | ||
|
||
|
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 |
---|---|---|
|
@@ -2,14 +2,10 @@ Source: labca-gui | |
Section: utils | ||
Priority: optional | ||
Maintainer: hakwerk <[email protected]> | ||
Build-Depends: debhelper (>= 10) | ||
Standards-Version: 4.1.2 | ||
Homepage: https://github.com/hakwerk/labca | ||
Vcs-Browser: https://github.com/hakwerk/labca.git | ||
Vcs-Git: https://github.com/hakwerk/labca.git | ||
|
||
Package: labca-gui | ||
Architecture: any | ||
Depends: ${misc:Depends} | ||
Description: Standalone ACME GUI | ||
Standalone web GUI for ACME servers. | ||
Version: 0 | ||
Description: Standalone web GUI for ACME servers |
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 |
---|---|---|
|
@@ -2,11 +2,12 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | |
Upstream-Name: labca-gui | ||
Source: https://github.com/hakwerk/labca | ||
|
||
Files: * | ||
Files: | ||
* | ||
Copyright: 2022-2025 hakwerk <[email protected]> | ||
License: MPL 2.0 | ||
License: MPL-2.0 and Commons-Clause-1.0 | ||
|
||
License: MPL 2.0 | ||
License: MPL-2.0 | ||
Copyright (c) 2022-2025 hakwerk | ||
. | ||
Licensed under the Mozilla Public License 2.0 (the "License"); | ||
|
@@ -20,3 +21,28 @@ License: MPL 2.0 | |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
||
License: Commons-Clause-1.0 | ||
"Commons Clause" License Condition v1.0 | ||
. | ||
The Software is provided to you by the Licensor under the License, as | ||
defined below, subject to the following condition. | ||
. | ||
Without limiting other conditions in the License, the grant of rights | ||
under the License will not include, and the License does not grant to | ||
you, the right to Sell the Software. | ||
. | ||
For purposes of the foregoing, "Sell" means practicing any or all of the | ||
rights granted to you under the License to provide to third parties, for | ||
a fee or other consideration (including without limitation fees for | ||
hosting or consulting/ support services related to the Software), a | ||
product or service whose value derives, entirely or substantially, from | ||
the functionality of the Software. Any license notice or attribution | ||
required by the License must also include this Commons Cause License | ||
Condition notice. | ||
. | ||
Software: LabCA | ||
. | ||
License: Mozilla Public License 2.0 | ||
. | ||
Licensor: https://github.com/hakwerk |