-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from stake-house/feature/config-page
Add Configuration and Install pages
- Loading branch information
Showing
18 changed files
with
1,620 additions
and
681 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,42 @@ | ||
# credit https://trigodev.com/blog/develop-electron-in-docker | ||
FROM node:16.15.0 | ||
|
||
|
||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install \ | ||
build-essential clang policykit-1 \ | ||
git libx11-xcb1 libxcb-dri3-0 libcups2-dev libxtst-dev libatk-bridge2.0-0 libdbus-1-dev libgtk-3-dev libxss1 libnotify-dev libasound2-dev libcap-dev libdrm2 libice6 libsm6 \ | ||
xorg openbox libatk-adaptor \ | ||
gperf bison python3-dbusmock \ | ||
libnss3-dev gcc-multilib g++-multilib curl sudo \ | ||
-yq --no-install-suggests --no-install-recommends \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* \ | ||
ca-certificates \ | ||
curl \ | ||
gnupg \ | ||
lsb-release | ||
|
||
RUN curl -fsSL https://get.docker.com | sh | ||
# RUN echo 'alias docker-compose="docker compose"' >> /home/node/.bashrc | ||
RUN apt-get install docker-compose | ||
|
||
|
||
WORKDIR /app | ||
COPY . . | ||
RUN chown -R node /app | ||
|
||
# install node modules and perform an electron rebuild | ||
USER node | ||
RUN npm install | ||
RUN npx electron-rebuild | ||
|
||
USER root | ||
RUN chown root /app/node_modules/electron/dist/chrome-sandbox | ||
RUN chmod 4755 /app/node_modules/electron/dist/chrome-sandbox | ||
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | ||
RUN usermod -aG sudo node | ||
RUN usermod -aG docker node | ||
|
||
|
||
USER node | ||
ENTRYPOINT [ "bash" ] | ||
# docker run --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY -v `pwd`/src:/app/src --rm -it electron-wrapper bash |
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,7 +1,7 @@ | ||
{ | ||
"name": "wagyuinstaller", | ||
"productName": "Wagyu Installer", | ||
"version": "0.5.0", | ||
"version": "0.5.3", | ||
"description": "Application aimed at lowering the technical bar to staking on Ethereum", | ||
"main": "./build/electron/index.js", | ||
"author": "Colfax Selby <[email protected]>", | ||
|
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
Oops, something went wrong.