Skip to content

Commit f06c62b

Browse files
committed
release v1.0.1
1 parent b9c8a1d commit f06c62b

9 files changed

Lines changed: 290 additions & 237 deletions

File tree

.github/workflows/build.yml

Lines changed: 30 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,30 @@
1-
name: Build Codjixd Binaries
2-
3-
on:
4-
workflow_dispatch:
5-
6-
jobs:
7-
build:
8-
runs-on: ubuntu-latest
9-
strategy:
10-
matrix:
11-
arch: [amd64, arm64, x86]
12-
steps:
13-
- name: Checkout repository
14-
uses: actions/checkout@v4
15-
16-
- name: Set up QEMU for multi-arch builds
17-
uses: docker/setup-qemu-action@v3
18-
19-
- name: Set up Docker Buildx
20-
uses: docker/setup-buildx-action@v3
21-
22-
- name: Install build tools
23-
run: |
24-
sudo apt-get update
25-
sudo apt-get install -y shc gcc
26-
27-
- name: Compile script for ${{ matrix.arch }}
28-
run: |
29-
mkdir -p dist
30-
shc -f codjixd.sh -o ./dist/codjixd-linux-${{ matrix.arch }}
31-
32-
- name: Verify binaries
33-
run: |
34-
./dist/codjixd-linux-${{ matrix.arch }} --version
35-
36-
- name: Draft a new release
37-
uses: softprops/action-gh-release@v2
38-
with:
39-
draft: true
40-
files: |
41-
dist/codjixd-linux-*
1+
name: Build Codjixd Docker Image
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Login to Docker Hub
11+
uses: docker/login-action@v3
12+
with:
13+
username: ${{ vars.DOCKERHUB_USERNAME }}
14+
password: ${{ secrets.DOCKERHUB_TOKEN }}
15+
16+
- name: Set up QEMU for multi-arch builds
17+
uses: docker/setup-qemu-action@v3
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
22+
- name: Build and push
23+
uses: docker/build-push-action@v6
24+
with:
25+
file: ./Dockerfile
26+
platforms: linux/amd64,linux/arm64,linux/386
27+
push: true
28+
tags: |
29+
codjix/codjixd:latest
30+
codjix/codjixd:1.0.1

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
dist
1+
dist
22
tests

AUTHORS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Ibrahim Megahed <admin@codjix.me>
1+
Ibrahim Megahed <admin@codjix.me>

CHANGES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
3+
## `1.0.1` - 2025/01/11
4+
5+
- `New` Docker image for Codjixd.
6+
- `New` Kill command to stop services and their dependencies recursively.
7+
- `New` New alias: `ls` for the `list` command.
8+
- `Fix` Each dependency has its own session now, to allow stopping the optional dependencies withowt affecting the main process tree.
9+
- `Fix` Health check loop is delayed 5 seconds by default to avoid high CPU usage.
10+
- `Fix` Health check logs are directed to logs file.
11+
- `Fix` Major update to the logs command and enable the access to old logs.

CONTRIBUTING.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
# Contributing to Codjixd
2-
3-
Thank you for considering contributing to Codjixd! We appreciate your support.
4-
5-
## How to Contribute
6-
7-
### Reporting Bugs
8-
9-
If you find a bug, please report it by opening an issue on our [GitHub Issues](https://github.com/codjix/codjixd/issues) page. Include as much detail as possible to help us understand and resolve the issue quickly.
10-
11-
### Suggesting Features
12-
13-
We welcome suggestions for new features. Please open an issue on our [GitHub Issues](https://github.com/codjix/codjixd/issues) page and describe the feature you would like to see, along with any relevant use cases.
14-
15-
### Submitting Pull Requests
16-
17-
1. Fork the repository.
18-
2. Create a new branch for your feature or bugfix.
19-
3. Make your changes in the new branch.
20-
4. Ensure your code follows our coding standards and passes all tests.
21-
5. Commit your changes and push the branch to your fork.
22-
6. Open a pull request on our [GitHub Pull Requests](https://github.com/codjix/codjixd/pulls) page.
23-
24-
### Code Style
25-
26-
Please follow the coding style used in the project. This helps maintain consistency and readability.
27-
28-
### Testing
29-
30-
Ensure that your changes do not break existing tests and add new tests for any new functionality.
31-
32-
## Contact
33-
34-
If you have any questions, feel free to reach out to the maintainers or open an issue.
35-
36-
Thank you for contributing!
1+
# Contributing to Codjixd
2+
3+
Thank you for considering contributing to Codjixd! We appreciate your support.
4+
5+
## How to Contribute
6+
7+
### Reporting Bugs
8+
9+
If you find a bug, please report it by opening an issue on our [GitHub Issues](https://github.com/codjix/codjixd/issues) page. Include as much detail as possible to help us understand and resolve the issue quickly.
10+
11+
### Suggesting Features
12+
13+
We welcome suggestions for new features. Please open an issue on our [GitHub Issues](https://github.com/codjix/codjixd/issues) page and describe the feature you would like to see, along with any relevant use cases.
14+
15+
### Submitting Pull Requests
16+
17+
1. Fork the repository.
18+
2. Create a new branch for your feature or bugfix.
19+
3. Make your changes in the new branch.
20+
4. Ensure your code follows our coding standards and passes all tests.
21+
5. Commit your changes and push the branch to your fork.
22+
6. Open a pull request on our [GitHub Pull Requests](https://github.com/codjix/codjixd/pulls) page.
23+
24+
### Code Style
25+
26+
Please follow the coding style used in the project. This helps maintain consistency and readability.
27+
28+
### Testing
29+
30+
Ensure that your changes do not break existing tests and add new tests for any new functionality.
31+
32+
## Contact
33+
34+
If you have any questions, feel free to reach out to the maintainers or open an issue.
35+
36+
Thank you for contributing!

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM alpine:3.20
2+
3+
ARG BIN="/usr/bin/codjixd"
4+
ARG SCRIPT="https://dub.sh/codjixd"
5+
ARG VERSION="1.0.1"
6+
7+
LABEL maintainer="Ibrahim Megahed <admin@codjix.me>" \
8+
org.opencontainers.image.title="codjixd" \
9+
org.opencontainers.image.description="A lightweight and flexible service manager for Linux systems." \
10+
org.opencontainers.image.authors="Ibrahim Megahed <admin@codjix.me>" \
11+
org.opencontainers.image.version="${VERSION}"
12+
13+
RUN apk add --no-cache bash procps less && \
14+
mkdir -p /opt/codjixd/services && \
15+
wget ${SCRIPT} -O ${BIN} && \
16+
chmod 777 ${BIN}

LICENSE

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
MIT License
2-
3-
Copyright (c) 2025 Ibrahim Megahed
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
1+
MIT License
2+
3+
Copyright (c) 2025 Ibrahim Megahed
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)