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:
parent
28215060fb
commit
dd37262951
|
@ -1,5 +1,11 @@
|
||||||
FROM node:11-alpine
|
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 config, which changes rarely
|
||||||
COPY docs/config-docker.yml /root/.salty-dog.yml
|
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
|
# set up as global cli tool
|
||||||
WORKDIR /salty-dog
|
WORKDIR /salty-dog
|
||||||
RUN yarn global add file:$(pwd)
|
RUN yarn global add file:$(pwd)
|
||||||
ENV PATH="${PATH}:$(yarn global bin)"
|
|
||||||
|
|
||||||
COPY rules /salty-dog/rules
|
COPY rules /salty-dog/rules
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
FROM node:11-stretch
|
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 config, which changes rarely
|
||||||
COPY docs/config-docker.yml /root/.salty-dog.yml
|
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
|
# set up as global cli tool
|
||||||
WORKDIR /salty-dog
|
WORKDIR /salty-dog
|
||||||
RUN yarn global add file:$(pwd)
|
RUN yarn global add file:$(pwd)
|
||||||
ENV PATH="${PATH}:$(yarn global bin)"
|
|
||||||
|
|
||||||
COPY rules /salty-dog/rules
|
COPY rules /salty-dog/rules
|
||||||
|
|
||||||
|
|
|
@ -145,7 +145,7 @@ docker build -t salty-dog:alpine -f Dockerfile.alpine .
|
||||||
To run with Docker: `docker run --rm ssube/salty-dog:master`
|
To run with Docker: `docker run --rm ssube/salty-dog:master`
|
||||||
|
|
||||||
The latest semi-stable image is `ssube/salty-dog:master`. All
|
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).
|
The Docker container is published for each branch and git tag, tagged with the git tag (or branch slug).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue