Sign inSign up

stmlab/dos2unix

By stmlab

•Updated about 7 hours ago

Utility on-build image extracting all files from a given archive and executing dos2unix on them.

Image
Integration & delivery
Developer tools
Databases & storage
0

5.0K

stmlab/dos2unix repository overview

⁠On-build image dos2unix

This repository contains a small utility on-build docker image to automatically extract an archive while executing 'dos2unix' on every file within it. It is used to create the source code snapshots in stmlab/codebase⁠.

⁠Example

Pull the docker image using the following command and replace [tag] with the specific variant you want to use:

# Modifiable output directory. Defaults to mnt.
ARG OUTPUT=mnt

# Refer to onbuild image version of dos2unix. Must already be present within the current scope.
FROM docker.io/stmlab/dos2unix:onbuild as dos2unix-onbuild

# Prevent output variable from getting out of scope.
ARG OUTPUT

# Unpack a given archive on-build in a fresh image instance.
FROM docker.io/library/busybox:latest as unpack-on-build

# Prevent output variable from getting out of scope.
ARG OUTPUT

# Copy everything from extracted archive into a standalone image.
COPY --link --chmod=655 --from=dos2unix-onbuild $OUTPUT $OUTPUT

⁠Contact

Tag summary

Content type

Image

Digest

sha256:58b7c3398…

Size

80.5 MB

Last updated

about 7 hours ago

docker pull stmlab/dos2unix:onbuild