add docker
This commit is contained in:
parent
a4120c8e73
commit
1961420023
4
.dockerignore
Normal file
4
.dockerignore
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
/.git
|
||||||
|
/.php-cs-fixer.cache
|
||||||
|
/vendor
|
||||||
|
/tags
|
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
FROM deblan/php:8.3
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN composer install
|
||||||
|
|
||||||
|
ENTRYPOINT ["php", "index.php"]
|
18
README.md
18
README.md
|
@ -4,11 +4,19 @@ This project allows you to convert [Nextcloud Passwords](https://apps.nextcloud.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
### From source
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone https://gitnet.fr/deblan/nextcloud_passwords_to_bitwarden
|
git clone https://gitnet.fr/deblan/nextcloud_passwords_to_bitwarden
|
||||||
composer install
|
composer install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Using docker
|
||||||
|
|
||||||
|
```sh
|
||||||
|
docker pull deblan/ncpasswords2bitwarden
|
||||||
|
```
|
||||||
|
|
||||||
## How to
|
## How to
|
||||||
|
|
||||||
### On Nextcloud
|
### On Nextcloud
|
||||||
|
@ -24,12 +32,20 @@ composer install
|
||||||
- Click on "Export" and download the archive
|
- Click on "Export" and download the archive
|
||||||
- Unzip the downloaded file
|
- Unzip the downloaded file
|
||||||
|
|
||||||
### On the project
|
### Convertion
|
||||||
|
|
||||||
|
### From source
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
php index.php /path/to/Folders.csv /path/to/Passwords.csv > bitwarden_passwords.json
|
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
|
### On Bitwarden/Vaultwarden
|
||||||
|
|
||||||
- Go to tools
|
- Go to tools
|
||||||
|
|
Loading…
Reference in a new issue