Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
99ce688a
Commit
99ce688a
authored
5 years ago
by
AnJia
Committed by
老广
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added Vagrantfile to support windows dev (#3036)
parent
3cdabaf8
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
0 deletions
+62
-0
.dockerignore
.dockerignore
+3
-0
.gitignore
.gitignore
+3
-0
Vagrantfile
Vagrantfile
+56
-0
No files found.
.dockerignore
View file @
99ce688a
...
...
@@ -5,3 +5,5 @@ data/*
tmp/*
django.db
celerybeat.pid
### Vagrant ###
.vagrant/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitignore
View file @
99ce688a
...
...
@@ -34,3 +34,5 @@ data/static
docs/_build/
xpack
logs/*
### Vagrant ###
.vagrant/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Vagrantfile
0 → 100644
View file @
99ce688a
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant
.
configure
(
"2"
)
do
|
config
|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
# Every Vagrant development environment requires a box. You can search for
# boxes at https://vagrantcloud.com/search.
config
.
vm
.
box_check_update
=
false
config
.
vm
.
box
=
"centos/7"
config
.
vm
.
hostname
=
"jumpserver"
config
.
vm
.
network
"private_network"
,
ip:
"172.17.8.101"
config
.
vm
.
provider
"virtualbox"
do
|
vb
|
vb
.
memory
=
"4096"
vb
.
cpus
=
2
vb
.
name
=
"jumpserver"
end
config
.
vm
.
synced_folder
"."
,
"/vagrant"
,
type:
"rsync"
,
rsync__verbose:
true
,
rsync__exclude:
[
'.git*'
,
'node_modules*'
,
'*.log'
,
'*.box'
,
'Vagrantfile'
]
config
.
vm
.
provision
"shell"
,
inline:
<<-
SHELL
## 设置yum的阿里云源
sudo curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
sudo sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo
sudo curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
sudo yum makecache
## 安装依赖包
sudo yum install -y python36 python36-devel python36-pip \
libtiff-devel libjpeg-devel libzip-devel freetype-devel \
lcms2-devel libwebp-devel tcl-devel tk-devel sshpass \
openldap-devel mariadb-devel mysql-devel libffi-devel \
openssh-clients telnet openldap-clients gcc
## 配置pip阿里云源
mkdir /home/vagrant/.pip
cat << EOF | sudo tee -a /home/vagrant/.pip/pip.conf
[global]
timeout = 6000
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
use-mirrors = true
mirrors = https://mirrors.aliyun.com/pypi/simple/
trusted-host=mirrors.aliyun.com
EOF
python3.6 -m venv /home/vagrant/venv
source /home/vagrant/venv/bin/activate
echo 'source /home/vagrant/venv/bin/activate' >> /home/vagrant/.bash_profile
SHELL
end
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment