Results 1 to 2 of 2
  1. #1
    Joined
    Apr 2017
    Location
    Southern IL USA
    Age
    32
    Posts
    9

    Re: Ubuntu 18.04Lts Cache Server failure.. Having issues posting my thread..

    Problem fixed.. Although I think some one removed my post after editing it..

    I had two ip's assigned to the same network.


    Now that I have done this I am going to change the process of how i install this project..



    First off Linus's page with information although useful wasn't exactly as easy as it could have been done..


    Here is how i would install this on Ubuntu 18:04lts desktop version

    First run these commands to install curl and the docker.

    First log into your ubuntu desktop server then sudo your self to root.
    Example Command: sudo su

    Then do apt-get update and apt-get upgrade to update everything prior to installing curl and docker.

    Example command:

    apt-get update
    apt-get upgrade
    apt-get install curl netstat -y

    Then install the docker:

    sudo curl -sSL https://get.docker.com/ | sh


    Now lets make sure its running.
    Example command

    systemctl status docker

    Now test the docker.
    docker run hello-world


    Now lets add a user named cache.

    adduser cache
    usermod -aG docker cache

    Then log all the way out and log in as cache. Here you can then install the below scripts. and it should run for ya if your running as user cache. And you have set all your network adapters correctly.. Warning desktop network manager creates nightmares if your trying to edit in /etc/network/interfaces


    Here are some common commands i have had to use
    docker stats and docker ps


    Now


    I created a quick shell script named: cache-server-setup.sh


    #!/bin/sh
    ##Steam
    docker run \
    --restart unless-stopped -d \
    --name steam-cache \
    -v /home/cache/steam/data:/data/cache \
    -v /home/cache/steam/logs:/data/logs \
    -p 192.168.9.2:80:80 \
    steamcache/generic:latest

    sleep 3
    ##Origin
    docker run \
    --restart unless-stopped -d \
    --name origin-cache \
    -v /home/cache/origin/data:/data/cache \
    -v /home/cache/origin/logs:/data/logs \
    -p 192.168.9.4:80:80 \
    steamcache/generic:latest

    sleep 3
    ##Blizzard
    docker run \
    --restart unless-stopped -d \
    --name blizzard-cache \
    -v /home/cache/blizzard/data:/data/cache \
    -v /home/cache/blizzard/logs:/data/logs \
    -p 192.168.9.5:80:80 \
    steamcache/generic:latest

    sleep 3
    ##Riot Games
    docker run \
    --restart unless-stopped -d \
    --name riot-cache \
    -v /home/cache/riot/data:/data/cache \
    -v /home/cache/riot/logs:/data/logs \
    -p 192.168.9.6:80:80 \
    steamcache/generic:latest

    sleep 3
    ##Frontier
    docker run \
    --restart unless-stopped -d \
    --name frontier-cache \
    -v /home/cache/frontier/data:/data/cache \
    -v /home/cache/frontier/logs:/data/logs \
    -p 192.168.9.7:80:80 \
    steamcache/generic:latest

    sleep 3
    ##Windows
    docker run \
    --restart unless-stopped -d \
    --name windows-cache \
    -v /home/cache/windows/data:/data/cache \
    -v /home/cache/windows/logs:/data/logs \
    -p 192.168.9.9:80:80 \
    steamcache/generic:latest


    sleep 3
    ##Startup command for each container
    docker run \
    --restart unless-stopped -d \
    --name steamcache-dns \
    -p 192.168.9.2:53:53/udp \
    -e UPSTREAM_DNS=8.8.8.8 \
    -e STEAMCACHE_IP=192.168.9.2 \
    -e ORIGINCACHE_IP=192.168.9.4 \
    -e BLIZZARDCACHE_IP=192.168.9.5 \
    -e RIOTCACHE_IP=192.168.9.6 \
    -e FRONTIERCACHE_IP=192.168.9.7 \
    -e WINDOWSCACHE_IP=192.168.9 \
    steamcache/steamcache-dns:latest

    sleep 3
    docker run \
    --restart unless-stopped -d \
    --name sniproxy \
    -p 443:443 \
    steamcache/sniproxy:latest


    --------------------------------------------------------------------

    Then I created cache-server-start-all.sh

    #!/bin/sh
    docker run \
    --restart unless-stopped -d \
    --name steamcache-dns \
    -p 192.168.9.2:53:53/udp \
    -e UPSTREAM_DNS=8.8.8.8 \
    -e STEAMCACHE_IP=192.168.9.3 \
    -e ORIGINCACHE_IP=192.168.9.4 \
    -e BLIZZARDCACHE_IP=192.168.9.5 \
    -e RIOTCACHE_IP=192.168.9.6 \
    -e FRONTIERCACHE_IP=192.168.9.7 \
    -e WINDOWSCACHE_IP=192.168.9 \
    steamcache/steamcache-dns:latest
    docker run \
    --restart unless-stopped -d \
    --name sniproxy \
    -p 443:443 \
    steamcache/sniproxy:latest

    ----------------------------------------------------------------------

    Then I created cache-server-stop.sh

    #!/bin/sh
    docker stop sniproxy
    docker stop steamcache-dns
    docker stop windows-cache
    docker stop frontier-cache
    docker stop riot-cache
    docker stop blizzard-cache
    docker stop origin-cache

    ---------------------------------------------------------------------

    Then For easy removal we created: cache-server-Delete-All.sh
    #!/bin/sh
    docker rm sniproxy
    docker rm steamcache-dns
    docker rm windows-cache
    docker rm frontier-cache
    docker rm riot-cache
    docker rm blizzard-cache
    docker rm origin-cache

    ----------------------------------------------------------------------

    This seemed to work for us but the main issue i had was a derp moment with assigning a network adapter to the same ip..


    I hope this thread helps some one else with this project.
    Last edited by lorentedford; 10-09-2018 at 06:12 PM. Reason: Some things were missing from my copy and paste.
    Loren Tedford

    LorenTedford Twitch

    Gaming PC


    Streaming PC

  2. #2
    Joined
    Apr 2017
    Location
    Southern IL USA
    Age
    32
    Posts
    9

    Re: Ubuntu 18.04Lts Cache Server failure.. Having issues posting my thread..

    Well I thought I had recovered all my directions but this is all incomplete i think its because you can only be logged in for like 2 minutes or some thing.. weird..
    Loren Tedford

    LorenTedford Twitch

    Gaming PC


    Streaming PC

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •