Skip to content

Instantly share code, notes, and snippets.

@BruceWind
Last active July 14, 2021 14:55
Show Gist options
  • Save BruceWind/32920cf74ba5b7172b31b06fec38aabb to your computer and use it in GitHub Desktop.
Save BruceWind/32920cf74ba5b7172b31b06fec38aabb to your computer and use it in GitHub Desktop.
Run Asciio on MacOS

What is Asciio

App::Asciio - Plain ASCII diagram.

The app is free for you drawing diagram to discribe your logics of your codes or classes. But it is can't work on MacOS, so I made this docker image to make it working on MacOS. Hope you enjoying it.

installing xquartz on MAC:

brew install xquartz

Configing XQuartz

XQuartz is the basis for supporting x11 to run Asciio with GUI.

  1. open XQuartz,
  2. open menu "application" -> "terminal"
  3. input command : xhost +

Pulling docker image

docker pull brucexx1/asciio_docker_test

The latest command you should run:

docker container run  -it -e DISPLAY=host.docker.internal:0 brucexx1/asciio_docker_test
@mavam
Copy link

mavam commented Jul 13, 2021

Despite running xhost +, I get an error when I run the Docker command:

Gtk-WARNING **: cannot open display: host.docker.internal:0 at /usr/lib/x86_64-linux-gnu/perl5/5.22/Gtk2.pm line 126

Any ideas?

@BruceWind
Copy link
Author

BruceWind commented Jul 14, 2021

Sorry about that.

I have no idea. last month I encoutered the same error on new mac os.

I created the docker image in last year. It worked very well in last year.

If you want to fix, you can clone that repo to modify DockerFile.

@mavam
Copy link

mavam commented Jul 14, 2021

Might be that this is brittle and only works with specific macOS versions. I'm currently on Big Sur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment