Skip to content

Commit b34bea0

Browse files
committed
refactor(project)!: rename repository to mkdev
1 parent 9819c23 commit b34bea0

36 files changed

+278
-278
lines changed

Diff for: CHANGELOG.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# Changelog
22

3-
## [0.1.0](https://github.com/ttybitnik/mkdevenv/compare/v0.1.0...v0.1.0) (2025-01-11)
3+
## [0.1.0](https://github.com/ttybitnik/mkdev/compare/v0.1.0...v0.1.0) (2025-01-11)
44

55

66
### Features
77

8-
* **ansible:** add fedora boilerplates ([0a75bcb](https://github.com/ttybitnik/mkdevenv/commit/0a75bcbe55fa54fde94f80cdb23e59d4aa20a53a))
9-
* **bash:** add community boilerplates ([ee75f39](https://github.com/ttybitnik/mkdevenv/commit/ee75f3911d1253bfedd55e65a6602d0d6134a511))
10-
* **bash:** add fedora boilerplates ([5dc2bd5](https://github.com/ttybitnik/mkdevenv/commit/5dc2bd534bde403f62366919c55d11955946fe87))
11-
* **c:** add fedora boilerplates ([c85d227](https://github.com/ttybitnik/mkdevenv/commit/c85d227a12e7bf6c359a5b7853d0f7814667efe8))
12-
* **go:** add community boilerplates ([7cd37c8](https://github.com/ttybitnik/mkdevenv/commit/7cd37c8ff1c05a8765acb3c65be65b57e4a0dd82))
13-
* **go:** add fedora boilerplates ([790e329](https://github.com/ttybitnik/mkdevenv/commit/790e329ad58aa5dc161cbb16f993136947d39070))
14-
* **guile:** add fedora boilerplates ([e42f5c6](https://github.com/ttybitnik/mkdevenv/commit/e42f5c62a176e7db1efe23abc79c4f96e8319c73))
15-
* **lua:** add fedora boilerplates ([70354f5](https://github.com/ttybitnik/mkdevenv/commit/70354f50740d3b90fd613aab338d7beaae3289d1))
16-
* **omni:** add fedora boilerplates ([e994862](https://github.com/ttybitnik/mkdevenv/commit/e994862a7741b249e8e57af1ec679b5c3419d909))
17-
* **project:** initial commit ([e1a9ccf](https://github.com/ttybitnik/mkdevenv/commit/e1a9ccf828850bf66aa8f9e71c2ed07e77b714f8))
8+
* **ansible:** add fedora boilerplates ([0a75bcb](https://github.com/ttybitnik/mkdev/commit/0a75bcbe55fa54fde94f80cdb23e59d4aa20a53a))
9+
* **bash:** add community boilerplates ([ee75f39](https://github.com/ttybitnik/mkdev/commit/ee75f3911d1253bfedd55e65a6602d0d6134a511))
10+
* **bash:** add fedora boilerplates ([5dc2bd5](https://github.com/ttybitnik/mkdev/commit/5dc2bd534bde403f62366919c55d11955946fe87))
11+
* **c:** add fedora boilerplates ([c85d227](https://github.com/ttybitnik/mkdev/commit/c85d227a12e7bf6c359a5b7853d0f7814667efe8))
12+
* **go:** add community boilerplates ([7cd37c8](https://github.com/ttybitnik/mkdev/commit/7cd37c8ff1c05a8765acb3c65be65b57e4a0dd82))
13+
* **go:** add fedora boilerplates ([790e329](https://github.com/ttybitnik/mkdev/commit/790e329ad58aa5dc161cbb16f993136947d39070))
14+
* **guile:** add fedora boilerplates ([e42f5c6](https://github.com/ttybitnik/mkdev/commit/e42f5c62a176e7db1efe23abc79c4f96e8319c73))
15+
* **lua:** add fedora boilerplates ([70354f5](https://github.com/ttybitnik/mkdev/commit/70354f50740d3b90fd613aab338d7beaae3289d1))
16+
* **omni:** add fedora boilerplates ([e994862](https://github.com/ttybitnik/mkdev/commit/e994862a7741b249e8e57af1ec679b5c3419d909))
17+
* **project:** initial commit ([e1a9ccf](https://github.com/ttybitnik/mkdev/commit/e1a9ccf828850bf66aa8f9e71c2ed07e77b714f8))

Diff for: Devenv.mk renamed to Dev.mk

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
# MKDEVENV 0.1.0 (x-release-please-version)
2-
# See <https://github.com/ttybitnik/mkdevenv> for more information.
1+
# MKDEV 0.1.0 (x-release-please-version)
2+
# See <https://github.com/ttybitnik/mkdev> for more information.
33

44
PROJECT_NAME = changeme
55
CONTAINER_ENGINE = changeme
66

77
__USER = $(or $(USER),$(shell whoami))
88

99
# Host targets/commands
10-
.PHONY: devenv start stop clean serestore
10+
.PHONY: dev start stop clean serestore
1111

12-
devenv:
12+
dev:
1313
$(info Building development container image...)
1414

1515
$(CONTAINER_ENGINE) build \
1616
--build-arg USERNAME=$(__USER) \
17-
-f .mkdevenv/Containerfile \
18-
-t localhost/mkdevenv/$(PROJECT_NAME) \
17+
-f .mkdev/Containerfile \
18+
-t localhost/mkdev/$(PROJECT_NAME) \
1919
.
2020

2121
start:
2222
$(info Starting development container...)
2323

2424
$(CONTAINER_ENGINE) run -it -d --replace \
2525
$(if $(filter podman,$(CONTAINER_ENGINE)),--userns=keep-id) \
26-
--name mkdevenv-$(PROJECT_NAME) \
26+
--name mkdev-$(PROJECT_NAME) \
2727
--volume .:/home/$(__USER)/workspace:Z \
28-
localhost/mkdevenv/$(PROJECT_NAME):latest
28+
localhost/mkdev/$(PROJECT_NAME):latest
2929

30-
@# $(CONTAINER_ENGINE) compose .mkdevenv/compose.yaml up -d
30+
@# $(CONTAINER_ENGINE) compose .mkdev/compose.yaml up -d
3131

3232
stop:
3333
$(info Stopping development container...)
3434

35-
$(CONTAINER_ENGINE) stop mkdevenv-$(PROJECT_NAME)
35+
$(CONTAINER_ENGINE) stop mkdev-$(PROJECT_NAME)
3636

37-
@# $(CONTAINER_ENGINE) compose .mkdevenv/compose.yaml down
37+
@# $(CONTAINER_ENGINE) compose .mkdev/compose.yaml down
3838

3939
clean: distclean
4040
$(info Removing development container and image...)
4141

42-
-$(CONTAINER_ENGINE) rm mkdevenv-$(PROJECT_NAME)
43-
-$(CONTAINER_ENGINE) image rm localhost/mkdevenv/$(PROJECT_NAME)
42+
-$(CONTAINER_ENGINE) rm mkdev-$(PROJECT_NAME)
43+
-$(CONTAINER_ENGINE) image rm localhost/mkdev/$(PROJECT_NAME)
4444

4545
@# $(CONTAINER_ENGINE) image prune
4646

Diff for: Omni.mk

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# MKDEVENV 0.1.0 (x-release-please-version)
2-
# See <https://github.com/ttybitnik/mkdevenv> for more information.
1+
# MKDEV 0.1.0 (x-release-please-version)
2+
# See <https://github.com/ttybitnik/mkdev> for more information.
33

44
OMNI_NAME = changeme
55
CONTAINER_ENGINE = changeme
@@ -8,42 +8,42 @@ __USER = $(or $(USER),$(shell whoami))
88
__AFFIX = omni-$(OMNI_NAME)
99

1010
# Host targets/commands
11-
.PHONY: devenv start stop clean serestore
11+
.PHONY: dev start stop clean serestore
1212

13-
devenv:
13+
dev:
1414
$(info Building development container image...)
1515

1616
$(CONTAINER_ENGINE) build \
1717
--build-arg USERNAME=$(__USER) \
18-
-f .mkdevenv/Containerfile \
19-
-t localhost/mkdevenv/$(__AFFIX) \
18+
-f .mkdev/Containerfile \
19+
-t localhost/mkdev/$(__AFFIX) \
2020
.
2121

2222
start:
2323
$(info Starting development container...)
2424

2525
$(CONTAINER_ENGINE) run -it -d --replace \
2626
$(if $(filter podman,$(CONTAINER_ENGINE)),--userns=keep-id) \
27-
--name mkdevenv-$(__AFFIX) \
27+
--name mkdev-$(__AFFIX) \
2828
--volume .:/home/$(__USER)/workspace:Z \
29-
--volume mkdevenv-$(__AFFIX)-cache:/home/$(__USER)/.local \
30-
localhost/mkdevenv/$(__AFFIX):latest
29+
--volume mkdev-$(__AFFIX)-cache:/home/$(__USER)/.local \
30+
localhost/mkdev/$(__AFFIX):latest
3131

32-
@# $(CONTAINER_ENGINE) compose .mkdevenv/compose.yaml up -d
32+
@# $(CONTAINER_ENGINE) compose .mkdev/compose.yaml up -d
3333

3434
stop:
3535
$(info Stopping development container...)
3636

37-
$(CONTAINER_ENGINE) stop mkdevenv-$(__AFFIX)
37+
$(CONTAINER_ENGINE) stop mkdev-$(__AFFIX)
3838

39-
@# $(CONTAINER_ENGINE) compose .mkdevenv/compose.yaml down
39+
@# $(CONTAINER_ENGINE) compose .mkdev/compose.yaml down
4040

4141
clean: distclean
4242
$(info Removing development container and image...)
4343

44-
-$(CONTAINER_ENGINE) rm mkdevenv-$(__AFFIX)
45-
-$(CONTAINER_ENGINE) image rm localhost/mkdevenv/$(__AFFIX)
46-
-$(CONTAINER_ENGINE) volume rm mkdevenv-$(__AFFIX)-cache
44+
-$(CONTAINER_ENGINE) rm mkdev-$(__AFFIX)
45+
-$(CONTAINER_ENGINE) image rm localhost/mkdev/$(__AFFIX)
46+
-$(CONTAINER_ENGINE) volume rm mkdev-$(__AFFIX)-cache
4747

4848
@# $(CONTAINER_ENGINE) image prune
4949

Diff for: README.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# mkdevenv: consistent, isolated development
1+
# mkdev: consistent, isolated development
22

3-
**mkdevenv** is a personal collection of OCI-compliant container image boilerplates for managing isolated development environments using GNU Make.
3+
**mkdev** is a personal collection of OCI-compliant container image boilerplates for managing isolated development environments using GNU Make.
44

55
It enables a **consistent**, **open**, and **extensible** workflow by using `Containerfile` and `Makefile` as the standard points of entry. Dependencies and tools are packaged in a custom container, providing isolation and replicability of the development environment while still integrating with the `$EDITOR` on the host system.
66

77
> "Don't let the development dependency hell mess with your files and processes. Containerize the development environment!"
88
> [Tower Guardian](https://imgflip.com/i/9gc41r), in a new take.
99
10-
[![release](https://img.shields.io/github/v/release/ttybitnik/mkdevenv)](https://github.com/ttybitnik/mkdevenv/releases/latest)
11-
[![ci/cd](https://github.com/ttybitnik/mkdevenv/actions/workflows/cicd.yaml/badge.svg)](https://github.com/ttybitnik/mkdevenv/actions/workflows/cicd.yaml)
10+
[![release](https://img.shields.io/github/v/release/ttybitnik/mkdev)](https://github.com/ttybitnik/mkdev/releases/latest)
11+
[![ci/cd](https://github.com/ttybitnik/mkdev/actions/workflows/cicd.yaml/badge.svg)](https://github.com/ttybitnik/mkdev/actions/workflows/cicd.yaml)
1212
[![conventional commits](https://img.shields.io/badge/conventional%20commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white)](https://conventionalcommits.org)
1313

1414
**Example of resources on host system**:
@@ -43,15 +43,15 @@ It enables a **consistent**, **open**, and **extensible** workflow by using `Con
4343

4444
### Setup
4545

46-
1. **Create a `.mkdevenv` directory** at the root of the project or environment. Only files within this path will be shared with the container.
47-
1. **Copy the appropriate files from the [boilerplates](boilerplates/) directory** into the `.mkdevenv` directory—for example, the [ansible-fedora](boilerplates/ansible/fedora) development environment. Clone the **mkdevenv** repository to streamline this process.
48-
1. **Move the `Makefile`** from the `.mkdevenv` directory to the root of the project or environment.
46+
1. **Create a `.mkdev` directory** at the root of the project or environment. Only files within this path will be shared with the container.
47+
1. **Copy the appropriate files from the [boilerplates](boilerplates/) directory** into the `.mkdev` directory—for example, the [ansible-fedora](boilerplates/ansible/fedora) development environment. Clone the **mkdev** repository to streamline this process.
48+
1. **Move the `Makefile`** from the `.mkdev` directory to the root of the project or environment.
4949
1. **Edit the `Makefile`** and adjust variables with `changeme` values. These variables are used for naming, managing, and running the container.
5050

5151
#### Per-project example
5252
```
5353
project/
54-
├── .mkdevenv/
54+
├── .mkdev/
5555
│ ├── Containerfile
5656
│ ├── README.md
5757
│ ├── dnf.txt
@@ -62,7 +62,7 @@ project/
6262
#### Multi-project (omni) example
6363
```
6464
repositories/
65-
├── .mkdevenv/
65+
├── .mkdev/
6666
│ ├── Containerfile
6767
│ ├── README.md
6868
│ ├── apt.txt
@@ -78,10 +78,10 @@ repositories/
7878

7979
#### Default commands on host system
8080

81-
- **`make devenv`**: Build the container image defined in `.mkdevenv/Containerfile`.
82-
- **`make start`**: Start the mkdevenv container, passing the current working directory as a bind mount.
83-
- **`make stop`**: Stop the mkdevenv container.
84-
- **`make clean`**: Remove the mkdevenv container and its artifacts. Executes the `distclean` target first.
81+
- **`make devenv`**: Build the container image defined in `.mkdev/Containerfile`.
82+
- **`make start`**: Start the mkdev container, passing the current working directory as a bind mount.
83+
- **`make stop`**: Stop the mkdev container.
84+
- **`make clean`**: Remove the mkdev container and its artifacts. Executes the `distclean` target first.
8585
- **`make serestore`**: Restore project files context on SELinux host systems.
8686

8787
#### Custom commands inside the container
@@ -140,22 +140,22 @@ In worst-case scenarios, SSH protocol can also be used.
140140

141141
## Contributing
142142

143-
In case of unexpected behavior, please open a [bug report](https://github.com/ttybitnik/mkdevenv/issues/new?assignees=&labels=bug&projects=&template=bug_report.md&title=).
143+
In case of unexpected behavior, please open a [bug report](https://github.com/ttybitnik/mkdev/issues/new?assignees=&labels=bug&projects=&template=bug_report.md&title=).
144144

145145
For matters requiring privacy, such as security-related reports or patches, check the [security policy](SECURITY.md).
146146

147-
To contribute to **mkdevenv** boilerplates, see the [project guidelines](boilerplates/README.md).
147+
To contribute to **mkdev** boilerplates, see the [project guidelines](boilerplates/README.md).
148148

149149
### Mailing list
150150

151151
[Email workflow](https://git-send-email.io/) is also available.
152152

153-
Feel free to send patches, questions, or discussions related to **mkdevenv** to the [~ttybitnik/general mailing list](https://lists.sr.ht/~ttybitnik/general).
153+
Feel free to send patches, questions, or discussions related to **mkdev** to the [~ttybitnik/general mailing list](https://lists.sr.ht/~ttybitnik/general).
154154

155155
## License
156156

157157
This project is licensed under the GNU General Public License v3.0 (GPL-3.0), **unless an exception is made explicit in context**. See the `COPYING` file for more information.
158158

159159
Be aware that the resulting container images may include other software subject to additional licenses, such as the base operating system, shells, and any direct or indirect dependencies of the software being contained. As with any built container image, it is the user's responsibility to ensure their use of the image complies with all relevant licenses for the software contained within.
160160

161-
The source code for this project is available at <https://github.com/ttybitnik/mkdevenv>.
161+
The source code for this project is available at <https://github.com/ttybitnik/mkdev>.

Diff for: boilerplates/README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
## Containerfile
1111

12-
- **`ARG`**: Build-time argument for specifying the `USERNAME` (default value: `mkdevenv`).
12+
- **`ARG`**: Build-time argument for specifying the `USERNAME` (default value: `mkdev`).
1313
- **`LABEL`**: Metadata instruction including `name`, `summary`, and `usage` information.
1414
- **`RUN`**: Commands for setting up the environment, including installing the **packages files**, removing cache files, and creating the non-root user.
1515
- **`WORKDIR`**: Path to the project files inside the container `/home/$USERNAME/workspace`.
@@ -32,12 +32,12 @@
3232

3333
- **`PROJECT_NAME`**: Suffix for container and image names, restricted to letters, numbers, underscores, dots, and hyphens `[a-zA-Z0-9][a-zA-Z0-9_.-]*` (default value: `changeme`).
3434
- **`CONTAINER_ENGINE`**: Command for running the container engine, such as `podman` or `docker` (default value: `changeme`).
35-
- Development image names with complete address format, including `localhost`, and `mkdevenv` as the namespace (e.g., `localhost/mkdevenv/$(PROJECT_NAME)`).
36-
- Development container names prefixed with `mkdevenv-` to avoid conflicts (e.g., `mkdevenv-$(PROJECT_NAME)`).
35+
- Development image names with complete address format, including `localhost`, and `mkdev` as the namespace (e.g., `localhost/mkdev/$(PROJECT_NAME)`).
36+
- Development container names prefixed with `mkdev-` to avoid conflicts (e.g., `mkdev-$(PROJECT_NAME)`).
3737

3838
### Host targets/commands
3939

40-
- **`devenv`**: Target for building the development container image.
40+
- **`dev`**: Target for building the development container image.
4141
- **`start`**: Target for starting the container.
4242
- **`stop`**: Target for stopping the container.
4343
- **`clean`**: Target for removing the container and image.
@@ -59,11 +59,11 @@
5959
- Table describing the packages installed through **packages files** for each package manager.
6060
- Basic three-steps instructions with a link for further details:
6161
```text
62-
1. Create a `.mkdevenv` directory at the root of the project.
63-
2. Copy the boilerplate files into the `.mkdevenv` directory.
62+
1. Create a `.mkdev` directory at the root of the project.
63+
2. Copy the boilerplate files into the `.mkdev` directory.
6464
3. Move the `Makefile` to the root of the project.
6565
66-
*For more information, see <https://github.com/ttybitnik/mkdevenv>.*
66+
*For more information, see <https://github.com/ttybitnik/mkdev>.*
6767
```
6868

6969
## Complete example
@@ -77,7 +77,7 @@ For a complete example, refer to any of the existing boilerplate files, such as
7777

7878
To ensure your changes follow the guidelines, run `./linter.sh`.
7979

80-
The files `./Devenv.mk` (per-project) and `./Omni.mk` (multi-project) are the source of truth for each approach. Changes to these files, up to the `# Container targets/commands` section, can be propagated to the boilerplates by running `./update-makefiles.sh`.
80+
The files `./Dev.mk` (per-project) and `./Omni.mk` (multi-project) are the source of truth for each approach. Changes to these files, up to the `# Container targets/commands` section, can be propagated to the boilerplates by running `./update-makefiles.sh`.
8181

8282
To streamline this process in one step, run:
8383

Diff for: boilerplates/ansible/fedora/Containerfile

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# MKDEVENV 0.1.0 (x-release-please-version)
1+
# MKDEV 0.1.0 (x-release-please-version)
22
FROM docker.io/fedora:latest
33

4-
ARG USERNAME=mkdevenv
4+
ARG USERNAME=mkdev
55

6-
LABEL mkdevenv.name="ansible-fedora" \
7-
mkdevenv.summary="Image with general tools for developing Ansible-related projects" \
8-
mkdevenv.usage="For more information, see <https://github.com/ttybitnik/mkdevenv>"
6+
LABEL mkdev.name="ansible-fedora" \
7+
mkdev.summary="Image with general tools for developing Ansible-related projects" \
8+
mkdev.usage="For more information, see <https://github.com/ttybitnik/mkdev>"
99

10-
COPY .mkdevenv/*.txt /tmp/
10+
COPY .mkdev/*.txt /tmp/
1111

1212
RUN dnf update -y && xargs -n 1 dnf install -y < /tmp/dnf.txt && dnf clean all \
1313
&& adduser $USERNAME \

Diff for: boilerplates/ansible/fedora/Makefile

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
# MKDEVENV 0.1.0 (x-release-please-version)
2-
# See <https://github.com/ttybitnik/mkdevenv> for more information.
1+
# MKDEV 0.1.0 (x-release-please-version)
2+
# See <https://github.com/ttybitnik/mkdev> for more information.
33

44
PROJECT_NAME = changeme
55
CONTAINER_ENGINE = changeme
66

77
__USER = $(or $(USER),$(shell whoami))
88

99
# Host targets/commands
10-
.PHONY: devenv start stop clean serestore
10+
.PHONY: dev start stop clean serestore
1111

12-
devenv:
12+
dev:
1313
$(info Building development container image...)
1414

1515
$(CONTAINER_ENGINE) build \
1616
--build-arg USERNAME=$(__USER) \
17-
-f .mkdevenv/Containerfile \
18-
-t localhost/mkdevenv/$(PROJECT_NAME) \
17+
-f .mkdev/Containerfile \
18+
-t localhost/mkdev/$(PROJECT_NAME) \
1919
.
2020

2121
start:
2222
$(info Starting development container...)
2323

2424
$(CONTAINER_ENGINE) run -it -d --replace \
2525
$(if $(filter podman,$(CONTAINER_ENGINE)),--userns=keep-id) \
26-
--name mkdevenv-$(PROJECT_NAME) \
26+
--name mkdev-$(PROJECT_NAME) \
2727
--volume .:/home/$(__USER)/workspace:Z \
28-
localhost/mkdevenv/$(PROJECT_NAME):latest
28+
localhost/mkdev/$(PROJECT_NAME):latest
2929

30-
@# $(CONTAINER_ENGINE) compose .mkdevenv/compose.yaml up -d
30+
@# $(CONTAINER_ENGINE) compose .mkdev/compose.yaml up -d
3131

3232
stop:
3333
$(info Stopping development container...)
3434

35-
$(CONTAINER_ENGINE) stop mkdevenv-$(PROJECT_NAME)
35+
$(CONTAINER_ENGINE) stop mkdev-$(PROJECT_NAME)
3636

37-
@# $(CONTAINER_ENGINE) compose .mkdevenv/compose.yaml down
37+
@# $(CONTAINER_ENGINE) compose .mkdev/compose.yaml down
3838

3939
clean: distclean
4040
$(info Removing development container and image...)
4141

42-
-$(CONTAINER_ENGINE) rm mkdevenv-$(PROJECT_NAME)
43-
-$(CONTAINER_ENGINE) image rm localhost/mkdevenv/$(PROJECT_NAME)
42+
-$(CONTAINER_ENGINE) rm mkdev-$(PROJECT_NAME)
43+
-$(CONTAINER_ENGINE) image rm localhost/mkdev/$(PROJECT_NAME)
4444

4545
@# $(CONTAINER_ENGINE) image prune
4646

Diff for: boilerplates/ansible/fedora/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
| python3-pip | | |
1111
| ansible-core | | |
1212

13-
1. Create a `.mkdevenv` directory at the root of the project.
14-
2. Copy all the boilerplate files into the `.mkdevenv` directory.
13+
1. Create a `.mkdev` directory at the root of the project.
14+
2. Copy all the boilerplate files into the `.mkdev` directory.
1515
3. Move the `Makefile` to the root of the project.
1616

17-
*For more information, see <https://github.com/ttybitnik/mkdevenv>.*
17+
*For more information, see <https://github.com/ttybitnik/mkdev>.*

0 commit comments

Comments
 (0)