Compare commits
3 commits
02b2027e9a
...
02f272f625
Author | SHA1 | Date | |
---|---|---|---|
02f272f625 | |||
18d39e0c3c | |||
9d69f4f9ea |
4 changed files with 14 additions and 14 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
steamcmd-fedora-*.img*
|
|
||||||
*.swp
|
*.swp
|
||||||
|
*.img
|
||||||
|
*.img.xz
|
||||||
|
|
|
@ -19,6 +19,9 @@ RUN set -x ; \
|
||||||
dnf --setopt=logdir=/tmp/dnf-prep-logs --setopt=cachedir=/tmp/dnf-prep-cache -qy up ; \
|
dnf --setopt=logdir=/tmp/dnf-prep-logs --setopt=cachedir=/tmp/dnf-prep-cache -qy up ; \
|
||||||
dnf --setopt=logdir=/tmp/dnf-prep-logs --setopt=cachedir=/tmp/dnf-prep-cache -qy install \
|
dnf --setopt=logdir=/tmp/dnf-prep-logs --setopt=cachedir=/tmp/dnf-prep-cache -qy install \
|
||||||
util-linux \
|
util-linux \
|
||||||
|
wget \
|
||||||
|
less \
|
||||||
|
findutils \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
libgcc.{x86_64,i686} \
|
libgcc.{x86_64,i686} \
|
||||||
libstdc++.{x86_64,i686} \
|
libstdc++.{x86_64,i686} \
|
||||||
|
|
|
@ -9,13 +9,12 @@ use. Some utilities have been left in for convenience (*ie:* `wget`, `less`, `fi
|
||||||
Size is *not* a priority for this image/project. Currency *(time, not money)*
|
Size is *not* a priority for this image/project. Currency *(time, not money)*
|
||||||
and convenience *are* the priorities.
|
and convenience *are* the priorities.
|
||||||
|
|
||||||
The `steamcmd` libraries are made available using `ld.so.conf.d`.
|
## Tweaks
|
||||||
Most other images juggle symlinks instead.
|
|
||||||
|
|
||||||
## Fedora tweaks
|
The `steamcmd` libraries are made available using `ld.so.conf.d`. This *should* be
|
||||||
|
preferable to the usual solution: *juggling copies/symlinks*.
|
||||||
|
|
||||||
These are all for the package manager, `dnf`.
|
Below are the adjustments made to the package manager `dnf`.
|
||||||
The goal is to both reduce resource usage *and* improve performance:
|
|
||||||
|
|
||||||
- `max_parallel_downloads`: Raised to the limit of 20. Leverages faster networks
|
- `max_parallel_downloads`: Raised to the limit of 20. Leverages faster networks
|
||||||
/ more connections.
|
/ more connections.
|
||||||
|
|
|
@ -1,17 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# base vars
|
# base vars
|
||||||
NOW=$(date +%s) # epoch timestamp, eg: 1622772927
|
IMAGE_FILE="steamcmd-latest.img"
|
||||||
BASE_TAG=$(awk '$1 == "FROM" {print $2}' Dockerfile | cut -d\: -f2) # eg: 2.7.1
|
|
||||||
BUILD_TAG="fedora-${BASE_TAG}-${NOW}"
|
|
||||||
IMAGE_FILE="steamcmd-${BUILD_TAG}.img"
|
|
||||||
|
|
||||||
echo "Building image steamcmd:${BUILD_TAG}"
|
echo "Building image steamcmd:latest"
|
||||||
podman build --tag steamcmd:"${BUILD_TAG}" .
|
podman build --no-cache --tag steamcmd:latest .
|
||||||
podman save localhost/steamcmd:"${BUILD_TAG}" > "${IMAGE_FILE}"
|
podman save localhost/steamcmd:latest > "${IMAGE_FILE}"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Wrote ${IMAGE_FILE}, cleaning up"
|
echo "Wrote ${IMAGE_FILE}, cleaning up"
|
||||||
podman rmi steamcmd:"${BUILD_TAG}"
|
podman rmi steamcmd:latest
|
||||||
echo ""
|
echo ""
|
||||||
echo "Attempting to compress the image (begin comforting music)"
|
echo "Attempting to compress the image (begin comforting music)"
|
||||||
xz --keep --compress -9 --extreme --threads="$(nproc)" "${IMAGE_FILE}"
|
xz --keep --compress -9 --extreme --threads="$(nproc)" "${IMAGE_FILE}"
|
||||||
|
|
Loading…
Reference in a new issue