1
0
Fork 0

feat(container): install bunyan and jq for log parsing (#263)

* feat(container): install bunyan and jq for log parsing

* fix(docs): replace docker cloud link with paywall
This commit is contained in:
Sean Sube 2020-02-20 15:55:38 -06:00 committed by GitHub
parent 28215060fb
commit dd37262951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 3 deletions

View File

@ -1,5 +1,11 @@
FROM node:11-alpine
# dependencies: log filtering
RUN apk add --update jq \
&& rm -rf /var/cache/apk/* \
&& yarn global add bunyan
ENV PATH="${PATH}:$(yarn global bin)"
# copy config, which changes rarely
COPY docs/config-docker.yml /root/.salty-dog.yml
@ -14,7 +20,6 @@ COPY out/index.js /salty-dog/out/index.js
# set up as global cli tool
WORKDIR /salty-dog
RUN yarn global add file:$(pwd)
ENV PATH="${PATH}:$(yarn global bin)"
COPY rules /salty-dog/rules

View File

@ -1,5 +1,12 @@
FROM node:11-stretch
# dependencies: log filtering
RUN apt-get update -y \
&& apt-get install -y jq \
&& rm -rf /var/lib/apt/lists/* \
&& yarn global add bunyan
ENV PATH="${PATH}:$(yarn global bin)"
# copy config, which changes rarely
COPY docs/config-docker.yml /root/.salty-dog.yml
@ -14,7 +21,6 @@ COPY out/index.js /salty-dog/out/index.js
# set up as global cli tool
WORKDIR /salty-dog
RUN yarn global add file:$(pwd)
ENV PATH="${PATH}:$(yarn global bin)"
COPY rules /salty-dog/rules

View File

@ -145,7 +145,7 @@ docker build -t salty-dog:alpine -f Dockerfile.alpine .
To run with Docker: `docker run --rm ssube/salty-dog:master`
The latest semi-stable image is `ssube/salty-dog:master`. All
[tags are listed here](https://cloud.docker.com/repository/docker/ssube/salty-dog/tags).
[tags are listed here](https://hub.docker.com/r/ssube/salty-dog/tags).
The Docker container is published for each branch and git tag, tagged with the git tag (or branch slug).