File tree 3 files changed +47
-1
lines changed
3 files changed +47
-1
lines changed Original file line number Diff line number Diff line change @@ -16,4 +16,5 @@ coverage.txt
16
16
* .output
17
17
18
18
slrp
19
- package-lock.json
19
+ package-lock.json
20
+ .vagrant
Original file line number Diff line number Diff line change
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ Vagrant . configure ( "2" ) do |config |
5
+ config . vm . box = "ubuntu/focal64"
6
+ config . vm . provision :shell , :path => "docs/linux-dev.sh"
7
+ config . vm . synced_folder "./" , "/vagrant" , disabled : false
8
+ config . vm . network "forwarded_port" , guest : 8089 , host : 8089
9
+ config . vm . network "forwarded_port" , guest : 8090 , host : 8090
10
+ end
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ sudo apt update
3
+
4
+ # setup nodejs 19.x
5
+ curl -fsSL https://deb.nodesource.com/setup_19.x | sudo -E bash -
6
+ sudo apt-get install -y nodejs
7
+
8
+ # setup go 1.19.x
9
+ GO_TGZ=go1.19.3.linux-amd64.tar.gz
10
+ wget https://go.dev/dl/$GO_TGZ
11
+ sudo tar -C /usr/local -xzf $GO_TGZ
12
+ rm $GO_TGZ
13
+ sudo sh -c ' echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile'
14
+
15
+ # setup goreleaser
16
+ sudo snap install --classic goreleaser
17
+
18
+ mkdir $HOME /.slrp
19
+
20
+ tee $HOME /.slrp/config.yml << EOF
21
+ app:
22
+ state: $HOME /.slrp/data
23
+ sync: 1m
24
+ log:
25
+ level: info
26
+ format: pretty
27
+ server:
28
+ addr: "0.0.0.0:8089"
29
+ read_timeout: 15s
30
+ mitm:
31
+ addr: "0.0.0.0:8090"
32
+ read_timeout: 15s
33
+ idle_timeout: 15s
34
+ write_timeout: 15s
35
+ EOF
You can’t perform that action at this time.
0 commit comments