This commit is contained in:
		
							parent
							
								
									d43529fbb8
								
							
						
					
					
						commit
						8924db5712
					
				
					 3 changed files with 16 additions and 2 deletions
				
			
		
							
								
								
									
										13
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								.drone.yml
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -8,6 +8,9 @@ steps:
 | 
			
		|||
  environment:
 | 
			
		||||
    SNAPSHOTS_S3_ENDPOINT: minio:9000
 | 
			
		||||
    TEST_S3_ENDPOINT: minio:9000
 | 
			
		||||
  volumes:
 | 
			
		||||
  - name: dockersock
 | 
			
		||||
    path: /var/run
 | 
			
		||||
  commands:
 | 
			
		||||
    - go mod tidy
 | 
			
		||||
    - make test
 | 
			
		||||
| 
						 | 
				
			
			@ -23,6 +26,16 @@ services:
 | 
			
		|||
  - /data
 | 
			
		||||
  - --console-address
 | 
			
		||||
  - :9001
 | 
			
		||||
- name: docker
 | 
			
		||||
  image: docker:dind
 | 
			
		||||
  privileged: true
 | 
			
		||||
  volumes:
 | 
			
		||||
  - name: dockersock
 | 
			
		||||
    path: /var/run
 | 
			
		||||
 | 
			
		||||
volumes:
 | 
			
		||||
- name: dockersock
 | 
			
		||||
  temp: {}
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -3,7 +3,7 @@ test:
 | 
			
		|||
	go test -v apps/*.go
 | 
			
		||||
	go test -v apps/drivers/*.go
 | 
			
		||||
	go test -v detector/*.go
 | 
			
		||||
	# go test -v docker/*.go # Doesn't work in Drone right now
 | 
			
		||||
	go test -v docker/*.go # Doesn't work in Drone right now
 | 
			
		||||
 | 
			
		||||
build:
 | 
			
		||||
	#podman run --rm --privileged -ti -v ${shell pwd}:/srv docker.io/library/golang:1.14-stretch /bin/sh -c "cd /srv && go build"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,7 +8,8 @@ import (
 | 
			
		|||
 | 
			
		||||
func TestGetProcesses(t *testing.T) {
 | 
			
		||||
	driver := Driver{
 | 
			
		||||
		DockerSock: "unix:///run/user/1000/podman/podman.sock",
 | 
			
		||||
		//DockerSock: "unix:///run/user/1000/podman/podman.sock",
 | 
			
		||||
		DockerSock: "unix:///var/run/docker.sock",
 | 
			
		||||
		BindIPHTTP: "127.0.0.1",
 | 
			
		||||
		BindIPSSH:  "127.0.0.1",
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue