-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add all required files for initial version
- Loading branch information
0 parents
commit bdbf51b
Showing
15 changed files
with
419 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# These are supported funding model platforms | ||
|
||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: # Replace with a single Patreon username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
custom: ['https://www.paypal.me/jaymoulin', 'https://www.buymeacoffee.com/3Yu8ajd7W', 'https://freewallet.org/id/374ad82e/btc', 'https://freewallet.org/id/374ad82e/ltc'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!-- | ||
If you are reporting a new issue, make sure that we do not have any duplicates | ||
already open. You can ensure this by searching the issue list for this | ||
repository. If there is a duplicate, please close your issue and add a comment | ||
to the existing issue instead. | ||
If you suspect your issue is a bug, please edit your issue description to | ||
include the BUG REPORT INFORMATION shown below. If you fail to provide this | ||
information within 7 days, we cannot debug your issue and will close it. We | ||
will, however, reopen it if you later provide the information. | ||
For more information about reporting issues, see | ||
https://github.com/femtopixel/docker-pdf2gdocs/blob/master/CONTRIBUTING.md | ||
You do NOT have to include this information if this is a FEATURE REQUEST | ||
If you find this useful, please consider starring the repo and/or donating. | ||
People showing interest attract more attention ;) | ||
--> | ||
|
||
**Description** | ||
|
||
<!-- | ||
Briefly describe the problem you are having in a few paragraphs. | ||
--> | ||
|
||
**Command line I used to start the container** | ||
|
||
**Steps to reproduce the issue:** | ||
1. | ||
2. | ||
3. | ||
|
||
**Describe the results you received:** | ||
|
||
|
||
**Describe the results you expected:** | ||
|
||
|
||
**Additional information you deem important (e.g. issue happens only occasionally):** | ||
|
||
**Provide some logs (`docker logs chrome`)** | ||
|
||
<details> | ||
<pre> | ||
(paste logs) | ||
</pre> | ||
</details> | ||
|
||
**Output of `docker inspect chrome --format='{{index .Config.Labels.version}}'`:** | ||
|
||
``` | ||
(paste your output here) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
*.egg-info | ||
/credentials.json | ||
/token.pickle | ||
/tmp/ | ||
/upload/ | ||
/qemu* | ||
/*.yaml | ||
/.build | ||
/pdf2gdocs/__pycache__/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
sudo: required | ||
|
||
dist: bionic | ||
|
||
services: | ||
- docker | ||
|
||
before_install: | ||
- sudo apt update && sudo apt install make -y | ||
- git clone https://github.com/estesp/manifest-tool && cd manifest-tool && git checkout v0.9.0 && sudo make && sudo make install && cd .. && rm -Rf manifest-tool | ||
- docker run --rm --privileged multiarch/qemu-user-static:register | ||
- sudo apt install -y qemu qemu-user-static qemu-user binfmt-support | ||
|
||
script: | ||
- echo "$DOCKER_HUB_PASSWORD" | docker login -u "$DOCKER_HUB_LOGIN" --password-stdin | ||
- make build | ||
|
||
deploy: | ||
provider: script | ||
script: | ||
- make publish latest | ||
on: | ||
branch: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
How to Contribute | ||
================= | ||
|
||
This project welcomes your contribution. There are several ways to help out: | ||
|
||
* Create an [issue](https://gitlab.com/femtopixel/docker-pdf2gdocs/issues/) on GitLab, | ||
if you have found a bug or have an idea for a feature | ||
* Write test cases for open bug issues | ||
* Write patches for open bug/feature issues | ||
|
||
There are a few guidelines that we need contributors to follow, so that we have a | ||
chance of keeping on top of things. | ||
|
||
Issues | ||
------ | ||
|
||
* Submit an [issue](https://gitlab.com/femtopixel/docker-pdf2gdocs/issues/) | ||
* Make sure it does not already exist. | ||
* Clearly describe the issue including steps to reproduce, when it is a bug. | ||
* Make sure you note the version you use. | ||
|
||
Additional Resources | ||
-------------------- | ||
|
||
* [Existing issues](https://gitlab.com/femtopixel/docker-pdf2gdocs/issues/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM python:alpine | ||
|
||
COPY . /app | ||
WORKDIR /app | ||
ARG VERSION=v1.0.0 | ||
LABEL maintainer="Jay MOULIN <[email protected]> <https://twitter.com/MoulinJay>" | ||
LABEL version=${VERSION} | ||
RUN apk add imagemagick --no-cache --update && pip install -e . | ||
CMD /app/pdf2gdocs/pdf2gdocs.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
The MIT License (MIT) | ||
Copyright (c) 2019 FemtoPixel | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
VERSION ?= 1.0.0 | ||
CACHE ?= --no-cache=1 | ||
FULLVERSION ?= 1.0.0 | ||
archs ?= amd64 arm32v6 arm64v8 i386 | ||
.PHONY: all build publish latest version | ||
all: build publish | ||
build: | ||
cp -R /usr/bin/qemu-*-static . | ||
$(foreach arch,$(archs), \ | ||
cat Dockerfile | sed "s/FROM python:alpine/FROM $(arch)\/python:alpine/g" > .build; \ | ||
docker build -t femtopixel/pdf2gdocs:${VERSION}-$(arch) -f .build --build-arg VERSION=${VERSION}-$(arch) ${CACHE} .;\ | ||
) | ||
publish: | ||
docker push femtopixel/pdf2gdocs | ||
cat manifest.yml | sed "s/\$$VERSION/${VERSION}/g" > manifest2.yaml | ||
cat manifest2.yaml | sed "s/\$$FULLVERSION/${FULLVERSION}/g" > manifest.yaml | ||
manifest-tool push from-spec manifest.yaml | ||
latest: build | ||
cat manifest.yml | sed "s/\$$VERSION/${VERSION}/g" > manifest2.yaml | ||
cat manifest2.yaml | sed "s/\$$FULLVERSION/latest/g" > manifest.yaml | ||
manifest-tool push from-spec manifest.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
![logo](logo.png) | ||
|
||
PDF to Google Docs - Docker Image | ||
====================== | ||
|
||
[![Docker Pulls](https://img.shields.io/docker/pulls/femtopixel/pdf2gdocs.svg)](https://hub.docker.com/r/femtopixel/pdf2gdocs/) | ||
[![Docker Stars](https://img.shields.io/docker/stars/femtopixel/pdf2gdocs.svg)](https://hub.docker.com/r/femtopixel/pdf2gdocs/) | ||
[![Bitcoin donation](https://github.com/jaymoulin/jaymoulin.github.io/raw/master/btc.png "Bitcoin donation")](https://m.freewallet.org/id/374ad82e/btc) | ||
[![Litecoin donation](https://github.com/jaymoulin/jaymoulin.github.io/raw/master/ltc.png "Litecoin donation")](https://m.freewallet.org/id/374ad82e/ltc) | ||
[![PayPal donation](https://github.com/jaymoulin/jaymoulin.github.io/raw/master/ppl.png "PayPal donation")](https://www.paypal.me/jaymoulin) | ||
[![Buy me a coffee](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png "Buy me a coffee")](https://www.buymeacoffee.com/3Yu8ajd7W) | ||
|
||
Description | ||
----------- | ||
|
||
The purpose of this image is to convert a PDF file to a Google Doc. | ||
With this specific method, a file can be archived without using Google Drive quota. | ||
|
||
Installation | ||
------------ | ||
|
||
1. Go to https://developers.google.com/docs/api/quickstart/python | ||
1. Click the _Enable the Google Docs Api_ button | ||
1. Click the _Download configuration_ button | ||
1. Go to https://console.developers.google.com/apis/library/drive.googleapis.com | ||
1. Enable the Google Drive API service | ||
1. Init the container `docker run --name pdf2gdocs -it -v /path/to/your/pdf/folder:/upload -v /path/to/your/credentials:/credentials --net=host femtopixel/pdf2gdocs` | ||
1. Click the link given by the application and follow the instructions (you may be block by your browser for an unsafe URL, proceed anyway) | ||
|
||
Each time you want to upload your pdf | ||
``` | ||
docker start pdf2gdocs | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
image: femtopixel/pdf2gdocs:$FULLVERSION | ||
manifests: | ||
- | ||
image: femtopixel/pdf2gdocs:$VERSION-i386 | ||
platform: | ||
architecture: 386 | ||
os: linux | ||
- | ||
image: femtopixel/pdf2gdocs:$VERSION-arm64v8 | ||
platform: | ||
architecture: arm64 | ||
os: linux | ||
- | ||
image: femtopixel/pdf2gdocs:$VERSION-arm64v8 | ||
platform: | ||
architecture: arm | ||
os: linux | ||
variant: v8 | ||
- | ||
image: femtopixel/pdf2gdocs:$VERSION-arm32v6 | ||
platform: | ||
architecture: arm | ||
os: linux | ||
variant: v6 | ||
- | ||
image: femtopixel/pdf2gdocs:$VERSION-amd64 | ||
platform: | ||
architecture: amd64 | ||
os: linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# coding: utf-8 | ||
|
||
__version__ = '0.1.0' |
Oops, something went wrong.