Skip to content

Commit 54f21c0

Browse files
committed
Change port.
1 parent 6beecd4 commit 54f21c0

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.github/workflows/ci.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ jobs:
1919
run: |
2020
set -x
2121
docker build -t metacall/nodejs-c-liburing-example .
22-
docker run -p 8000:8000 --name metacall_test -d metacall/nodejs-c-liburing-example
22+
docker run -p 28977:28977 --name metacall_test -d metacall/nodejs-c-liburing-example
2323
sleep 10
2424
docker ps
25-
curl localhost:8000 || exit 1
25+
docker logs metacall_test
26+
curl localhost:28977 || exit 1
2627
2728
2829
# until [ "`docker inspect -f {{.State.Health.Status}} metacall_test`" == "healthy" ]; do

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ COPY scripts/uring.c scripts/script.ld /home/scripts/
5555
ENV LOADER_LIBRARY_PATH=/usr/local/lib \
5656
LOADER_SCRIPT_PATH=/home/scripts
5757

58-
EXPOSE 8000
58+
EXPOSE 28977
5959

6060
# HEALTHCHECK --interval=1s --timeout=3s --start-period=1ms \
61-
# CMD curl localhost:8000 || exit 1
61+
# CMD curl localhost:28977 || exit 1
6262

6363
CMD [ "metacallcli", "/root/index.js" ]

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ sum(3, 4) # 7
3030

3131
We will be avoiding all the boilerplate and we will have a single interface for all languages. The calls will be also type safe and we will avoid a lot of errors and time for maintaining the wrappers for each language that we can spend focusing on the development.
3232

33-
In this example we want to bring the power of `io_uring` to NodeJS for maximizing the speed of I/O and outperform NodeJS native primitives like `http` module. For demonstrating it, we have a `server_listen` function which creates a simple HTTP server in the port `8000`.
33+
In this example we want to bring the power of `io_uring` to NodeJS for maximizing the speed of I/O and outperform NodeJS native primitives like `http` module. For demonstrating it, we have a `server_listen` function which creates a simple HTTP server in the port `28977`.
3434

3535
## Docker
3636

3737
Building and running with Docker:
3838

3939
```bash
4040
docker build -t metacall/nodejs-c-liburing-example .
41-
docker run --rm -p 8000:8000 -it metacall/nodejs-c-liburing-example
41+
docker run --rm -p 28977:28977 -it metacall/nodejs-c-liburing-example
4242
```
4343

4444
## Accessing to the website
4545

46-
Just go to your web browser and enter this url: `localhost:8000`
46+
Just go to your web browser and enter this url: `localhost:28977`

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ const { metacall, metacall_load_from_file } = require('metacall');
2222

2323
metacall_load_from_file('c', ['uring.c', 'script.ld']);
2424

25-
metacall('server_listen', 8000);
25+
metacall('server_listen', 28977);

0 commit comments

Comments
 (0)