-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c0f6f6
commit b6d44e0
Showing
8 changed files
with
14,658 additions
and
47 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 |
---|---|---|
|
@@ -9,8 +9,6 @@ bin | |
data/* | ||
!data/.gitkeep | ||
firmware.bin | ||
tx16s-internal-elrs.json | ||
*.paw | ||
static | ||
package-lock.json | ||
ui/.env |
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,17 +1,33 @@ | ||
FROM golang:1.20-bullseye | ||
FROM golang:1.20-bullseye as builder | ||
|
||
ENV VERSION_ID Debian_11 | ||
RUN mkdir /build | ||
ADD . /build/ | ||
WORKDIR /build | ||
|
||
RUN make build | ||
|
||
FROM node:slim as ui-builder | ||
|
||
RUN mkdir /build | ||
ADD . /build/ | ||
WORKDIR /build | ||
|
||
RUN npm ci --prefix ui/ | ||
RUN npm run build --prefix ui/ | ||
|
||
FROM debian:bookworm-slim | ||
RUN apt-get update \ | ||
&& apt-get -y install curl gnupg2 git \ | ||
&& echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/${VERSION_ID}/ /" | tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list \ | ||
&& curl -L "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/${VERSION_ID}/Release.key" | apt-key add - \ | ||
&& apt-get update && apt-get -y upgrade && apt-get -y install podman dumb-init \ | ||
&& apt-get -y install curl gnupg2 git podman dumb-init \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN useradd --create-home --shell /bin/bash rootless | ||
RUN mkdir -p /home/rootless/src | ||
WORKDIR /home/rootless/src | ||
|
||
USER rootless | ||
COPY --from=builder /build/bin/ebuild ./ | ||
COPY --from=builder /build/targets.json ./ | ||
COPY --from=ui-builder /build/static ./static | ||
|
||
ENTRYPOINT ["/usr/bin/dumb-init", "--"] | ||
CMD ["bash"] |
This file was deleted.
Oops, something went wrong.
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,6 +1,3 @@ | ||
# taboo | ||
package-lock.json | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
Oops, something went wrong.