Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
p3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Keleher
p3
Commits
ae3dcdcd
Commit
ae3dcdcd
authored
5 years ago
by
Peter J. Keleher
Browse files
Options
Downloads
Patches
Plain Diff
auto
parent
c1ccd1ec
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Vagrantfile~
+0
-88
0 additions, 88 deletions
Vagrantfile~
functions.pyc
+0
-0
0 additions, 0 deletions
functions.pyc
with
0 additions
and
88 deletions
Vagrantfile~
deleted
100644 → 0
+
0
−
88
View file @
c1ccd1ec
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
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://atlas.hashicorp.com/search.
config
.
vm
.
box
=
"ubuntu/xenial64"
config
.
vm
.
box_version
=
"20190816.0.0"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# config.vm.box_check_update = false
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
config
.
vm
.
network
"forwarded_port"
,
guest:
8891
,
host:
8891
config
.
vm
.
network
"forwarded_port"
,
guest:
8892
,
host:
8892
config
.
vm
.
network
"forwarded_port"
,
guest:
8893
,
host:
8893
# Create a private network, which allows host-only access to the machine
# using a specific IP.
# config.vm.network "private_network", ip: "192.168.33.10"
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network "public_network"
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"
# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
#
# config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
# vb.gui = true
#
# # Customize the amount of memory on the VM:
# vb.memory = "1024"
# end
#
# View the documentation for the provider you are using for more
# information on available options.
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
# such as FTP and Heroku are also available. See the documentation at
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
# config.push.define "atlas" do |push|
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
# end
# Enable provisioning with a shell script. Additional provisioners such as
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
# documentation for more information about their specific syntax and use.
config
.
vm
.
provision
"shell"
,
inline:
<<-
SHELL
apt-get update
apt-get install -y python build-essential python-dev python-psycopg2 tcsh default-jre python-pip
pip install --upgrade pip
sudo pip install pyspark
sudo pip install jupyter
sudo pip install ipython-sql
sudo -u vagrant ln -s /vagrant v
sudo -u vagrant cp -r /vagrant/{.bashrc,.cshrc,.jupyter} /home/vagrant/
sudo -u vagrant perl -pi -e 's/
\r\n
/
\n
/g' .cshrc
sudo -u vagrant perl -pi -e 's/
\r\n
/
\n
/g' .bashrc
echo "export SPARKHOME=/vagrant/spark-2.0.1-bin-hadoop2.7" >> .bashrc
chown -R vagrant ~vagrant/{.cshrc,.bashrc,.jupyter}
SHELL
end
This diff is collapsed.
Click to expand it.
functions.pyc
deleted
100644 → 0
+
0
−
0
View file @
c1ccd1ec
File deleted
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment