Skip to content

Commit

Permalink
REM obsolete dockerfiles
Browse files Browse the repository at this point in the history
Also removes the docker-compose template as we were not saving any space with it.
  • Loading branch information
Dominik Znidar committed Jun 15, 2017
1 parent 32061d2 commit 8840218
Show file tree
Hide file tree
Showing 14 changed files with 51 additions and 157 deletions.
14 changes: 0 additions & 14 deletions Dockerfile.amzn

This file was deleted.

4 changes: 0 additions & 4 deletions Dockerfile.build

This file was deleted.

14 changes: 0 additions & 14 deletions Dockerfile.centos

This file was deleted.

1 change: 0 additions & 1 deletion Dockerfile.debian

This file was deleted.

14 changes: 0 additions & 14 deletions Dockerfile.opensuse

This file was deleted.

5 changes: 0 additions & 5 deletions Dockerfile.packager.deb

This file was deleted.

4 changes: 0 additions & 4 deletions Dockerfile.packager.rpm

This file was deleted.

13 changes: 0 additions & 13 deletions Dockerfile.rhel

This file was deleted.

14 changes: 0 additions & 14 deletions Dockerfile.sles

This file was deleted.

24 changes: 0 additions & 24 deletions Dockerfile.ubuntu

This file was deleted.

5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ clean: ## cleans up the repository
/bin/rm -rf $(BUILDDIR)
/bin/rm -rf $(PKGDIR)
/bin/rm -rf $(DATADIR)
/bin/rm -rf ./.state

test: vet ## runs unit tests
test: vet ## runs unit tests
go test -v ./...

format: ## formats the code
Expand All @@ -45,6 +46,8 @@ vet: ## examines the go code with `go vet`

up: $(addprefix up/,$(DISTRIBUTIONS)) ## start agents for all distributions
up/%: build ## starts the agent for a specific distribution
mkdir -p .state
touch .state/$*
docker-compose --project-name=tactycal up agent$*

$(PKGDIR): $(addprefix $(PKGDIR)/,$(PACKAGE_TYPE)) ## creates artifacts for all distributions
Expand Down
4 changes: 3 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ func (c *Client) SendPackageList(packages []*packageLookup.Package) error {
}

if errCode.Error == ErrorCodeInvalidToken {
c.state.Reset()
if err := c.state.Reset(); err != nil {
return err
}
return fmt.Errorf("Token was reported as invalid. Perhaps the host was deleted. New host ID will be assigned to this machine.")
}

Expand Down
11 changes: 0 additions & 11 deletions docker-compose.tmpl

This file was deleted.

81 changes: 44 additions & 37 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,61 @@
version: "2"
services:
agentdebian:
extends:
file: docker-compose.tmpl
service: agent
build:
dockerfile: Dockerfile.debian
image: debian:jessie
command: /usr/local/bin/tactycal -d
volumes:
- ./build/usr/bin/tactycal:/usr/local/bin/tactycal
- ./my_conf.conf:/etc/tactycal/agent.conf
- .state/debian:/var/opt/tactycal/state
environment:
- LABEL=debianenv

agentubuntu:
extends:
file: docker-compose.tmpl
service: agent
build:
dockerfile: Dockerfile.ubuntu
image: ubuntu:latest
command: /usr/local/bin/tactycal -d
volumes:
- ./build/usr/bin/tactycal:/usr/local/bin/tactycal
- ./my_conf.conf:/etc/tactycal/agent.conf
- .state/ubuntu:/var/opt/tactycal/state
environment:
- LABEL=ubuntuenv

agentrhel:
extends:
file: docker-compose.tmpl
service: agent
build:
dockerfile: Dockerfile.rhel
image: richxsl/rhel7
command: /usr/local/bin/tactycal -d
volumes:
- ./build/usr/bin/tactycal:/usr/local/bin/tactycal
- ./my_conf.conf:/etc/tactycal/agent.conf
- .state/rhel:/var/opt/tactycal/state

agentcentos:
extends:
file: docker-compose.tmpl
service: agent
build:
dockerfile: Dockerfile.centos

image: centos:7
command: /usr/local/bin/tactycal -d
volumes:
- ./build/usr/bin/tactycal:/usr/local/bin/tactycal
- ./my_conf.conf:/etc/tactycal/agent.conf
- .state/centos:/var/opt/tactycal/state

agentopensuse:
extends:
file: docker-compose.tmpl
service: agent
build:
dockerfile: Dockerfile.opensuse
image: opensuse:42.2
command: /usr/local/bin/tactycal -d
volumes:
- ./build/usr/bin/tactycal:/usr/local/bin/tactycal
- ./my_conf.conf:/etc/tactycal/agent.conf
- .state/opensuse:/var/opt/tactycal/state

agentsles:
extends:
file: docker-compose.tmpl
service: agent
build:
dockerfile: Dockerfile.sles

image: gitlab.3fs.si:4567/tactycal/tactycal:sles12sp2
command: /usr/local/bin/tactycal -d
volumes:
- ./build/usr/bin/tactycal:/usr/local/bin/tactycal
- ./my_conf.conf:/etc/tactycal/agent.conf
- .state/sles:/var/opt/tactycal/state

agentamzn:
extends:
file: docker-compose.tmpl
service: agent
build:
dockerfile: Dockerfile.amzn
image: amazonlinux:2016.09
command: /usr/local/bin/tactycal -d
volumes:
- ./build/usr/bin/tactycal:/usr/local/bin/tactycal
- ./my_conf.conf:/etc/tactycal/agent.conf
- .state/amzn:/var/opt/tactycal/state

0 comments on commit 8840218

Please sign in to comment.