Skip to content

Commit

Permalink
Merge pull request #35 from kubos/cargo-kubos-install
Browse files Browse the repository at this point in the history
Adding in command for installing cargo-kubos subcommand.
  • Loading branch information
plauche authored Jan 24, 2018
2 parents 1a5f184 + 48a023b commit 4aaab76
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def build_box(args):

def main():
parser = argparse.ArgumentParser(
description='Provision and package the kubostech/base and/or kubostech/kubos-dev box and upload it to the Vagrant Cloud.')
description='Provision and package the kubos/base and/or kubos/kubos-dev box and upload it to the Vagrant Cloud.')

parser.add_argument('box_name',
nargs=1,
Expand Down
4 changes: 2 additions & 2 deletions builder/provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

class BoxProvisioner(BoxAutomator):
STATUS_KEY = 'provision'
VAGRANT_REPO_URL = 'https://github.com/kubostech/kubos-vagrant'
VAGRANT_REPO_URL = 'https://github.com/kubos/kubos-vagrant'
DUMP_LOG_LINES = 50 # Number of lines to dump from end of logs on an error
status_steps = {
'base' : ['file',
Expand All @@ -45,7 +45,7 @@ def __init__(self, args):

def update_base_box(self):
print 'Updating the base box'
self.run_cmd('vagrant', 'box', 'update', '--box', 'kubostech/base', '--provider', 'virtualbox')
self.run_cmd('vagrant', 'box', 'update', '--box', 'kubos/base', '--provider', 'virtualbox')


def clone_vagrant_repo(self):
Expand Down
2 changes: 1 addition & 1 deletion builder/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class BoxUploader(BoxAutomator):
BOX_NAME = 'kubos'
CURL = 'curl'
PROVIDER = 'virtualbox'
USER_NAME = 'kubostech'
USER_NAME = 'kubos'
BASE_URL = 'https://atlas.hashicorp.com/api/v1/box/%s/%s' % (USER_NAME, BOX_NAME)
STATUS_KEY = 'upload'

Expand Down
2 changes: 1 addition & 1 deletion kubos-dev/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "kubostech/base"
config.vm.box = "kubos/base"
config.vm.provision "file", source: "./bin/cargo_config", destination: "~/.cargo/config"
config.vm.provision "privileged", type: "shell", path: "./script/privileged-provision.sh"
config.vm.provision "non-privileged", type: "shell", path: "./script/non-privileged-provision.sh", privileged: false
Expand Down
2 changes: 2 additions & 0 deletions kubos-dev/script/non-privileged-provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ echo 'export PATH=$PATH:"~/.cargo/bin"' >> /home/vagrant/.bashrc
/home/vagrant/.cargo/bin/rustup target install arm-unknown-linux-gnueabihf
# iobc target
/home/vagrant/.cargo/bin/rustup target install arm-unknown-linux-gnueabi
# install cargo-kubos
cd /home/vagrant/.kubos/kubos/cargo-kubos/ && /home/vagrant/.cargo/bin/cargo install

kubos update --tab-completion

Expand Down
5 changes: 2 additions & 3 deletions kubos-dev/script/privileged-provision.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
pip install pysocks pyserial #Temporary - This will be added to the kubos-cli requirements.txt
pip install git+https://github.com/kubostech/kubos-cli
pip install cryptography==1.9
pip install -r https://raw.githubusercontent.com/kubos/kubos-cli/master/requirements.txt
pip install git+https://github.com/kubos/kubos-cli

mkdir -p /usr/local/lib/yotta_modules
mkdir -p /usr/local/lib/yotta_targets
Expand Down

0 comments on commit 4aaab76

Please sign in to comment.