Browse Source

Merge branch 'master' of github.com:Plume-org/amsterdam

master
Baptiste Gelez 2 years ago
parent
commit
dad33831db
2 changed files with 39 additions and 2 deletions
  1. +39
    -0
      Dockerfile
  2. +0
    -2
      README.md

+ 39
- 0
Dockerfile View File

@@ -0,0 +1,39 @@
# Build: https://github.com/Plume-org/amsterdam
# Run: docker run --rm -it -v $PWD:/conversion amsterdam:latest md /conversion/*.md
# $PWD is the current directory, assumed to contain the markdown files for conversion. Change if using a different directory.

FROM rust:1-stretch as builder

# Prep
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
gettext \
git \
curl \
gcc \
make \
openssl \
libssl-dev

# Install rust tools and dependencies ahead of build to improve layer caching
# No deps only in cargo so cheat a little
WORKDIR /scratch/amsterdam-deps
COPY Cargo.toml Cargo.lock rust-toolchain ./
RUN mkdir src && touch src/lib.rs && cargo build

# Build amsterdam
WORKDIR /scratch/amsterdam
COPY . .
RUN cargo install --path .

# Prep final container with amsterdam as the entrypoint
FROM debian:stretch-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
libssl1.1

COPY --from=builder /usr/local/cargo/bin/amsterdam /bin/
WORKDIR /conversion

CMD ["help"]
ENTRYPOINT ["/bin/bash", "-l", "-c", "amsterdam"]

+ 0
- 2
README.md View File

@@ -2,8 +2,6 @@

Import tool for Plume.

Note that this tool is still experimental and your Plume instance should run the `post-api` branch for the moment.

## Installing

Clone this repository and run:


Loading…
Cancel
Save