Skip to content

Commit

Permalink
add croc
Browse files Browse the repository at this point in the history
  • Loading branch information
vimagick committed Feb 23, 2023
1 parent 37f07d0 commit 4f1d23c
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ A collection of delicious docker recipes.
- [x] cp-kafka-rest
- [x] ksqldb-cli
- [x] ksqldb-server
- [x] schollz/croc
- [x] streamsets/datacollector
- [x] daskdev
- [x] dask
Expand Down
42 changes: 42 additions & 0 deletions croc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
croc
====

[croc][1] is a tool that allows any two computers to simply and securely transfer
files and folders.

## Server

```bash
$ CROC_PASS=hackme croc relay
[info] 2023/02/23 10:29:50 starting croc relay version v9.6.0-0e93f1e
[info] 2023/02/23 10:29:50 starting TCP server on :9009
[info] 2023/02/23 10:29:50 starting TCP server on :9010
[info] 2023/02/23 10:29:50 starting TCP server on :9011
[info] 2023/02/23 10:29:50 starting TCP server on :9012
[info] 2023/02/23 10:29:50 starting TCP server on :9013
```

## Client A (sender)

```bash
$ export CROC_RELAY=1.2.3.4:9009
$ export CROC_PASS=hackme

$ seq 10 > test.txt

$ croc send test.txt
Sending 'test.txt' (21 B)
Code is: 1234-what-the-hack
```

## Client B (receiver)

```bash
$ export CROC_RELAY=1.2.3.4:9009
$ export CROC_PASS=hackme

$ croc 1234-what-the-hack
Accept 'test.txt' (21 B)? (Y/n)
```

[1]: https://github.com/schollz/croc
9 changes: 9 additions & 0 deletions croc/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: "3.8"
services:
croc:
image: schollz/croc
ports:
- "9009-9013:9009-9013"
environment:
- CROC_PASS=hackme
restart: unless-stopped

0 comments on commit 4f1d23c

Please sign in to comment.