Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,27 @@ FROM openjdk:8
COPY --from=builder /app/ami3/target/ /bin/ami3/
ENV PATH /bin/ami3/appassembler/bin/:${PATH}

# install npm and getpapers package, partly based on https://gist.github.com/remarkablemark/aacf14c29b3f01d6900d13137b21db3a
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 7.10.1
WORKDIR $NVM_DIR

#ARG DEBIAN_FRONTEND=noninteractive
#RUN apt-get update && apt-get install -y --no-install-recommends tzdata && \
# apt-get clean
RUN wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash

RUN source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default

ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH

RUN npm install --global getpapers

VOLUME [ "/workspace" ]
WORKDIR /workspace

Expand Down
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ mvn install -Dmaven.test.skip=true

will not run any tests.

## Building Docker image
## Running tools based on Docker image

You can also build a Docker image based:

Expand Down Expand Up @@ -83,6 +83,20 @@ Services include
[...]
```

The Docker image includes the [`getpapers`](https://www.npmjs.com/package/getpapers) tool:

```bash
$ docker run --rm -it ami3 getpapers --help

Usage: getpapers [options]

Options:

-h, --help output usage information
-V, --version output the version number
[..]
```

## Contributing to development

If you're interested in contributing please take a look at: [CONTRIBUTING.md](CONTRIBUTING.md)
Expand Down