Verified Commit 5770f07e authored by bghost's avatar bghost

Remove unused vars

parent e32f1ac0
Pipeline #66434956 passed with stage
in 15 minutes and 44 seconds
......@@ -10,13 +10,9 @@ RUN dnf upgrade -y \
google-noto-serif-fonts \
mesa-dri-drivers mesa-libGL
ARG GID
ARG ID
ARG AUDIO
RUN groupdel dialout \
&& groupmod -g "${AUDIO}" audio \
&& useradd -m -g wireshark -G audio,video -u "${ID}" wireshark \
RUN useradd -m -g wireshark -G audio,video -u "${ID}" wireshark \
&& mkdir -p /home/wireshark/data \
&& chown -R wireshark:wireshark /home/wireshark \
&& rm -rf /var/cache/dnf/*
......
......@@ -6,18 +6,14 @@ REGISTRY="${REGISTRY:-}"
user='djds'
repo='wireshark'
tag=${1:-latest}
tag="${1:-latest}"
# set environment vars
GID="${GID:-$(id -g)}"
AUDIO="${AUDIO:-$(getent group audio | cut -d ':' -f 3)}"
ID="${ID:-$(id -u)}"
# build the container:
docker build \
--build-arg GID="${GID}" \
--build-arg ID="${ID}" \
--build-arg AUDIO="${AUDIO}" \
-t "${REGISTRY}${user}/${repo}:${tag}" .
if [[ "${PUSH:-}" == "true" ]]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment