Skip to content

wayofdev/docker-build-deps

Repository files navigation




Build Status Latest Version Docker Pulls Software License Commits since latest release

Docker Image: Build Dependencies

Repository contains docker image with build dependencies for WOD projects.

Installed and enabled packages in this image:

Package Type Description
git apk
bash apk
unzip apk
nano apk
ca-certificates apk
tzdata apk
curl apk
bash apk
gettext (envsubst) apk
make apk
tar apk
gzip apk
bzip2 apk
gnupg apk
net-tools apk
goss bin Quick and Easy server testing / validation
dgoss bin Wrapper around goss to perform tests on docker containers
dcgoss bin Uses docker-compose file instead of passing docker run args
wait4x bin Allows to wait for a port or a service to enter the requested state

If you like/use this repository, please consider starring it. Thanks!


🔧 Configuration

Ansible is used to generate distribution files. To add or remove packages, or configure project, see group_vars/all.yml

Default package configuration:

docker_version: "20.10.21"

system_packages:
  - git
  - bash
  - unzip
  - nano
  - ca-certificates
  - tzdata
  - curl
  - bash
  - gettext
  - make
  - tar
  - gzip
  - bzip2
  - gnupg
  - net-tools

system_user: wod
system_group: wod
system_user_uid: 1000
system_user_gid: 1000
system_shell: bash

goss_version: "0.3.20"

To generate dist files use ansible command:

$ make generate

⚙️ Development

To install dependencies and start development you can check contents of our Makefile

→ Requirments

For testing purposes we use goss and dgoss, follow installation instructions on their official README


→ Building locally

Generating distributable Dockerfiles from yaml source code:

$ make generate

Building default image:

$ git clone git@github.com:wayofdev/docker-build-deps.git
$ make build

To build image, test it and then clean temporary files run:

$ make

🧪 Testing

You can check Makefile to get full list of commands for local testing. For testing you can use these comands to test whole role or separate tasks:

Testing default image:

$ make test

→ Code quality tools

Run yamllint to validate all yaml files in project:

$ make lint

Run hadolint to validate created Dockerfiles:

$ make hadolint

🤝 License

Licence


🙆🏼‍♂️ Author Information

This repository was created in 2022 by lotyp / wayofdev.


🫡 Contributors


About

Docker image with build dependencies for WoD projects

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 3

  •  
  •  
  •