cornet / ccze

ccze
GNU General Public License v2.0
409 stars 30 forks source link

fix: alpine compilation #14

Closed sylvainmouquet closed 4 years ago

sylvainmouquet commented 4 years ago

We use ccze in a docker alpine image

mcrmonkey commented 4 years ago

There is now a ccze package in edge/testing for alpine

If you have the time @sylvainmouquet i'd appreciate any testing you may be able to perform with that package

sylvainmouquet commented 4 years ago

There is now a ccze package in edge/testing for alpine

If you have the time @sylvainmouquet i'd appreciate any testing you may be able to perform with that package

it works:

docker run -it alpine:3.12 sh
apk add ccze --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted
echo "ok" | ccze -A

cat <<EOF > /var/log/test.log
2018-03-02T22:33:27-06:00 ERROR something happened in this execution.
2018-03-02T22:33:27-06:00 INFO takes the value and converts it to string.
2018-03-02T22:33:27-06:00 WARN variable not in use.
2018-03-02T22:33:27-06:00 DEBUG first loop completed
EOF

cat /var/log/test.log | ccze -A 
sylvainmouquet commented 4 years ago

i close the pull request