Skip to content

Commit ae92658

Browse files
authored
Merge pull request #20 from dockopslab/rename-to-pulseops
2 parents 7bc7a02 + 5ff73b9 commit ae92658

8 files changed

Lines changed: 63 additions & 63 deletions

File tree

.env

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#GitHub environment
2-
GITHUB_URL=github.com/dockopslab/bulckan.git
3-
GITHUB_BRANCH=example/bulckan-target
2+
GITHUB_URL=github.com/dockopslab/pulseops.git
3+
GITHUB_BRANCH=example/pulseops-target
44
GITHUB_PATH=sample/
55
CHECK_INTERVAL=60
66
GITHUB_USERNAME=
7-
GITHUB_TOKEN=
7+
GITHUB_TOKEN=
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: bulckanCI
1+
name: pulseopsCI
22

33
on:
44
push:
@@ -12,7 +12,7 @@ on:
1212
paths:
1313
- 'app/**'
1414
jobs:
15-
build-bulckanCI:
15+
build-pulseopsCI:
1616
runs-on: ubuntu-latest
1717

1818
steps:
@@ -34,4 +34,4 @@ jobs:
3434
with:
3535
context: ./app
3636
push: true
37-
tags: ghcr.io/${{ github.repository_owner }}/bulckan:latest
37+
tags: ghcr.io/${{ github.repository_owner }}/pulseops:latest

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.record/
44

55
# Files
6-
bulckan_test.sh
6+
pulseops_test.sh
77
.test.env
88
compose.test.yml
9-
Dockerfile.test
9+
Dockerfile.test

README.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
[![bulckanCI](https://github.com/dockopslab/bulckan/actions/workflows/bulckanCI.yml/badge.svg?branch=main)](https://github.com/dockopslab/bulckan/actions/workflows/bulckanCI.yml)
2-
![GitHub License](https://img.shields.io/github/license/dockopslab/bulckan)
1+
[![pulseopsCI](https://github.com/dockopslab/pulseops/actions/workflows/pulseopsCI.yml/badge.svg?branch=main)](https://github.com/dockopslab/pulseops/actions/workflows/pulseopsCI.yml)
2+
![GitHub License](https://img.shields.io/github/license/dockopslab/pulseops)
33

44

5-
# bulckan
5+
# PulseOps
66

77
This project provides a GitOps tool for Docker Compose on a Docker container.
88

99
The application clones a GitHub repository, periodically checks for changes to a specific branch and path, and deploys or updates the project using Docker Compose.
1010

1111
At the end of each time interval, in addition to checking for changes and updating the deployment, it re-runs the initial command so that if a service has been removed, it is redeployed while maintaining parity between the deployment on the host and the compose files on Github.
1212

13-
bulckan will show in the logs all the steps to deploy the compose file. It will also store and log the name specified in compose, the last commit that forced the deployment or update on the host, and the number of times it has been updated due to changes on GitHub.
13+
PulseOps will show in the logs all the steps to deploy the compose file. It will also store and log the name specified in compose, the last commit that forced the deployment or update on the host, and the number of times it has been updated due to changes on GitHub.
1414

1515
## Requirements:
1616
- Docker
1717
- Docker Compose
1818
- Access to a GitHub repository (public or private)
1919

20-
bulckan only monitors changes in the specified path and will only update the configuration of the docker compose file. It does not monitor if the images have been updated, use [Watchtower](https://containrrr.dev/watchtower/?ref=selfh.st) for that by deploying it with bulckan or implement a workflow that changes the image version in the compose when the image is rebuilt.
20+
PulseOps only monitors changes in the specified path and will only update the configuration of the docker compose file. It does not monitor if the images have been updated, use [Watchtower](https://containrrr.dev/watchtower/?ref=selfh.st) for that by deploying it with PulseOps or implement a workflow that changes the image version in the compose when the image is rebuilt.
2121

22-
Note: To test the functionality, it is possible to deploy bulckan as configured. The application points to a branch of the same repository that contains the [compose files](https://github.com/dockopslab/bulckan/tree/example/bulckan-target) needed to deploy one or more Apache containers.
22+
Note: To test the functionality, it is possible to deploy PulseOps as configured. The application points to a branch of the same repository that contains the [compose files](https://github.com/dockopslab/pulseops/tree/example/pulseops-target) needed to deploy one or more Apache containers.
2323

2424
## Configuration
2525
First, clone this repository and navigate to the project directory:
2626

2727
```
28-
git clone https://github.com/dockopslab/bulckan.git
29-
cd bulckan
28+
git clone https://github.com/dockopslab/pulseops.git
29+
cd pulseops
3030
```
3131

3232
Configure the ``.env`` file to access the repository, branch and path where the compose file you want to deploy and maintain with this tool is located:
3333

3434
```
35-
GITHUB_URL=github.com/dockopslab/bulckan.git
36-
GITHUB_BRANCH=example/bulckan-target
35+
GITHUB_URL=github.com/dockopslab/pulseops.git
36+
GITHUB_BRANCH=example/pulseops-target
3737
GITHUB_PATH=sample/
3838
CHECK_INTERVAL=60
3939
GITHUB_USERNAME=
4040
GITHUB_TOKEN=
4141
```
42-
Bulckan deployment:
42+
PulseOps deployment:
4343

4444
```
4545
docker compose up -d
@@ -54,7 +54,7 @@ rm: can't remove 'repo': Resource busy
5454
Cloning into 'repo'...
5555
Recording update...
5656
Deploying with docker-compose...
57-
Compose name: 'bulckan-test1'
57+
Compose name: 'pulseops-test1'
5858
Last deployed commit: 3ee4dfad909302af3e7561a2877ac1addfc0119d
5959
Total updates: 1
6060
apache2 Pulling
@@ -88,19 +88,19 @@ Total updates: 1
8888
Sleeping for 60 seconds...
8989
```
9090

91-
By adding the following tags to the target application's compose file, information tags will be set on the containers with the commit that forced the last deployment and the number of updates bulckan has performed to maintain parity:
91+
By adding the following tags to the target application's compose file, information tags will be set on the containers with the commit that forced the last deployment and the number of updates PulseOps has performed to maintain parity:
9292

9393
```
9494
labels:
95-
- "bulckan.deploy.update_count=${UPDATE_COUNT}"
96-
- "bulckan.deploy.last_commit=${LAST_COMMIT}"
95+
- "pulseops.deploy.update_count=${UPDATE_COUNT}"
96+
- "pulseops.deploy.last_commit=${LAST_COMMIT}"
9797
```
9898

99-
See an example in this [compose file](https://github.com/dockopslab/bulckan/blob/example/bulckan-target/sample/docker-compose.yml).
99+
See an example in this [compose file](https://github.com/dockopslab/pulseops/blob/example/pulseops-target/sample/docker-compose.yml).
100100

101101
# Multiple deployment configuration
102102

103-
bulckan can be deployed multiple times, so it can point to different repositories and keep different applications updated and deployed at the same time.
103+
PulseOps can be deployed multiple times, so it can point to different repositories and keep different applications updated and deployed at the same time.
104104

105105
If necessary, configure the ``.git.env`` file:
106106
```
@@ -110,36 +110,36 @@ GITHUB_TOKEN=
110110

111111
Configure environment variables in ``compose.example.yml``:
112112
```
113-
name: 'bulckan-example'
113+
name: 'pulseops-example'
114114
115115
networks:
116-
bulckan:
116+
pulseops:
117117
118118
volumes:
119119
repo1:
120120
repo2:
121121
repo3:
122122
123123
services:
124-
bulckan1:
125-
image: ghcr.io/dockopslab/bulckan:latest
124+
pulseops1:
125+
image: ghcr.io/dockopslab/pulseops:latest
126126
env_file:
127127
- .git.env
128128
environment:
129-
- GITHUB_URL=github.com/dockopslab/bulckan.git
130-
- GITHUB_BRANCH=example/bulckan-target
129+
- GITHUB_URL=github.com/dockopslab/pulseops.git
130+
- GITHUB_BRANCH=example/pulseops-target
131131
- GITHUB_PATH=watchtower/
132132
- CHECK_INTERVAL=3600
133133
volumes:
134134
- /var/run/docker.sock:/var/run/docker.sock
135135
136-
bulckan2:
137-
image: ghcr.io/dockopslab/bulckan:latest
136+
pulseops2:
137+
image: ghcr.io/dockopslab/pulseops:latest
138138
env_file:
139139
- .git.env
140140
environment:
141-
- GITHUB_URL=github.com/dockopslab/bulckan.git
142-
- GITHUB_BRANCH=example/bulckan-target
141+
- GITHUB_URL=github.com/dockopslab/pulseops.git
142+
- GITHUB_BRANCH=example/pulseops-target
143143
- GITHUB_PATH=sample/
144144
- CHECK_INTERVAL=120
145145
volumes:
@@ -148,13 +148,13 @@ services:
148148
....
149149
```
150150

151-
bulckan deployment:
151+
PulseOps deployment:
152152

153153
```
154154
docker-compose -f compose.example.yml up -d
155155
```
156156

157-
Note: Before deploying multiple docker-compose.yml with Bulckan, it is necessary to check for possible incompatibilities. Errors due to duplication of exposed ports, service names, networks, and others must be corrected before deployment.
157+
Note: Before deploying multiple docker-compose.yml with PulseOps, it is necessary to check for possible incompatibilities. Errors due to duplication of exposed ports, service names, networks, and others must be corrected before deployment.
158158

159159
## Contributions
160160
Contributions are welcome. Please open an issue or send a pull request to improve this project.

app/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ RUN apk --no-cache add \
1111
rm -rf /var/cache/apk/* /tmp/*
1212

1313
# Copy the deployment script to the container
14-
COPY bulckan.sh /usr/local/bin/bulckan.sh
14+
COPY pulseops.sh /usr/local/bin/pulseops.sh
1515

1616
# Give execution permissions to the script
17-
RUN chmod +x /usr/local/bin/bulckan.sh
17+
RUN chmod +x /usr/local/bin/pulseops.sh
1818

19-
ENTRYPOINT ["/usr/local/bin/bulckan.sh"]
19+
ENTRYPOINT ["/usr/local/bin/pulseops.sh"]
File renamed without changes.

compose.example.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,60 @@
1-
name: 'bulckan-example'
1+
name: 'pulseops-example'
22

33
networks:
4-
bulckan:
4+
pulseops:
55

66
volumes:
77
repo1:
88
repo2:
99
repo3:
1010

1111
services:
12-
bulckan1:
13-
image: ghcr.io/dockopslab/bulckan:latest
12+
pulseops1:
13+
image: ghcr.io/dockopslab/pulseops:latest
1414
env_file:
1515
- .git.env
1616
environment:
17-
- GITHUB_URL=github.com/dockopslab/bulckan.git
18-
- GITHUB_BRANCH=example/bulckan-target
17+
- GITHUB_URL=github.com/dockopslab/pulseops.git
18+
- GITHUB_BRANCH=example/pulseops-target
1919
- GITHUB_PATH=watchtower/
2020
- CHECK_INTERVAL=3600
2121
volumes:
2222
- /var/run/docker.sock:/var/run/docker.sock
2323
- repo1:/repo
2424
# - .repo1:/repo
2525
networks:
26-
- bulckan
26+
- pulseops
2727

28-
bulckan2:
29-
image: ghcr.io/dockopslab/bulckan:latest
28+
pulseops2:
29+
image: ghcr.io/dockopslab/pulseops:latest
3030
env_file:
3131
- .git.env
3232
environment:
33-
- GITHUB_URL=github.com/dockopslab/bulckan.git
34-
- GITHUB_BRANCH=example/bulckan-target
33+
- GITHUB_URL=github.com/dockopslab/pulseops.git
34+
- GITHUB_BRANCH=example/pulseops-target
3535
- GITHUB_PATH=sample/
3636
- CHECK_INTERVAL=120
3737
volumes:
3838
- /var/run/docker.sock:/var/run/docker.sock
3939
- repo2:/repo
4040
# - .repo2:/repo
4141
networks:
42-
- bulckan
42+
- pulseops
4343

44-
bulckan3:
45-
image: ghcr.io/dockopslab/bulckan:latest
44+
pulseops3:
45+
image: ghcr.io/dockopslab/pulseops:latest
4646
env_file:
4747
- .git.env
4848
environment:
49-
- GITHUB_URL=github.com/dockopslab/bulckan.git
50-
- GITHUB_BRANCH=example/bulckan-target
49+
- GITHUB_URL=github.com/dockopslab/pulseops.git
50+
- GITHUB_BRANCH=example/pulseops-target
5151
- GITHUB_PATH=sample1/
5252
- CHECK_INTERVAL=60
5353
volumes:
5454
- /var/run/docker.sock:/var/run/docker.sock
5555
- repo3:/repo
5656
# - .repo3:/repo
5757
networks:
58-
- bulckan
58+
- pulseops
5959

60-
# ...
60+
# ...

compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
name: 'bulckan'
1+
name: 'pulseops'
22

33
networks:
4-
bulckan:
4+
pulseops:
55

66
volumes:
77
repo:
88

99
services:
10-
bulckan1:
11-
image: ghcr.io/dockopslab/bulckan:latest
10+
pulseops1:
11+
image: ghcr.io/dockopslab/pulseops:latest
1212
environment:
1313
- GITHUB_URL=${GITHUB_URL}
1414
- GITHUB_BRANCH=${GITHUB_BRANCH}
@@ -21,4 +21,4 @@ services:
2121
- repo:/repo
2222
# - .repo:/repo
2323
networks:
24-
- bulckan
24+
- pulseops

0 commit comments

Comments
 (0)