FROM
指令和MAINTAINER
指令
脚本的第1行是FROM
指令。通过FROM
指令,docker
编译程序能够知道在哪个基础镜像执行来进行编译。所有的Dockerfile都必须以FROM
指令开始。第二条指令MAINTAINER
,用来标明这个镜像的维护者信息。
FROM
指令和MAINTAINER
指令脚本的第1行是FROM
指令。通过FROM
指令,docker
编译程序能够知道在哪个基础镜像执行来进行编译。所有的Dockerfile都必须以FROM
指令开始。第二条指令MAINTAINER
,用来标明这个镜像的维护者信息。
RUN
指令git clone https://github.com/vim/vim.git | |
cd vim | |
./configure --with-features=huge --enable-python3interp --enable-pythoninterp --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu/ --enable-rubyinterp --enable-luainterp --enable-perlinterp --with-python3-config-dir=/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/ --enable-multibyte --enable-cscope --prefix=/usr/local/vim/ | |
make install |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
#!/bin/bash | |
export GOLANG_VERSION=1.10.2 | |
export GOLANG_DOWNLOAD_URL=https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz | |
export GOLANG_DOWNLOAD_SHA256=4b677d698c65370afa33757b6954ade60347aaca310ea92a63ed717d7cb0c2ff | |
apt-get update -qq | |
apt-get install -y --no-install-recommends \ | |
g++ \ |
sudo apt-get install curl php5-cli git | |
php -r "copy('https://getcomposer.org/installer', '/tmp/composer-setup.php');" | |
sudo php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer |
sudo apt-get update | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
lsb-release \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
sudo add-apt-repository \ |
#!/bin/bash | |
#actualiza repos e instala vsftpd | |
sudo apt-get update | |
sudo apt-get install vsftpd -y | |
#remplaza opcioes para activar/desactivar en el archivo de configuracion | |
sudo sed -i -e 's/anonymous_enable=YES/anonymous_enable=NO/g' /etc/vsftpd.conf | |
sudo sed -i -e 's/#local_enable=YES/local_enable=YES/g' /etc/vsftpd.conf | |
sudo sed -i -e 's/#write_enable=YES/write_enable=YES/g' /etc/vsftpd.conf |
git clone https://github.com/Valloric/YouCompleteMe ~/.vim/bundle/YouCompleteMe | |
sudo apt install build-essential cmake python3-dev | |
cd ~/.vim/bundle/YouCompleteMe | |
python3 install.py --clang-completer | |
# The following additional language support options are available: | |
# C# support: install Mono and add --cs-completer when calling install.py. | |
# Go support: install Go and add --go-completer when calling install.py. | |
# JavaScript and TypeScript support: install Node.js and npm then install the TypeScript SDK with npm install -g typescript. | |
# Rust support: install Rust and add --rust-completer when calling install.py. | |
# Java support: install JDK8 (version 8 required) and add --java-completer when calling install.py |
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - | |
sudo apt-get install -y nodejs | |
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt-get update && sudo apt-get install yarn |
docker volume create portainer_data | |
docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer |