Compare commits
15 Commits
472675ff16
...
main
Author | SHA1 | Date | |
---|---|---|---|
0067dcaf5a | |||
bdeb649e45 | |||
a32901dc3a | |||
f776bfbdba | |||
b2c519bed2 | |||
3a7eadd174 | |||
8455fa1bdb | |||
94a7251db0 | |||
ec2eb8386d | |||
9e3266e085 | |||
81c0652411 | |||
534958407f | |||
7f44edfa31 | |||
7ce9a4c259 | |||
638e9f7d46 |
34
.drone.yml
Normal file
34
.drone.yml
Normal file
|
@ -0,0 +1,34 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: build
|
||||
|
||||
steps:
|
||||
- name: generate-tags
|
||||
image: node
|
||||
commands:
|
||||
- echo -n "$(date +'%Y-%m-%d_%H-%M'), latest" > .tags
|
||||
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
depends_on:
|
||||
- clone
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: kingofdog/pandoc-latex
|
||||
#- name: docker-arm64
|
||||
# image: plugins/docker
|
||||
# depends_on:
|
||||
# - clone
|
||||
# settings:
|
||||
# platform: linux/arm64
|
||||
# dockerfile: Dockerfile.arm64
|
||||
# username:
|
||||
# from_secret: docker_username
|
||||
# password:
|
||||
# from_secret: docker_password
|
||||
# repo: kingofdog/pandoc-latex
|
||||
# tags:
|
||||
# - latest
|
35
Dockerfile
35
Dockerfile
|
@ -1,26 +1,25 @@
|
|||
FROM debian:buster-slim
|
||||
FROM texlive/texlive:latest
|
||||
|
||||
ARG PANDOC_VERSION=2.11.4
|
||||
ARG PANDOC_CROSSREF_VERSION=v0.3.9.1
|
||||
ARG PANDOC_VERSION=3.1.4
|
||||
ARG PANDOC_CROSSREF_VERSION=v0.3.16.0b
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get clean
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y wget xz-utils \
|
||||
&& mkdir download \
|
||||
&& cd download \
|
||||
&& wget --quiet https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz -O pandoc.tar.gz \
|
||||
&& wget --quiet https://github.com/lierdakil/pandoc-crossref/releases/download/${PANDOC_CROSSREF_VERSION}/pandoc-crossref-Linux.tar.xz -O pandoc-crossref.tar.xz \
|
||||
&& ls -l \
|
||||
&& apt-get install -y wget xz-utils
|
||||
RUN mkdir download \
|
||||
&& cd download
|
||||
RUN wget --quiet https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz -O pandoc.tar.gz
|
||||
RUN wget --quiet https://github.com/lierdakil/pandoc-crossref/releases/download/${PANDOC_CROSSREF_VERSION}/pandoc-crossref-Linux.tar.xz -O pandoc-crossref.tar.xz
|
||||
RUN ls -l \
|
||||
&& tar xf pandoc.tar.gz \
|
||||
&& tar xf pandoc-crossref.tar.xz \
|
||||
&& ls -l \
|
||||
&& mv pandoc-${PANDOC_VERSION}/bin/* /usr/bin/ \
|
||||
&& ls -l
|
||||
RUN mv pandoc-${PANDOC_VERSION}/bin/* /usr/bin/ \
|
||||
&& mv pandoc-crossref /usr/bin/ \
|
||||
&& cd .. \
|
||||
&& rm -rf download \
|
||||
&& apt-get install -y \
|
||||
git \
|
||||
texlive-full \
|
||||
python-pygments \
|
||||
python3-pygments \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
&& rm -rf download
|
||||
RUN apt-get install -y python3-pygments python3-pip inkscape
|
||||
RUN tlmgr update --self --all
|
||||
RUN tlmgr install tools ragged2e
|
||||
RUN rm -rf /var/lib/apt/lists/*
|
||||
|
|
25
Dockerfile.arm64
Normal file
25
Dockerfile.arm64
Normal file
|
@ -0,0 +1,25 @@
|
|||
FROM arm64v8/debian:bullseye-slim
|
||||
|
||||
ARG PANDOC_VERSION=3.0.1
|
||||
ARG PANDOC_CROSSREF_VERSION=v0.3.15.0
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y wget xz-utils
|
||||
RUN mkdir download \
|
||||
&& cd download
|
||||
RUN wget --quiet https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-arm64.tar.gz -O pandoc.tar.gz
|
||||
RUN wget --quiet https://github.com/lierdakil/pandoc-crossref/releases/download/${PANDOC_CROSSREF_VERSION}/pandoc-crossref-Linux.tar.xz -O pandoc-crossref.tar.xz
|
||||
RUN ls -l \
|
||||
&& tar xf pandoc.tar.gz \
|
||||
&& tar xf pandoc-crossref.tar.xz \
|
||||
&& ls -l
|
||||
RUN mv pandoc-${PANDOC_VERSION}/bin/* /usr/bin/ \
|
||||
&& mv pandoc-crossref /usr/bin/ \
|
||||
&& cd .. \
|
||||
&& rm -rf download
|
||||
RUN apt-get install -y \
|
||||
git \
|
||||
texlive-full \
|
||||
python3-pygments
|
||||
RUN rm -rf /var/lib/apt/lists/*
|
Loading…
Reference in New Issue
Block a user