-
-
Save mariogarcia-ar/8490b08b7e5f170982decb356139fed5 to your computer and use it in GitHub Desktop.
Run Ganache GUI in a docker container
This file contains hidden or 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
docker build . --tag ganache-gui |
This file contains hidden or 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
docker rm ganache-gui | |
docker run -d -p "7545:7545" --name ganache-gui ganache-gui |
This file contains hidden or 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
FROM debian:stable-slim | |
RUN apt-get update | |
RUN apt-get install -y wget libgtk-3-dev libgtkextra-dev libgconf2-dev libnss3 libasound2 libxtst-dev libxss1 libx11-6 libx11-xcb-dev | |
# RUN wget https://github.com/trufflesuite/ganache/releases/download/v2.5.4/ganache-2.5.4-linux-x86_64.AppImage | |
RUN wget https://github.com/trufflesuite/ganache-ui/releases/download/v2.5.4/ganache-2.5.4-linux-x86_64.AppImage | |
RUN chmod +x ganache-2.5.4-linux-x86_64.AppImage | |
RUN ./ganache-2.5.4-linux-x86_64.AppImage --appimage-extract | |
RUN rm ganache-2.5.4-linux-x86_64.AppImage | |
ENV DISPLAY=host.docker.internal:0 | |
EXPOSE 7545 | |
ENTRYPOINT ["./squashfs-root/AppRun"] | |
# build: | |
# docker build . --tag ganache-gui | |
# run: | |
# docker rm ganache-gui | |
# docker run -d -p "7545:7545" --name ganache-gui ganache-gui |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/trufflesuite/ganache-ui/releases/download/v2.5.4/ganache-2.5.4-linux-x86_64.AppImage