-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dockerfile to buld image based on Fedora36 (#15)
- Loading branch information
Showing
12 changed files
with
533 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
FROM fedora:36 | ||
|
||
LABEL maintainer="ownCloud DevOps <devops@owncloud.com>" \ | ||
org.label-schema.name="ownCloud Client" \ | ||
org.label-schema.vendor="ownCloud GmbH" \ | ||
org.label-schema.schema-version="1.0" | ||
|
||
ENV TERM xterm | ||
|
||
ADD https://github.com/owncloud-ci/wait-for/releases/download/v1.0.2/wait-for-linux-amd64 /usr/bin/wait-for | ||
|
||
ENV SU_EXEC_CHECKSUM=0f25a21cf64e58078057adc78f38705163c1d564a959ff30a891c31917011a54 | ||
ADD https://github.com/tianon/gosu/releases/download/1.12/gosu-amd64 /usr/bin/su-exec | ||
|
||
ENV GOMPLATE_CHECKSUM=7dbabe30095f822ec38f5f70711ff121c26e588227da4cc05208417cfaf929cd | ||
ADD https://github.com/hairyhenderson/gomplate/releases/download/v3.9.0/gomplate_linux-amd64 /usr/bin/gomplate | ||
|
||
RUN chmod +x /usr/bin/wait-for && \ | ||
echo "${SU_EXEC_CHECKSUM} /usr/bin/su-exec" | sha256sum -c - && \ | ||
chmod +x /usr/bin/su-exec && \ | ||
echo "${GOMPLATE_CHECKSUM} /usr/bin/gomplate" | sha256sum -c - && \ | ||
chmod +x /usr/bin/gomplate | ||
|
||
RUN yum install -y \ | ||
ca-certificates \ | ||
bash \ | ||
vim \ | ||
curl \ | ||
wget \ | ||
procps-ng \ | ||
apt-utils \ | ||
iputils \ | ||
bzip2 \ | ||
unzip \ | ||
cronie \ | ||
git-core \ | ||
sshpass \ | ||
tree \ | ||
jq \ | ||
gnupg2 \ | ||
nss_wrapper \ | ||
&& yum autoremove -y \ | ||
&& yum clean all | ||
|
||
COPY ./overlay / | ||
CMD ["bash"] | ||
|
||
# Dependencies for building desktop-client | ||
RUN yum install -y \ | ||
langpacks-en \ | ||
clang \ | ||
clazy \ | ||
ninja-build \ | ||
cmake \ | ||
extra-cmake-modules \ | ||
pkgconf-pkg-config \ | ||
zlib-devel \ | ||
libsqlite3x-devel \ | ||
openssl-devel \ | ||
libcmocka-devel \ | ||
qt5-qtbase-devel \ | ||
qt5-qttools-devel \ | ||
libcloudproviders-devel \ | ||
qtkeychain-qt5-devel \ | ||
kf5-kio-devel \ | ||
&& yum autoremove -y \ | ||
&& yum clean all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
image: owncloudci/client:fedora | ||
manifests: | ||
- image: owncloudci/client:fedora-amd64 | ||
platform: | ||
architecture: amd64 | ||
os: linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
if [ -z "$PS1" ] | ||
then | ||
return | ||
fi | ||
|
||
export EDITOR="vim" | ||
export PAGER="less" | ||
export CLICOLOR="1" | ||
export LSCOLORS="Gxfxcxdxbxegedabagacad" | ||
export GREP_COLOR="1;32" | ||
export IGNOREEOF="0" | ||
export HISTSIZE="100000" | ||
export HISTFILESIZE="100000" | ||
export HISTCONTROL="ignoreboth" | ||
|
||
shopt -s cmdhist | ||
shopt -s checkwinsize | ||
shopt -s histappend | ||
shopt -s cdspell | ||
|
||
complete -c command type which | ||
complete -d cd | ||
complete -cf sudo | ||
|
||
alias vi="vim" | ||
alias ls="ls --color=auto" | ||
alias lsa="ls -lahi" | ||
alias l="ls -la" | ||
alias ll="ls -alFh" | ||
alias ..="cd .." | ||
alias ...="cd ../.." | ||
alias grep="grep --color=auto" | ||
alias rgrep="grep -rn" | ||
alias history="fc -l 1" | ||
|
||
if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-not-found ]; then | ||
function command_not_found_handle { | ||
if [ -x /usr/lib/command-not-found ] | ||
then | ||
/usr/lib/command-not-found -- "$1" | ||
return $? | ||
elif [ -x /usr/share/command-not-found/command-not-found ] | ||
then | ||
/usr/share/command-not-found/command-not-found -- "$1" | ||
return $? | ||
else | ||
printf "%s: command not found\n" "$1" >&2 | ||
return 127 | ||
fi | ||
} | ||
fi | ||
|
||
bash_prompt() { | ||
local NONE="\[\033[0m\]" | ||
|
||
local U="\[\033[01;32m\]" | ||
local R="\[\033[01;31m\]" | ||
local S="\[\033[01;37m\]" | ||
local H="\[\033[01;35m\]" | ||
local D="\[\033[01;34m\]" | ||
|
||
if [[ "${EUID}" == "0" ]] ; then | ||
export PS1="\n$R\u$S@$H\h: $D\w # $NONE" | ||
else | ||
export PS1="\n$U\u$S@$H\h: $D\w # $NONE" | ||
fi | ||
} | ||
|
||
bash_prompt && unset bash_prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"\e[1~": beginning-of-line | ||
"\e[4~": end-of-line | ||
"\e[7~": beginning-of-line | ||
"\e[8~": end-of-line | ||
"\eOH": beginning-of-line | ||
"\eOF": end-of-line | ||
"\e[H": beginning-of-line | ||
"\e[F": end-of-line | ||
|
||
"\e[1;5C": forward-word | ||
"\e[1;5D": backward-word | ||
"\eOC": forward-word | ||
"\eOD": backward-word | ||
"\eOc": forward-word | ||
"\eOd": backward-word | ||
"\e\e[C": forward-word | ||
"\e\e[D": backward-word | ||
|
||
"\e[5~": history-search-backward | ||
"\e[6~": history-search-forward |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
" filetype config { | ||
filetype plugin on | ||
filetype indent on | ||
"} | ||
|
||
" misc stuff { | ||
set nocompatible | ||
set modeline | ||
set history=1000 | ||
set backspace=indent,eol,start | ||
set selection=inclusive | ||
set completeopt=longest,menu,preview | ||
set diffopt+=vertical | ||
set autoread | ||
"} | ||
|
||
" tab related { | ||
set shiftwidth=2 | ||
set tabstop=2 | ||
set expandtab | ||
set smarttab | ||
set cindent | ||
"} | ||
|
||
" status related { | ||
set ruler | ||
set showcmd | ||
set nonumber | ||
set shortmess=aoOtTI | ||
set laststatus=1 | ||
"} | ||
|
||
" search related { | ||
set hlsearch | ||
set incsearch | ||
set ignorecase | ||
set smartcase | ||
set scrolloff=3 | ||
set sidescrolloff=5 | ||
"} | ||
|
||
" encoding related { | ||
set enc=utf-8 | ||
set fenc=utf-8 | ||
set termencoding=utf-8 | ||
set fileencodings=utf-8,latin1,default | ||
"} | ||
|
||
" bell related { | ||
set noerrorbells | ||
set vb t_vb= | ||
"} | ||
|
||
" backup related { | ||
set nobackup | ||
"} | ||
|
||
" swap related { | ||
set swapfile | ||
"} | ||
|
||
" grep related { | ||
set grepprg=grep\ -nH\ $* | ||
"} | ||
|
||
" folding related { | ||
set foldcolumn=0 | ||
set foldmethod=indent | ||
set foldnestmax=100 | ||
set nofoldenable | ||
set foldlevel=1 | ||
"} | ||
|
||
" coloring related { | ||
set background=dark | ||
set t_Co=256 | ||
"} | ||
|
||
" show syntax { | ||
syntax on | ||
"} | ||
|
||
" select scheme { | ||
colorscheme delek | ||
"} | ||
|
||
" folding mapping { | ||
map <F5> zo | ||
map <F6> zc | ||
map <F7> zR | ||
map <F8> zM | ||
"} | ||
|
||
" switch tabs { | ||
map <F9> gT | ||
map <F10> gt | ||
"} | ||
|
||
" paste switch { | ||
set pastetoggle=<F11> | ||
"} |
Oops, something went wrong.