Skip to content
Snippets Groups Projects
Commit 365c0c11 authored by jkerdreu's avatar jkerdreu
Browse files

We now have 2 docker images. One w/ full SVN version, one w/ PyPi packages

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@3216 b32b6428-25c9-4566-ad07-03861ab6144f
parent 730ed55e
Branches
No related tags found
No related merge requests found
FROM python:3-slim
RUN apt update
#RUN apt install -y python3 python3-dev python3-pip subversion libsodium-dev git g++ tmux file
RUN apt install -y subversion libsodium-dev git g++ tmux file fish procps iproute2 curl rlwrap telnet micro sudo
RUN useradd -ms /usr/bin/fish xaal
RUN echo "xaal ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/xaal
USER xaal
WORKDIR /home/xaal
SHELL ["/usr/bin/fish", "-c"]
COPY ./files/install.sh ./install.sh
RUN ./install.sh && rm ./install.sh
COPY ./files/tmux.conf ./.tmux.conf
#run chsh root -s /usr/bin/fish
CMD ["tmux"]
EXPOSE 8080/tcp
EXPOSE 8081/tcp
EXPOSE 9090/tcp
#!/usr/bin/bash
python3 -m venv ~/xaal_env
source ~/xaal_env/bin/activate
# uv is faster than pip
pip install pip --upgrade pip
pip install uv
uv pip install xaal.tools xaal.dummy xaal.dashboard xaal.fakeinput xaal.owm
mkdir ~/.xaal/
echo xAAL|xaal-keygen|grep "key=" > ~/.xaal/xaal.ini
echo "source ~/xaal_env/bin/activate.fish" >> ~/.config/fish/config.fish
# General
set -g default-terminal "tmux-256color"
set -s escape-time 10
set -g set-titles on
# windows numbers start at 1
set -g base-index 1
set -g renumber-windows on
#setw -g automatic-rename on
# status-bar background: colour235
# dimmed background: colour237
# highlight stuff : colour39
# general text is : colour253 (except hostname)
# command => cb+:
set -g message-command-style fg=colour39,bg=colour235
set -g message-style bg=colour39,fg=colour235,bold
# mode => cb+tab
setw -g mode-style bg=colour39,fg=colour235,bold
set -g status-interval 10
set -g status-style bg=colour235
set -g window-status-bell-style fg=colour167
set-option -g status-left "\
#[fg=colour7, bg=colour241]#{?client_prefix,#[bg=colour167],} ❐ #S \
#[fg=colour235,bg=colour237] "
set-option -g status-right "\
#[fg=colour235, bg=colour39] #(cat /proc/loadavg|cut -d' ' -f 1) <\
#[fg=colour246, bg=colour235] #(whoami)\
#[fg=colour253, bg=colour235] < #(hostname) "
set-window-option -g window-status-current-format "\
#[fg=colour235, bg=colour39]>\
#[fg=colour235, bg=colour39 bold] #I #W "
set-window-option -g window-status-format "\
#[fg=colour235,bg=colour237,noitalics]>\
#[fg=colour253,bg=colour237] #{s/-//:window_flags}#I #W "
setw -g xterm-keys on
# activity => disable reverse color, only display info in window_flags
# activity-style doesn´t work, but if omitted I get the reverse style
setw -g monitor-activity on
set -g window-status-activity-style fg=colour39
# bell => disable bell, only display window_flags
set -g bell-action none
set -g visual-bell off
set -g visual-silence off
set -g pane-border-status top
set -g pane-border-style fg=colour67
set -g pane-active-border-style fg=colour39
#-------
# Mouse
#-------
bind-key m set-option -g mouse \; display 'Switching mouse'
#-----------------
# pane navigation
#-----------------
bind-key i split-window -h
bind-key o split-window -v
bind -r k kill-pane
bind -r C-b select-pane -t :.+ # select next pane
bind-key = set-window-option synchronize-panes \; display 'Switching synchronize'
#-------------------
# window navigation
#-------------------
bind -r C-p previous-window # select previous window
bind -r C-n next-window # select next window
#bind Tab choose-window # move to last active window
bind -r r source ~/.tmux.conf \; display 'Loaded config file'
bind Tab choose-window
#!/bin/sh
VER=latest
NAME=xaal-debian-test
docker buildx build -t ${NAME}:${VER} .
docker run -it --rm -p 9090:9090 -p 8080:8080 -p 8081:8081 ${NAME}:${VER}
#!/bin/sh
VER=latest
NAME=xaal-debian-test
docker buildx build -t ${NAME}:${VER} .
docker run -it --rm -p 9090:9090 -p 8080:8080 -p 8081:8081 ${NAME}:${VER}
docker rmi ${NAME}:${VER}
docker builder prune
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment