Skip to content

Commit

Permalink
lint: fix hadolint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
janosmiko committed Nov 23, 2024
1 parent 053818c commit f503283
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-dockerfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- images/**
branches:
- main
pull_request: null
pull_request:
permissions:
contents: read
jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
---
name: "Spelling"
on:
pull_request: null
push:
branches:
- "main"
pull_request:
permissions:
contents: "read"
concurrency:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ on:
- go.mod
- go.sum
pull_request:

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions images/php-fpm-rootless/base/tpl.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ COPY rootfs/. /

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# hadolint ignore=SC2016
RUN <<-EOF
set -eux
apt-get update
Expand Down
2 changes: 1 addition & 1 deletion images/php-fpm-rootless/blackfire/tpl.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ USER www-data
RUN <<-EOF
set -eux
mkdir -p /tmp/blackfire "${HOME}/.local/bin"
curl -fsSL https://blackfire.io/api/v1/releases/client/linux_static/amd64 | tar zxp -C /tmp/blackfire
wget -q -O - https://blackfire.io/api/v1/releases/client/linux_static/amd64 | tar zxp -C /tmp/blackfire
mv /tmp/blackfire/blackfire "${HOME}/.local/bin/blackfire"
chmod +x "${HOME}/.local/bin/blackfire"
rm -rf /tmp/blackfire
Expand Down
8 changes: 5 additions & 3 deletions images/sshd/tpl.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ FROM alpine:{{ getenv "IMAGE_TAG" "3.15" }}

COPY ./entry.sh /entry.sh

SHELL ["/bin/ash", "-eo", "pipefail", "-c"]

RUN <<-EOF
set -eux
apk add --no-cache \
Expand All @@ -13,11 +15,11 @@ RUN <<-EOF
rssh \
rsync \
shadow
deluser $(getent passwd 33 | cut -d: -f1)
delgroup $(getent group 33 | cut -d: -f1) 2>/dev/null || true
deluser "$(getent passwd 33 | cut -d: -f1)"
delgroup "$(getent group 33 | cut -d: -f1)" 2>/dev/null || true
mkdir -p ~root/.ssh /etc/authorized_keys && chmod 700 ~root/.ssh/
augtool 'set /files/etc/ssh/sshd_config/AuthorizedKeysFile ".ssh/authorized_keys /etc/authorized_keys/%u"'
echo -e "Port 22\n" >> /etc/ssh/sshd_config
printf "Port 22\n" >> /etc/ssh/sshd_config
cp -a /etc/ssh /etc/ssh.cache
chmod +x /entry.sh
EOF
Expand Down

0 comments on commit f503283

Please sign in to comment.