Open gwpl opened 3 years ago
I also gave a shot trying to sketch Dockerfile
to make issue reproducible+just having Docker with it in case I would like to run it in Docker.
However I kind of had to stop at this point.
So, let me share what I got so far - maybe will be useful for someone to finish:
FROM archlinux:latest
RUN pacman -Syyu --noconfirm
RUN pacman -S --noconfirm git
RUN pacman -S --noconfirm vim screen
RUN pacman -S --noconfirm base-devel
RUN pacman -S --noconfirm go go-tools
RUN pacman -S --noconfirm wget aria2 mc cmatrix htop vim
RUN git clone https://aur.archlinux.org/pacaur.git
#RUN set -x ; mkdir /home/nobody && chown -v nobody:nobody /home/nobody && cd /home/nobody/ && sudo -u nobody git clone https://aur.archlinux.org/pacaur.git && cd pacaur/ && sudo -u nobody makepkg -si
# set up the packager user
RUN useradd --create-home packager
#COPY bashrc.sh /home/packager/.bashrc
#COPY packager-actions /etc/sudoers.d/
RUN pacman -S --noconfirm meson gtest gmock
#RUN pacman -S --noconfirm
USER packager
WORKDIR /home/packager/
RUN git clone https://aur.archlinux.org/pod2man.git
WORKDIR /home/packager/pod2man/
RUN makepkg -i --noconfirm
WORKDIR /home/packager/
RUN git clone https://aur.archlinux.org/auracle-git.git
WORKDIR /home/packager/auracle-git/
RUN makepkg -i --noconfirm
WORKDIR /home/packager/
RUN git clone https://aur.archlinux.org/pacaur.git
WORKDIR /home/packager/pacaur/
RUN makepkg -i --noconfirm
WORKDIR /home/packager/
RUN pacaur -S --noconfirm gotty
USER root
EXPOSE 8080
EXPOSE 8123
Try my fork at https://github.com/sorenisanerd/gotty
it compiles from source code and runs just fine on Ubuntu ... say 20.04
git clone git@github.com:yudai/gotty.git
cd gotty
make
./gotty -w vi ~/supercool
this assumes you have go installed
go version
go version go1.16 linux/amd64
uname -a
Linux hofn 5.8.0-32-generic #34~20.04.1-Ubuntu SMP Wed Dec 2 21:07:47 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
As you see in provided Dockerfile
I install go in line RUN pacman -S --noconfirm go go-tools
.
Just put above Dockerfile
in some directory and try with docker :
$ docker build .
I am concerned that there is sth wrong with packaging: https://aur.archlinux.org/packages/gotty or just you made your build to much ubuntu specific.
Does not compile.
Package: https://aur.archlinux.org/packages/gotty
Build file: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=gotty
Output: