-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
11 changed files
with
324 additions
and
43 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
compose.override.yml | ||
|
||
### Node template | ||
# Logs | ||
logs | ||
|
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 @@ | ||
12 |
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,44 @@ | ||
FROM --platform=linux/arm/v7 debian:buster | ||
|
||
# Install the basics. | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update -y && \ | ||
apt-get install -y apt-utils && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y curl wget bash libatomic1 build-essential bash-completion git python3 libnss3 && \ | ||
rm -rf /var/lib/apt/lists && \ | ||
rm -rf /var/cache/apt | ||
|
||
# Install the Electron dependencies. | ||
RUN apt-get update -y && \ | ||
apt-get install -y xorg gconf2 gconf-service libnotify4 libappindicator1 libxtst6 \ | ||
libxss1 libasound2 libgl1-mesa-glx libgl1-mesa-dri && \ | ||
rm -rf /var/lib/apt/lists && \ | ||
rm -rf /var/cache/apt | ||
|
||
# Install the project dependencies. | ||
RUN apt-get update -y && \ | ||
apt-get install -y unzip && \ | ||
rm -rf /var/lib/apt/lists && \ | ||
rm -rf /var/cache/apt | ||
|
||
# Default environment. | ||
ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt | ||
|
||
# Setup user. | ||
RUN useradd -m builder | ||
USER builder | ||
|
||
# Install node. | ||
SHELL ["/bin/bash", "-lc"] | ||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash | ||
RUN nvm install 12 && \ | ||
nvm use 12 | ||
|
||
# Setup entrypoint. | ||
COPY docker / | ||
ENTRYPOINT [ "/entrypoint.sh" ] | ||
CMD ["bash", "-l"] | ||
|
||
# Project | ||
WORKDIR /project |
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,11 @@ | ||
services: | ||
build: | ||
image: bridgecmdr/build | ||
build: . | ||
privileged: true | ||
environment: | ||
- DISPLAY=host.docker.internal:0 | ||
volumes: | ||
- ".:/project" | ||
- "/tmp/.X11-unix:/tmp/.X11-unix" | ||
- "$HOME/.Xauthority:/home/builder/.Xauthority:rw" |
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,2 @@ | ||
* | ||
!.gitignore |
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,12 @@ | ||
#!/usr/bin/env bash | ||
set -Eeuo pipefail | ||
|
||
for entry in /entrypoint.d/*.sh; do | ||
if [ -f "$entry" ] && [ -x "$entry" ]; then | ||
echo "Calling '${entry}'..." | ||
"$entry" | ||
fi | ||
done | ||
unset entry | ||
|
||
"$@" |
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
Oops, something went wrong.