add docker

This commit is contained in:
Simon Vieille 2024-03-03 16:32:38 +01:00
parent a4120c8e73
commit 1961420023
Signed by: deblan
GPG key ID: 579388D585F70417
3 changed files with 30 additions and 1 deletions

4
.dockerignore Normal file
View file

@ -0,0 +1,4 @@
/.git
/.php-cs-fixer.cache
/vendor
/tags

9
Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM deblan/php:8.3
WORKDIR /app
COPY . .
RUN composer install
ENTRYPOINT ["php", "index.php"]

View file

@ -4,11 +4,19 @@ This project allows you to convert [Nextcloud Passwords](https://apps.nextcloud.
## Installation
### From source
```sh
git clone https://gitnet.fr/deblan/nextcloud_passwords_to_bitwarden
composer install
```
### Using docker
```sh
docker pull deblan/ncpasswords2bitwarden
```
## How to
### On Nextcloud
@ -24,12 +32,20 @@ composer install
- Click on "Export" and download the archive
- Unzip the downloaded file
### On the project
### Convertion
### From source
```sh
php index.php /path/to/Folders.csv /path/to/Passwords.csv > bitwarden_passwords.json
```
### Using docker
```
docker run --rm -v /path/to/extracted_files:/data deblan/ncpasswords2bitwarden /data/Folders.csv /data/Passwords.csv > bitwarden_passwords.json
```
### On Bitwarden/Vaultwarden
- Go to tools