Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ozkanpakdil/quarkus-command-runner
A microservice to run a command in the system and return as text.
https://github.com/ozkanpakdil/quarkus-command-runner
docker java quarkus
Last synced: 1 day ago
JSON representation
A microservice to run a command in the system and return as text.
- Host: GitHub
- URL: https://github.com/ozkanpakdil/quarkus-command-runner
- Owner: ozkanpakdil
- Created: 2019-12-17T17:02:52.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-30T11:14:36.000Z (over 2 years ago)
- Last Synced: 2025-01-27T16:21:29.747Z (1 day ago)
- Topics: docker, java, quarkus
- Language: HTML
- Homepage:
- Size: 2.06 MB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# quarkus-command-runner
![CI Build](https://github.com/ozkanpakdil/quarkus-command-runner/workflows/CI%20Build/badge.svg)how to call the service
```
curl localhost:8082/whois?ip=1.2.3.4
```example output
```bash
mlinux@mint20:~/tmp/quarkus-command-runner$ curl localhost:8082/whois?ip=1.2.3.4
% [whois.apnic.net]
% Whois data copyright terms http://www.apnic.net/db/dbcopyright.html% Information related to '1.2.3.0 - 1.2.3.255'
% Abuse contact for '1.2.3.0 - 1.2.3.255' is '[email protected]'
inetnum: 1.2.3.0 - 1.2.3.255
netname: Debogon-prefix
descr: APNIC Debogon Project
descr: APNIC Pty Ltd
country: AU
org: ORG-RQA1-AP
admin-c: AR302-AP
tech-c: AR302-AP
abuse-c: AA1412-AP
status: ASSIGNED PORTABLE
mnt-by: APNIC-HM
mnt-routes: MAINT-AU-APNIC-GM85-AP
mnt-irt: IRT-APNICRANDNET-AU
last-modified: 2020-11-25T06:34:44Z
source: APNICirt: IRT-APNICRANDNET-AU
address: PO Box 3646
address: South Brisbane, QLD 4101
address: Australia
e-mail: [email protected]
abuse-mailbox: [email protected]
admin-c: AR302-AP
tech-c: AR302-AP
auth: # Filtered
remarks: [email protected] was validated on 2021-02-09
mnt-by: MAINT-AU-APNIC-GM85-AP
last-modified: 2021-03-09T01:10:21Z
source: APNICorganisation: ORG-RQA1-AP
org-name: Resource Quality Assurance
country: AU
address: 6 Cordelia Street, South Brisbane
e-mail: [email protected]
mnt-ref: APNIC-HM
mnt-by: APNIC-HM
last-modified: 2020-11-25T05:35:30Z
source: APNICrole: ABUSE APNICRANDNETAU
address: PO Box 3646
address: South Brisbane, QLD 4101
address: Australia
country: ZZ
phone: +000000000
e-mail: [email protected]
admin-c: AR302-AP
tech-c: AR302-AP
nic-hdl: AA1412-AP
remarks: Generated from irt object IRT-APNICRANDNET-AU
abuse-mailbox: [email protected]
mnt-by: APNIC-ABUSE
last-modified: 2021-03-09T01:10:22Z
source: APNICrole: APNIC RESEARCH
address: PO Box 3646
address: South Brisbane, QLD 4101
address: Australia
country: AU
phone: +61-7-3858-3188
fax-no: +61-7-3858-3199
e-mail: [email protected]
nic-hdl: AR302-AP
tech-c: AH256-AP
admin-c: AH256-AP
mnt-by: MAINT-APNIC-AP
last-modified: 2018-04-04T04:26:04Z
source: APNIC% This query was served by the APNIC Whois Service version 1.88.15-SNAPSHOT (WHOIS-UK4)
```## docker container with tor
https://hub.docker.com/r/ozkanpakdil/torify-whois-quarkus```
docker build -f src/main/docker/Dockerfile.jvm -t torify-whois-quarkus .
docker run -it --init --rm -p 8080:8080 torify-whois-quarkus
```for publishing
```
docker tag torify-whois-quarkus ozkanpakdil/torify-whois-quarkus
docker push ozkanpakdil/torify-whois-quarkus
```for [graalvm](https://hub.docker.com/r/ozkanpakdil/torify-whois-quarkus-graalvm)
```bash
mvn clean package -DskipTests -P native
docker tag torify-whois-quarkus-graalvm ozkanpakdil/torify-whois-quarkus-graalvm
docker push ozkanpakdil/torify-whois-quarkus-graalvm
```
there is a big difference in container size, one without jre build with graalvm takes 75mb and other one with jre is 219mb. graalvm wins again :)