Skip to content

Commit

Permalink
Merge branch 'main' into integration-test-auth-sock
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Nov 7, 2024
2 parents ce44d45 + 005c6f0 commit e79c115
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose.linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ services:
SSH_AUTH_SOCK: ${SSH_AUTH_SOCK}
volumes:
# Mount SSH agent so we can authenticate against github inside of the IDE container.
- ${SSH_AUTH_SOCK}:${SSH_AUTH_SOCK}:Z
- ${SSH_AUTH_SOCK:-/dev/null}:${SSH_AUTH_SOCK:-/tmp/null}:Z
4 changes: 2 additions & 2 deletions generate-secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ SALT_FILE="${PROGDIR}/secrets/DRUPAL_DEFAULT_SALT"
readonly SALT_FILE
if [ ! -f "${SALT_FILE}" ]; then
echo "Creating: ${SALT_FILE}" >&2
(grep -ao '[A-Za-z0-9_-]' </dev/urandom || true) | head -74 | tr -d '\n' >"${SALT_FILE}"
docker run --rm -i --entrypoint bash "${BASE_IMAGE}" -c "(grep -ao '[A-Za-z0-9_-]' </dev/urandom || true) | head -74 | tr -d '\n'" >"${SALT_FILE}"
fi

# Use openssl to generate certificates.
Expand Down Expand Up @@ -57,7 +57,7 @@ done < \
for secret in "${SECRETS[@]}"; do
if [ ! -f "${secret}" ]; then
echo "Creating: ${secret}" >&2
(grep -ao "${CHARACTERS}" </dev/urandom || true) | head "-${LENGTH}" | tr -d '\n' >"${secret}"
docker run --rm -i --entrypoint bash "${BASE_IMAGE}" -c "(grep -ao '${CHARACTERS}' </dev/urandom || true) | head '-${LENGTH}' | tr -d '\n'" >"${secret}"
fi
done

Expand Down

0 comments on commit e79c115

Please sign in to comment.