steamcmd / docker

Docker image containing SteamCMD
https://hub.docker.com/r/steamcmd/steamcmd
MIT License
148 stars 20 forks source link

Ubuntu 20.04 support #31

Closed jonakoudijs closed 4 years ago

jonakoudijs commented 4 years ago

Adding Ubuntu 20.04 support and using this base image for latest instead of Ubuntu 18.04.

jonakoudijs commented 4 years ago

The first test (using same Dockerfiles as Ubuntu 16.04 and Ubuntu 18.04) needs some extra work. The steamcmd +quit command throws an error now:

$ docker build -t steamcmd-test:ubuntu-20 .

Sending build context to Docker daemon  656.4kB
Step 1/15 : FROM ubuntu:20.04
 ---> 1d622ef86b13
Step 2/15 : ENV USER root
 ---> Running in 9020bd286ed6
Removing intermediate container 9020bd286ed6
 ---> f78dfc16853f
Step 3/15 : ENV HOME /root
 ---> Running in 81f67768f4a4
Removing intermediate container 81f67768f4a4
 ---> a4b3371a3e4e
Step 4/15 : WORKDIR $HOME
 ---> Running in 226bb9827c04
Removing intermediate container 226bb9827c04
 ---> 7065cff958b4
Step 5/15 : SHELL ["/bin/bash", "-o", "pipefail", "-c"]
 ---> Running in a2765d4f5c09
Removing intermediate container a2765d4f5c09
 ---> 72b11f34ffa2
Step 6/15 : RUN echo steam steam/question select "I AGREE" | debconf-set-selections  && echo steam steam/license note '' | debconf-set-selections
 ---> Running in 3287cf4f0031
Removing intermediate container 3287cf4f0031
 ---> 38e1edf03f1c
Step 7/15 : ARG DEBIAN_FRONTEND=noninteractive
 ---> Running in 26cb73f8ccd9
Removing intermediate container 26cb73f8ccd9
 ---> 7b67dd35a2cd
Step 8/15 : RUN dpkg --add-architecture i386  && apt-get update -y  && apt-get install -y --no-install-recommends ca-certificates locales steamcmd  && rm -rf /var/lib/apt/lists/*
 ---> Running in 53abfb49e47e
Get:1 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease [107 kB]
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/multiverse i386 Packages [88.9 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:9 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [4673 B]
Get:10 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [40.0 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal/restricted i386 Packages [10.1 kB]
Get:12 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [16.9 kB]
Get:13 http://security.ubuntu.com/ubuntu focal-security/universe i386 Packages [4060 B]
Get:14 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [930 kB]
Get:15 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [4592 B]
Get:16 http://archive.ubuntu.com/ubuntu focal/universe i386 Packages [5999 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [48.5 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [12.8 kB]
Get:20 http://archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [19.0 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [15.1 kB]
Get:22 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [4673 B]
Get:23 http://archive.ubuntu.com/ubuntu focal-backports/universe i386 Packages [1978 B]
Get:24 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [2903 B]
Fetched 20.6 MB in 3s (8099 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  gcc-10-base:i386 libc6:i386 libcrypt1:i386 libgcc-s1:i386 libssl1.1
  libstdc++6:i386 openssl
Suggested packages:
  glibc-doc:i386 locales:i386 steam:i386
Recommended packages:
  libidn2-0:i386
The following NEW packages will be installed:
  ca-certificates gcc-10-base:i386 libc6:i386 libcrypt1:i386 libgcc-s1:i386
  libssl1.1 libstdc++6:i386 locales openssl steamcmd:i386
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.6 MB of archives.
After this operation, 43.6 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/main i386 gcc-10-base i386 10-20200411-0ubuntu1 [19.0 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/main i386 libgcc-s1 i386 10-20200411-0ubuntu1 [49.8 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/main i386 libcrypt1 i386 1:4.4.10-10ubuntu4 [90.9 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal/main i386 libc6 i386 2.31-0ubuntu9 [2570 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 libstdc++6 i386 10-20200411-0ubuntu1 [542 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal/multiverse i386 steamcmd i386 0~20180105-3 [1364 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/main amd64 libssl1.1 amd64 1.1.1f-1ubuntu2 [1318 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal/main amd64 openssl amd64 1.1.1f-1ubuntu2 [621 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal/main amd64 ca-certificates all 20190110ubuntu1 [146 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal/main amd64 locales all 2.31-0ubuntu9 [3870 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 10.6 MB in 1s (12.7 MB/s)
Selecting previously unselected package gcc-10-base:i386.
(Reading database ... 4122 files and directories currently installed.)
Preparing to unpack .../0-gcc-10-base_10-20200411-0ubuntu1_i386.deb ...
Unpacking gcc-10-base:i386 (10-20200411-0ubuntu1) ...
Selecting previously unselected package libgcc-s1:i386.
Preparing to unpack .../1-libgcc-s1_10-20200411-0ubuntu1_i386.deb ...
Unpacking libgcc-s1:i386 (10-20200411-0ubuntu1) ...
Selecting previously unselected package libcrypt1:i386.
Preparing to unpack .../2-libcrypt1_1%3a4.4.10-10ubuntu4_i386.deb ...
Unpacking libcrypt1:i386 (1:4.4.10-10ubuntu4) ...
Selecting previously unselected package libc6:i386.
Preparing to unpack .../3-libc6_2.31-0ubuntu9_i386.deb ...
Unpacking libc6:i386 (2.31-0ubuntu9) ...
Selecting previously unselected package libstdc++6:i386.
Preparing to unpack .../4-libstdc++6_10-20200411-0ubuntu1_i386.deb ...
Unpacking libstdc++6:i386 (10-20200411-0ubuntu1) ...
Selecting previously unselected package steamcmd:i386.
Preparing to unpack .../5-steamcmd_0~20180105-3_i386.deb ...
Unpacking steamcmd:i386 (0~20180105-3) ...
Selecting previously unselected package libssl1.1:amd64.
Preparing to unpack .../6-libssl1.1_1.1.1f-1ubuntu2_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1f-1ubuntu2) ...
Selecting previously unselected package openssl.
Preparing to unpack .../7-openssl_1.1.1f-1ubuntu2_amd64.deb ...
Unpacking openssl (1.1.1f-1ubuntu2) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../8-ca-certificates_20190110ubuntu1_all.deb ...
Unpacking ca-certificates (20190110ubuntu1) ...
Selecting previously unselected package locales.
Preparing to unpack .../9-locales_2.31-0ubuntu9_all.deb ...
Unpacking locales (2.31-0ubuntu9) ...
Setting up libssl1.1:amd64 (1.1.1f-1ubuntu2) ...
Setting up locales (2.31-0ubuntu9) ...
Generating locales (this might take a while)...
Generation complete.
Setting up gcc-10-base:i386 (10-20200411-0ubuntu1) ...
Setting up openssl (1.1.1f-1ubuntu2) ...
Setting up ca-certificates (20190110ubuntu1) ...
Updating certificates in /etc/ssl/certs...
128 added, 0 removed; done.
Setting up libcrypt1:i386 (1:4.4.10-10ubuntu4) ...
Setting up libgcc-s1:i386 (10-20200411-0ubuntu1) ...
Setting up libc6:i386 (2.31-0ubuntu9) ...
Setting up libstdc++6:i386 (10-20200411-0ubuntu1) ...
Setting up steamcmd:i386 (0~20180105-3) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for ca-certificates (20190110ubuntu1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Removing intermediate container 53abfb49e47e
 ---> 1c71a08eb84e
Step 9/15 : RUN locale-gen en_US.UTF-8
 ---> Running in e9513b00e300
Generating locales (this might take a while)...
  en_US.UTF-8... done
Generation complete.
Removing intermediate container e9513b00e300
 ---> 8119a3347924
Step 10/15 : ENV LANG 'en_US.UTF-8'
 ---> Running in 384e8134c8ef
Removing intermediate container 384e8134c8ef
 ---> f6523a3ee633
Step 11/15 : ENV LANGUAGE 'en_US:en'
 ---> Running in 6ad1976800e9
Removing intermediate container 6ad1976800e9
 ---> 9e1ede351024
Step 12/15 : RUN ln -s /usr/games/steamcmd /usr/bin/steamcmd
 ---> Running in 237e327af90c
Removing intermediate container 237e327af90c
 ---> 1bd6d791d793
Step 13/15 : RUN steamcmd +quit
 ---> Running in 9a3b654d2df3
The command '/bin/bash -o pipefail -c steamcmd +quit' returned a non-zero code: 1

This is the output when manually running the steamcmd +quit command:

root@f5258329b519:~# steamcmd +quit
Redirecting stderr to '/root/.steam/logs/stderr.txt'
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
[  0%] Checking for available update...
threadtools.cpp (3787) : Assertion Failed: Probably deadlock or failure waiting for thread to initialize.
Thread failed to initialize
CWorkThreadPool::StartWorkThread: Thread creation failed.
Exiting on SPEW_ABORT
root@f5258329b519:~# cat /root/.steam/logs/stderr.txt
root@f5258329b519:~#
jonakoudijs commented 4 years ago

Did not yet got it to work so I updated the open issue and will close this PR for now.