Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ bin/
examples/
README.MD
LICENCE
.github/
.github/
.git/
docs
tests
.dockerignore
.gitignore
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
bin
/stuff/
.DS_Store
.claude
14 changes: 10 additions & 4 deletions examples/Dockerfile-cattery-tiny
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,20 @@ RUN apt-get update && apt-get install -y \

WORKDIR /action-runner

RUN curl -sL -o actions-runner-linux-x64-2.323.0.tar.gz https://github.com/actions/runner/releases/download/v2.323.0/actions-runner-linux-x64-2.323.0.tar.gz
ARG RUNNER_VERISON='2.333'
ENV RUNNER_VERISON=$RUNNER_VERISON

RUN curl -sL -o actions-runner-linux-x64-${RUNNER_VERISON}.0.tar.gz https://github.com/actions/runner/releases/download/v${RUNNER_VERISON}.0/actions-runner-linux-x64-${RUNNER_VERISON}.0.tar.gz
RUN ls -al
RUN tar xzf ./actions-runner-linux-x64-2.323.0.tar.gz
RUN tar xzf ./actions-runner-linux-x64-${RUNNER_VERISON}.0.tar.gz

WORKDIR /cattery-agent

COPY . .

RUN go build -o /action-runner/cattery/cattery
RUN ls -al /action-runner
RUN ls -al /cattery-agent
RUN ls -al .


#ENTRYPOINT ["/action-runner/cattery/cattery", "agent", "-r","/action-runner", "-s", "http://10.10.10.116:5137"]
RUN cd src && go build -o /action-runner/cattery/cattery
39 changes: 39 additions & 0 deletions examples/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version: '3.8'

services:
mongo1:
image: mongo:latest
container_name: mongo1
command: mongod --replSet rs0 --bind_ip_all
ports:
- "27017:27017"
volumes:
- mongo1-data:/data/db
networks:
- mongo-cluster

mongo-config:
image: mongo:latest
container_name: mongo-config
depends_on:
- mongo1
networks:
- mongo-cluster
# This command runs a script to initiate the replica set
command: >
bash -c "sleep 10 && mongosh --host mongo1:27017 <<EOF
var config = {
_id : 'rs0',
members : [
{ _id: 0, host: '127.0.0.1:27017' }
]
};
rs.initiate(config);
EOF"

networks:
mongo-cluster:
driver: bridge

volumes:
mongo1-data:
2 changes: 2 additions & 0 deletions examples/example-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ github:
- name: paritytech-stg
appId: 123456
installationId: 654321
appClientId: Iv123abC
privateKeyPath: path/to/github-private-key.pem
webhookSecret: my-webhook-secret

- name: paritytech
appId: 123456
installationId: 654321
appClientId: Iv123abC
privateKeyPath: path/to/github-private-key.pem
webhookSecret: my-webhook-secret

Expand Down
66 changes: 0 additions & 66 deletions src/agent/Watchers/fileWatcher.go

This file was deleted.

48 changes: 0 additions & 48 deletions src/agent/Watchers/pingWatcher.go

This file was deleted.

25 changes: 0 additions & 25 deletions src/agent/Watchers/signalWather.go

This file was deleted.

Loading
Loading