Skip to content

Commit

Permalink
wip: begin to convert osquery schemas to structs
Browse files Browse the repository at this point in the history
  • Loading branch information
cilki committed Dec 27, 2024
1 parent ea8e83a commit e8c30b4
Show file tree
Hide file tree
Showing 76 changed files with 590 additions and 2,210 deletions.
28 changes: 6 additions & 22 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,24 @@ Vagrant.configure("2") do |config|

config.vm.define "linux" do |linux|
linux.vm.box = "archlinux/archlinux"
linux.vm.synced_folder ".", "/home/vagrant/sandpolis"
linux.vm.synced_folder ".", "/home/vagrant/sandpolis", type: "nfs", nfs_version: 4

linux.vm.provider "virtualbox" do |virtualbox|
virtualbox.memory = 8192
virtualbox.cpus = 16
end

linux.vm.provider "libvirt" do |libvirt|
libvirt.memory = 8192
libvirt.cpus = 16
end

# Configure environment
linux.vm.provision :shell, :inline => "hostnamectl set-hostname sandpolis_linux && locale-gen en_US.UTF.8"
linux.vm.provision :shell, :inline => "pacman -Syu --noconfirm binutils gcc make git wget vim python-pip npm linux-headers"

# Install Java
linux.vm.provision :shell, :inline => "wget -q -O- https://download.java.net/java/early_access/panama/3/openjdk-17-panama+3-167_linux-x64_bin.tar.gz | tar zxf -"
linux.vm.provision :shell, :inline => "echo 'export JAVA_HOME=/home/vagrant/jdk-17' >>/home/vagrant/.bash_profile"

# Install Rust
linux.vm.provision :shell, :inline => "curl https://sh.rustup.rs -sSf | sh -s -- -y"

# Install Swift
linux.vm.provision :shell, :inline => "wget -q -O- https://swift.org/builds/swift-5.4.3-release/ubuntu2004/swift-5.4.3-RELEASE/swift-5.4.3-RELEASE-ubuntu20.04.tar.gz | tar zxf -"
linux.vm.provision :shell, :inline => "echo 'export PATH=\${PATH}:~/swift-5.4.3-RELEASE-ubuntu20.04/usr/bin' >>/home/vagrant/.bash_profile"
linux.vm.provision :shell, :inline => "source /home/vagrant/.bash_profile"

# Install protoc-gen-swift
#linux.vm.provision :shell, :inline => "git clone --depth 1 https://github.com/apple/swift-protobuf"
#linux.vm.provision :shell, :inline => "(cd swift-protobuf; swift build -c release; cp .build/release/protoc-gen-swift /usr/bin/protoc-gen-swift)"

# Install protoc-gen-rust
linux.vm.provision :shell, :inline => "git clone --depth 1 https://github.com/stepancheg/rust-protobuf"
linux.vm.provision :shell, :inline => "(cd rust-protobuf; cargo build --package protobuf-codegen --release; cp target/release/protoc-gen-rust /usr/bin/protoc-gen-rust)"

# Install formatters
linux.vm.provision :shell, :inline => "pacman -Syu --noconfirm python-black"
linux.vm.provision :shell, :inline => "npm install -g prettier"
end

config.vm.define "openbsd" do |openbsd|
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

41 changes: 0 additions & 41 deletions core/ext/sandpolis-core-ext-osquery/src/main/json/Profile/Cpu.json

This file was deleted.

This file was deleted.

Loading

0 comments on commit e8c30b4

Please sign in to comment.