Skip to content
Snippets Groups Projects
Commit d5637b66 authored by Zitnik, Anze's avatar Zitnik, Anze
Browse files

Merge branch 'clouditor-v1.3.14-update' into 'master'

Update to Clouditor v1.3.14

See merge request medina/security-monitoring!5
parents ddf9d635 b1a97d11
No related branches found
No related tags found
No related merge requests found
build:
go install google.golang.org/protobuf/cmd/protoc-gen-go \
install-dependencies:
~/.go/bin/go get github.com/google/gnostic/cmd/protoc-gen-openapi
~/.go/bin/go install google.golang.org/protobuf/cmd/protoc-gen-go \
google.golang.org/grpc/cmd/protoc-gen-go-grpc \
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \
github.com/googleapis/gnostic/apps/protoc-gen-openapi
go generate ./... && go build ./...
github.com/google/gnostic/cmd/protoc-gen-openapi
build:
~/.go/bin/go generate ./...
~/.go/bin/go build ./...
run:
go run cmd/engine/engine.go --db-in-memory
\ No newline at end of file
~/.go/bin/go run cmd/engine/engine.go --db-in-memory
\ No newline at end of file
......@@ -15,10 +15,10 @@
- name: Download Golang installer
get_url:
url: https://storage.googleapis.com/golang/getgo/installer_linux
dest: ~/installer_linux
dest: /home/vagrant/installer_linux
mode: '0555'
- name: Run Golang installer
raw: ./installer_linux && source ~/.bashrc
raw: ./installer_linux && source /home/vagrant/.bash_profile
- name: Create dir
file:
path: /home/vagrant/clouditor
......@@ -28,11 +28,15 @@
repo: https://github.com/clouditor/clouditor.git
dest: /home/vagrant/clouditor
force: yes
version: v1.3.9
version: v1.3.14
- name: Copy Makefile
copy:
src: ./clouditor/Makefile
dest: /home/vagrant/clouditor/Makefile
- name: Install Clouditor dependencies
make:
chdir: /home/vagrant/clouditor
target: install-dependencies
- name: Build Clouditor
make:
chdir: /home/vagrant/clouditor
......@@ -50,5 +54,5 @@
shell:
chdir: /home/vagrant/clouditor
executable: /bin/bash
cmd: "(nohup ~/.go/bin/go run cmd/engine/engine.go --db-in-memory </dev/null >/var/log/clouditor.log 2>&1 & sleep 1)"
cmd: "(nohup /home/vagrant/.go/bin/go run cmd/engine/engine.go --db-in-memory </dev/null >/var/log/clouditor.log 2>&1 & sleep 1)"
# see https://ansibledaily.com/execute-detached-process-with-ansible/
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment