-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config alignement + fix alpine build
- overall config alignment with bash-dev-env project - fix alpine build - refactored github workflow with 4 separated jobs - use plain docker instructions in lint-test.yml instead of relying on bin/test script - added bin/installRequirements - docker images create a default www-data user
- Loading branch information
1 parent
d3c9c3e
commit 268dffb
Showing
57 changed files
with
2,360 additions
and
464 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Bazyli | ||
bbwe | ||
Brzóska | ||
Chastanet | ||
Checkstyle | ||
codesniffer | ||
containerd | ||
DISTRO | ||
distro | ||
DOCKERHUB | ||
fasd | ||
fchastanet | ||
GRYPE | ||
hjson | ||
inet | ||
JSONLINT | ||
kics | ||
mbstring | ||
megalinter | ||
meslo | ||
nameserver | ||
nodoc | ||
oxsecurity | ||
Parens | ||
pipefail | ||
plantuml | ||
powerlevel | ||
precommit | ||
RUBOCOP | ||
shellcheck | ||
shellcheckrc | ||
shfmt | ||
sudoer | ||
tabwidth | ||
tagname | ||
TRIVY | ||
TRUFFLEHOG | ||
undelete | ||
usermod | ||
venv | ||
wekyb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
set -o errexit | ||
set -o pipefail | ||
|
||
if [[ "${SKIP_USER:-0}" = "0" && "${USER_ID:-0}" != "0" && "${GROUP_ID:-0}" != "0" ]]; then | ||
# del all users with group Id and the del group id | ||
awk -F: "\$4 == ${GROUP_ID} {print \$1}" /etc/passwd | | ||
while read -r user; do | ||
deluser "${user}" | ||
done | ||
delgroup "${GROUP_ID}" || true | ||
# create www-data user and group from scratch | ||
delgroup www-data || true | ||
deluser www-data || true | ||
addgroup -g "${GROUP_ID}" -S www-data | ||
adduser -u "${USER_ID}" -D -S -h /app -s /sbin/nologin -G www-data www-data | ||
# remove parallel nagware | ||
mkdir -p /app/.parallel | ||
touch /app/.parallel/will-cite | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
set -o errexit | ||
set -o pipefail | ||
|
||
if [[ "${SKIP_USER:-0}" = "0" && "${USER_ID:-0}" != "0" && "${GROUP_ID:-0}" != "0" ]]; then | ||
# del all users with group Id and the del group id | ||
awk -F: "\$4 == ${GROUP_ID} {print \$1}" /etc/passwd | | ||
while read -r user; do | ||
userdel "${user}" | ||
done | ||
groupdel "${GROUP_ID}" || true | ||
# create www-data user and group from scratch | ||
userdel -f www-data || true | ||
groupdel www-data || true | ||
groupadd -g "${GROUP_ID}" www-data | ||
useradd -l -u "${USER_ID}" -g www-data www-data | ||
install -d -m 0755 -o www-data -g www-data /home/www-data | ||
# remove parallel nagware | ||
mkdir -p /home/www-data/.parallel | ||
touch /home/www-data/.parallel/will-cite | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.