Skip to content
Snippets Groups Projects
Commit b1a97d11 authored by Matevz Erzen's avatar Matevz Erzen
Browse files

Update to Clouditor v1.3.14

parent ddf9d635
No related branches found
No related tags found
No related merge requests found
build: install-dependencies:
go install google.golang.org/protobuf/cmd/protoc-gen-go \ ~/.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 \ google.golang.org/grpc/cmd/protoc-gen-go-grpc \
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \ github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \
github.com/googleapis/gnostic/apps/protoc-gen-openapi github.com/google/gnostic/cmd/protoc-gen-openapi
go generate ./... && go build ./...
build:
~/.go/bin/go generate ./...
~/.go/bin/go build ./...
run: run:
go run cmd/engine/engine.go --db-in-memory ~/.go/bin/go run cmd/engine/engine.go --db-in-memory
\ No newline at end of file \ No newline at end of file
...@@ -15,10 +15,10 @@ ...@@ -15,10 +15,10 @@
- name: Download Golang installer - name: Download Golang installer
get_url: get_url:
url: https://storage.googleapis.com/golang/getgo/installer_linux url: https://storage.googleapis.com/golang/getgo/installer_linux
dest: ~/installer_linux dest: /home/vagrant/installer_linux
mode: '0555' mode: '0555'
- name: Run Golang installer - name: Run Golang installer
raw: ./installer_linux && source ~/.bashrc raw: ./installer_linux && source /home/vagrant/.bash_profile
- name: Create dir - name: Create dir
file: file:
path: /home/vagrant/clouditor path: /home/vagrant/clouditor
...@@ -28,11 +28,15 @@ ...@@ -28,11 +28,15 @@
repo: https://github.com/clouditor/clouditor.git repo: https://github.com/clouditor/clouditor.git
dest: /home/vagrant/clouditor dest: /home/vagrant/clouditor
force: yes force: yes
version: v1.3.9 version: v1.3.14
- name: Copy Makefile - name: Copy Makefile
copy: copy:
src: ./clouditor/Makefile src: ./clouditor/Makefile
dest: /home/vagrant/clouditor/Makefile dest: /home/vagrant/clouditor/Makefile
- name: Install Clouditor dependencies
make:
chdir: /home/vagrant/clouditor
target: install-dependencies
- name: Build Clouditor - name: Build Clouditor
make: make:
chdir: /home/vagrant/clouditor chdir: /home/vagrant/clouditor
...@@ -50,5 +54,5 @@ ...@@ -50,5 +54,5 @@
shell: shell:
chdir: /home/vagrant/clouditor chdir: /home/vagrant/clouditor
executable: /bin/bash 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/ # 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