Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile and serve anet using Docker #4

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

hthetiot
Copy link

@hthetiot hthetiot commented Mar 9, 2025

Goal

Allow easy compilation and hosting of anet using docker container.

Tasks

  • Compilation of anet for linux via docker with x86_64
  • Compilation of anet with aarch64 support for lighter cost server support
  • Fix Modern MacOs compilation
  • Add .gitignore for file generated by compilation to be ignored in repository
  • Fix minor compilation GCC errors
  • Fix backport 3rdparty clean.bat to bash linux and remove "3rdparty" duplicate source code (zip vs non zip)
  • Add docker apache2 with cgi support for /home/alink/public_html
  • Add docker cron support for /home/alink/etc/crontab2.lst
  • Add supervisor to start apache2 and cron as alink
  • Host anet server on linux via docker running as Readme2.txt describe.

Testing:

git clone https://github.com/Dark-Reign/anet.git --branch develop anet-docker
cd anet-docker
docker compose up --build

@hthetiot hthetiot changed the title Develop Various Change to compile and serve anet using Docker Mar 9, 2025
@hthetiot hthetiot marked this pull request as draft March 9, 2025 17:57
@hthetiot
Copy link
Author

hthetiot commented Mar 9, 2025

Unfortulatly cron fail to start anet3srv with /tmp/anet3srv.log logs:

No server freeze file /tmp/anet3srv.dat.2 found
dpGetParameterLong returns dpio filedesc:18
len 6, myAdrLen 6
len 6, myAdrLen 6
len 6, myAdrLen 6
SessionType is 65535
Error creating session.

@hthetiot hthetiot marked this pull request as ready for review March 9, 2025 22:05
@hthetiot hthetiot changed the title Various Change to compile and serve anet using Docker Compile and serve anet using Docker Mar 9, 2025
@hthetiot
Copy link
Author

May be you really need a public IP / DNS setup for it to work, still debuging

anet-server  | dptab_deleteTable(dp, ndbug, 5)
anet-server  | dptab_deleteTable(dp, ndbug, 5)
anet-server  | dptab_deleteTable(dp, ndbug, 5)
anet-server  | dptab_deleteTable(dp, ndbug, 3)
anet-server  | dptab_deleteTable: no table with key ndbug
anet-server  | dpClose: Removing session context p:0xaaaadb6849b0.
anet-server  | dpClose: Found session context, id=0, to remove.
anet-server  | dpOpenLocalResult: t:461181579 session join failed, reason:18
anet-server  | dpOpenLocalResult: calling callback 0xaaaaaddd3630
anet-server  | Error creating session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant