Created
January 13, 2021 18:50
-
-
Save julien-h2/3217e99201a2d354932f7be86da8dd21 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 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