Compare commits

..

No commits in common. "a8b1029ad29191d85ed9a85f6a06234bb32af1ed" and "f31e9e62d7cfd1a1ff79cca7fff7f5e119abeff9" have entirely different histories.

3 changed files with 12 additions and 13 deletions

View File

@ -16,14 +16,15 @@ PROJECT=torch-agent-$TORCH_VERSION
BUILD_DIR=dist BUILD_DIR=dist
DEB_DIR=$BUILD_DIR/$PROJECT DEB_DIR=$BUILD_DIR/$PROJECT
rm -rf "${BUILD_DIR:?}" rm -rf "${BUILD_DIR:?}/"*
mkdir -p "$DEB_DIR/src/etc/torch"
cp -r debian "$DEB_DIR/"
cp torch.conf "$DEB_DIR/src/etc/torch/"
pip3 install -r requirements.txt pip3 install -r requirements.txt
python3 setup.py sdist python3 setup.py sdist
mkdir -p "$DEB_DIR/src/etc/torch"
cp -r debian "$DEB_DIR/"
cp torch.conf "$DEB_DIR/src/etc/torch/"
cd $BUILD_DIR || exit cd $BUILD_DIR || exit
tar -xzmf "$PROJECT.tar.gz" tar -xzmf "$PROJECT.tar.gz"

16
example/Vagrantfile vendored
View File

@ -64,19 +64,17 @@ Vagrant.configure("2") do |config|
# Ansible, Chef, Docker, Puppet and Salt are also available. Please see the # Ansible, Chef, Docker, Puppet and Salt are also available. Please see the
# documentation for more information about their specific syntax and use. # documentation for more information about their specific syntax and use.
config.vm.provision "file", source: "torch-agent_0.0.4-1_all.deb", destination: "~/"
config.vm.provision "file", source: "agent-config", destination: "~/torch-conf" config.vm.provision "file", source: "agent-config", destination: "~/torch-conf"
config.vm.provision "shell", inline: <<-SHELL config.vm.provision "shell", inline: <<-SHELL
sudo -- sh -c "echo '10.0.2.2 mqtt.example.com' >> /etc/hosts" sudo -- sh -c "echo '10.0.2.2 mqtt.example.com' >> /etc/hosts"
sudo apt update sudo apt update
wget -qO - https://rudefox.io/repo/gpg | sudo apt-key add sudo apt install -y ./torch-agent_0.0.4-1_all.deb
sudo add-apt-repository "deb https://repo.rudefox.io/repository/apt-release focal main"
sudo apt update sudo cp -f torch-conf/* /etc/torch/
sudo apt install -y torch-agent
sudo cp -f torch-conf/* /etc/torch/
sudo chown -R torch /etc/torch sudo chown -R torch /etc/torch
sudo systemctl enable torch-agent sudo systemctl enable torch-agent

Binary file not shown.