From 6ec12a8a8f09f9b22d3cde893f959991fe932972 Mon Sep 17 00:00:00 2001 From: ale Date: Fri, 29 May 2020 17:37:29 +0200 Subject: [PATCH] initial commit --- README.md | 19 +++++++++++++++++++ docker-compose.yml | 11 +++++++++++ wahay/Dockerfile | 8 ++++++++ 3 files changed, 38 insertions(+) create mode 100644 README.md create mode 100644 docker-compose.yml create mode 100644 wahay/Dockerfile diff --git a/README.md b/README.md new file mode 100644 index 0000000..48bb0e1 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# wahay docker + +## RUN + +Needs `docker` and `docker-compose` + +### Enable local perm X11 to docker +``` +xhost +"local:docker@" +``` + +### Execute with compose +``` +docker-compose up -d +``` + +### License + +MIT \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..cb63a43 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: "2" + +services: + wahay: + build: ./wahay + hostname: wahay + container_name: wahay + environment: + - DISPLAY + volumes: + - /tmp/.X11-unix:/tmp/.X11-unix:ro diff --git a/wahay/Dockerfile b/wahay/Dockerfile new file mode 100644 index 0000000..093cae8 --- /dev/null +++ b/wahay/Dockerfile @@ -0,0 +1,8 @@ +FROM golang +RUN apt update && apt upgrade -y && apt install -y curl lsb-release dirmngr +RUN curl -s https://dl.autonomia.digital/debian/keys.asc | apt-key add - +RUN echo deb https://dl.autonomia.digital/debian $(lsb_release -c | cut -f 2) main | tee /etc/apt/sources.list.d/wahay.list +RUN echo deb-src https://dl.autonomia.digital/debian $(lsb_release -c | cut -f 2) main | tee -a /etc/apt/sources.list.d/wahay.list +RUN apt update && apt install -y wahay +ENTRYPOINT ["wahay"] +