Jump to content

Search the Community

Showing results for tags 'docker'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RAGE Multiplayer
    • Announcements
    • Discussion
    • Suggestions
  • Scripting
    • Scripting
    • Resources
  • Community
    • Support
    • Servers
    • Media Gallery
  • Non-English
    • Русский - Russian
    • Français - French
    • Deutsch - German
    • Espanol - Spanish
    • Română - Romanian
    • Portuguesa - Portuguese
    • Polski - Polish

Categories

  • Scripts
  • Gamemodes
  • Libraries
  • Plugins
  • Maps
  • Tools

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Facebook


Youtube


Skype


Web


VK

Found 3 results

  1. Hello I'm facing a weird issue on ragemp dockerized using Ubuntu I have setup the image and ran the server correctly,i was even able to connect to it and spawn normally however the console is stuck at "Incoming connection from xxxx" and it never goes to the "x has joined" part the console only updates when joining/disconnecting as shown in the picture below https://i.ibb.co/xLXK4Lp/Screenshot-2023-07-02-231522.png also the chat in game doesn't work,i can press T open up the default chat and typing but the messages aren't showing as if nothing is typed in Here's my image file that's running on the container: FROM ubuntu:latest RUN apt-get update RUN apt update && apt install -y libstdc++6 RUN apt-get install libatomic1 WORKDIR /RAGE ADD https://cdn.rage.mp/updater/prerelease/server-files/linux_x64.tar.gz /RAGE/ RUN tar -xzf linux_x64.tar.gz WORKDIR /RAGE/ RUN chmod ugo+rwx ragemp-srv WORKDIR /RAGE/ragemp-srv RUN chmod +x ragemp-server EXPOSE 22006:22006 EXPOSE 22005:22005/udp CMD [ "./ragemp-server" ] any ideas?
  2. Hi everyone! 🖐️ Today I was a reading the "Getting started running a server" guide when I thought about putting the stuff in Docker, to be minimal as possible. Then, I came here to show you how to do it. You will need to create a folder with the name of your project, and inside it, we'll put only three files. You need to have Docker Desktop installed already. Step 1 - Dockerfile Create a file with the name Dockerfile, and without an extension. Inside it, paste the code below: FROM ubuntu:latest WORKDIR /opt/app COPY ./app /opt/app RUN chmod +x ragemp-server CMD ["./ragemp-server"] This will be our base system, based on Ubuntu 20.04 LTS (Linux dist). We are going to create an app folder inside opt (default by the system) and give permission to a file that we are going to add later. At the end, the Dockerfile starts the server with the command provided in the CMD directive. Step 2 - docker-compose.yml Create a file with the name docker-compose.yml, this will be our orchestrator: the file that manage all the services that the server needs in order to run properly. Paste the code below: version: "3.9" services: ragemp_server: build: . hostname: "ragemp_server" container_name: "ragemp_server" ports: - "22005:22005/udp" - "22006:22006" tty: true networks: default: external: name: ragemp_network This will add only one service called ragemp_server, and it'll contain the server files. The file will map the ports between the container and your PC. You will need to create the network with the following command: docker network create ragemp_network Step 3 - app folder Finally, you need to download the linux server files and extract them into the app folder. Once you got the files inside the app folder (you need to have the bin and dotnet folders, and the ragemp-server executable) you can run the following command in the root of the project: docker-compose up. This will create the container and run the server. Then, you can go to RageMP > Direct Connect > 127.0.0.1 : 22005 In my case, I'm running the server on a Macbook Pro and testing it on a Windows machine, so in that case you will need to run the ifconfig or ipconfig command to know your IP address, and then connect to it (i.e: 192.168.0.102:22005). Your machines need to be in the same network. Step 4 - (Optional) Get into the container If you need to get into the Ubuntu machine to run some commands, you can do it with the following cmd: docker exec -it container_name bash Replace container_name by the name of your container. Once inside, you can run whatever you want because you'll be the root user. If you have questions, please leave a comment and I'll be answering ASAP. I'm new at RageMP so I don't have a great knowledge about it, but I'm a programmer anyway 🤷‍♂️ Goodbye! 🖐️
  3. И так, у нас есть Linux сервер на который нужно установить RAGEMP Server. Я опишу 2 способа, в двух разных темах, один интересный, другой традиционный. Начнем с интересного. Мы будем ставить сервер через Docker. Зайдем под root качаем на наш сервер сам докер командой (работает под Debian, Ubuntu, Fedora, CentOS, и тд) wget -qO- https://get.docker.com/ | sh После проверим это дело командой docker ps В ответе получим Если так оно и случилось, идем дальше, скачиваем образ docker pull disinterpreter/docker-ragemp После чего запускаем его docker run -d --name ragemp-server -v /ragemp:/ragemp -p 22005:22005/udp disinterpreter/docker-ragemp где --name любое-название -v /куда/монтировать:/ragemp -p внешнийпорт:22005/udp После чего в папке /ragemp нашей системы появятся все файлы для работы сервера, туда можно заливать скрипты, редактировать конфиг. Для рестарта использовать docker restart ragemp-server Для остановки docker stop ragemp-server Для запуска docker start ragemp-server Если хотите подключиться к консоли сервера docker attach ragemp-server Как оно устроено внутри: https://github.com/Disinterpreter/docker-ragemp
×
×
  • Create New...