fix some bugs
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Jeffrey Paul 2020-04-11 16:11:49 -07:00
parent 7bc4fbffc5
commit 3a0c174769
6 changed files with 49 additions and 14 deletions

View File

@ -1,4 +1,10 @@
.PHONY: build .PHONY: build
build: build:
sudo docker build . 2>&1 | tee -a build.log docker build . 2>&1 | tee -a build.log
export DOCKER_HOST := ssh://datavi.be
export UBUNTU_MIRROR := http://de.archive.ubuntu.com/ubuntu
buildremote:
docker build --build-arg UBUNTU_MIRROR=$(UBUNTU_MIRROR) . 2>&1 | tee -a build.log

View File

@ -40,19 +40,27 @@ ldap-utils
libasound2 libasound2
libatk1.0-0 libatk1.0-0
libboost-all-dev libboost-all-dev
libbz2-dev
libdb++-dev libdb++-dev
libffi-dev
libgconf-2-4 libgconf-2-4
libgtk-3-0 libgtk-3-0
libjpeg-dev libjpeg-dev
liblzma-dev
libncurses5-dev
libnss3 libnss3
libnss-mdns libnss-mdns
libpng-dev libpng-dev
libreadline-dev
libsqlite3-dev
libssl-dev libssl-dev
libtool libtool
libxcursor1 libxcursor1
libxml2 libxml2
libxml2-dev libxml2-dev
libxmlsec1-dev
libxslt1-dev libxslt1-dev
llvm
locales locales
lsof lsof
mailutils mailutils
@ -93,6 +101,7 @@ sudo
tcpdump tcpdump
telnet telnet
texlive-latex-base texlive-latex-base
tk-dev
tmux tmux
tree tree
ttf-wqy-microhei ttf-wqy-microhei
@ -103,6 +112,8 @@ vim-gtk
wamerican-insane wamerican-insane
wget wget
xterm xterm
xz-utils
zfsutils-linux zfsutils-linux
zip zip
zlib1g-dev
zsh zsh

View File

@ -19,6 +19,8 @@ SSH_HOST_KEY_FILES="
ssh_host_rsa_key.pub ssh_host_rsa_key.pub
" "
locale-gen en_US.UTF-8
for FN in $SSH_HOST_KEY_FILES ; do for FN in $SSH_HOST_KEY_FILES ; do
ln -s /hostroot/etc/ssh/$FN /etc/ssh/$FN ln -s /hostroot/etc/ssh/$FN /etc/ssh/$FN
done done
@ -34,10 +36,14 @@ pip3 install black
# install prettier # install prettier
# install vim-go # install vim-go
mkdir -p /home/user/.ssh
cp /root/.ssh/authorized_keys /home/user/.ssh/authorized_keys
echo chown -Rv $UID_TO_ADD:$GID_TO_ADD /home/user echo chown -Rv $UID_TO_ADD:$GID_TO_ADD /home/user
chown -Rv $UID_TO_ADD:$GID_TO_ADD /home/user chown -Rv $UID_TO_ADD:$GID_TO_ADD /home/user
chsh --shell $(which zsh) $USERNAME_TO_ADD chsh --shell $(which zsh) $USERNAME_TO_ADD
echo "$USERNAME_TO_ADD ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/user
sudo \ sudo \
--set-home \ --set-home \
--non-interactive \ --non-interactive \

View File

@ -2,12 +2,13 @@
set -x set -x
env
TD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)" TD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)"
U="$USERNAME_TO_ADD" U="$USERNAME_TO_ADD"
export LC_ALL=en_US
export LANG=en_US.UTF-8
# original home # original home
OH="/hosthome" OH="/hosthome"
# link ~/.home to original home # link ~/.home to original home
@ -25,15 +26,26 @@ bash /tmp/installomz.sh --unattended --keep-zshrc
# link in ssh key from original home # link in ssh key from original home
mkdir -p ~/.ssh mkdir -p ~/.ssh
ln -s ~/.home/.ssh/id_rsa ~/.ssh/id_rsa ln -s ~/.home/Documents/sync/secrets/ssh/pixel16/id_rsa ~/.ssh/id_rsa
ln -s ~/.home/.ssh/id_rsa.pub ~/.ssh/id_rsa.pub ln -s ~/.home/Documents/sync/secrets/ssh/pixel16/id_rsa.pub ~/.ssh/id_rsa.pub
# install pyenv # install pyenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv git clone -n https://github.com/pyenv/pyenv.git ~/.pyenv
# FIXME install a python version pushd ~/.pyenv
git checkout 3e0f5e798ca16cd9389c4c8805038ac2c0d45cae
popd
git clone https://github.com/nvm-sh/nvm.git ~/.nvm export PYENV_ROOT="$HOME/.pyenv"
# FIXME install an nvm version export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv install 3.8.2
# move this to runtime FIXME git clone -n https://github.com/nvm-sh/nvm.git ~/.nvm
#DEVDIR="$( cd ~/.home/dev >/dev/null 2>&1 && pwd -P)" pushd ~/.nvm
git checkout 73438e339e242fce0cba443e5c4322ac996e9197
popd
export NVM_DIR="~/.nvm"
source "$NVM_DIR/nvm.sh"
nvm install node

View File

@ -7,7 +7,7 @@ silent !mkdir -p ~/.vim/autoload > /dev/null 2>&1
silent !mkdir -p ~/.vim/plugged > /dev/null 2>&1 silent !mkdir -p ~/.vim/plugged > /dev/null 2>&1
if empty(glob('~/.vim/autoload/plug.vim')) if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.paths/sneak-sync/dotfiles/vim/autoload/plug.vim --create-dirs silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif endif
@ -16,7 +16,7 @@ source ~/.vim/autoload/plug.vim
call plug#begin('~/.vim/plugged') call plug#begin('~/.vim/plugged')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } " Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
" Plug 'roxma/vim-hug-neovim-rpc' " Plug 'roxma/vim-hug-neovim-rpc'
Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes' Plug 'vim-airline/vim-airline-themes'

View File

@ -68,7 +68,7 @@ ZSH_THEME="robbyrussell"
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse) # Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup. # Add wisely, as too many plugins slow down shell startup.
plugins=(git) plugins=(git git-prompt)
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh