Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abogoyavlensky/docker

Useful docker images
https://github.com/abogoyavlensky/docker

Last synced: 5 days ago
JSON representation

Useful docker images

Awesome Lists containing this project

README

        

# Useful docker images

## Development

### Adding a new image

To add a new image to the repository you should add dir with image name.
The dir must contain the following files:

`Dockerfile` - actual docker file of an image.

`VERSION` - plain text version actual version of the image which will be used as a docker image tag.

`build.sh` - shell script mostly with single command starts with `docker build ...`.
Need to have the ability to customize build args for some images.

*Also you could add any other files which you would like to use at build step.*

### Update an existing image

After making some changes in one of image dirs you should update the version
in an appropriate `VERSION` file for an image.

*For example for cljstyle it is [VERSION](/cljstyle/VERSION).*

### Build a new version of an image

Then you could run building an image by its name to test it locally:

```shell
make build cljstyle
```

*Directory with image name should exist in the repository.*

### Publish a new version of an image

If you want to publish or just don't want to separate building and publishing steps
you could simply run:

```shell
make publish cljstyle
```

And the version of an image you bumped will be built and published to [Dockerhub](https://hub.docker.com/u/abogoyavlensky).

Also git tag with update image and version will be added and pushed to remote repository.

## TODO

- [ ] Add Github action to automatically publish a next version of a changed image on a commit to master.
- [ ] Add validation before build that `VERSION` should be changed.