-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github mac workers doesn't support docker, try to build with qemu ins…
…tead, and fixed a few bugs
- Loading branch information
1 parent
b5ece76
commit 5495add
Showing
7 changed files
with
72 additions
and
88 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
.DS_Store | ||
.idea | ||
*~ | ||
ABOUT-NLS | ||
ChangeLog | ||
autom4te.cache | ||
autoscan.log | ||
autoscan-*.log | ||
aclocal.m4 | ||
compile | ||
src/config.h.in | ||
depcomp | ||
install-sh | ||
missing | ||
src/stamp-h1 | ||
**/*.o | ||
.deps | ||
m4/*.m4 | ||
Makefile | ||
Makefile.in | ||
config.guess | ||
config.rpath | ||
config.sub | ||
config.log | ||
config.status | ||
configure | ||
configure.scan | ||
po/Makevars.template | ||
po/POTFILES | ||
po/*.gmo | ||
po/*.mo | ||
po/*.pot | ||
po/remove-potcdate.sed | ||
src/macping | ||
src/mactelnet | ||
src/mactelnetd | ||
src/mndp | ||
src/.deps/ | ||
src/config.h | ||
doc/mactelnetd.1 | ||
Dockerfile |
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 |
---|---|---|
@@ -1,25 +1,30 @@ | ||
FROM alpine:3.19 AS builder | ||
FROM debian:bookworm AS builder | ||
|
||
# Install build dependencies | ||
RUN apk add --no-cache diffutils build-base automake autoconf git gettext gettext-dev linux-headers openssl-dev | ||
RUN apt-get update && apt-get -y install \ | ||
gettext autoconf automake libtool autopoint \ | ||
libssl-dev git libbsd-dev build-essential && \ | ||
apt-get clean && rm -rf /tmp/* /var/tmp/* | ||
|
||
# Copy everything to /src | ||
RUN mkdir /src | ||
WORKDIR /src | ||
ADD . /src/ | ||
|
||
# Build | ||
ENV CFLAGS="-D_GNU_SOURCE" | ||
RUN ./autogen.sh --prefix=/build | ||
RUN ./autogen.sh --prefix=/build --sysconfdir=/config | ||
RUN make all install | ||
|
||
## | ||
FROM alpine:3.19 | ||
FROM debian:bookworm-slim | ||
|
||
# Install runtime dependencies | ||
RUN apk add --no-cache gettext-libs openssl-dev | ||
RUN apt-get update && apt-get -y install gettext \ | ||
libbsd0 openssl man-db && apt-get clean && \ | ||
rm -rf /tmp/* /var/tmp/* | ||
|
||
# Copy build artifacts | ||
COPY --from=builder /build/ /usr/ | ||
COPY --from=builder /config /config | ||
|
||
CMD ["/usr/bin/mactelnet"] |
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